Skip to content

Commit d79012b

Browse files
feat(tem): add of domain_id param (#543)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent 979aa1d commit d79012b

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/tem/v1alpha1/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ async def list_webhooks(
762762
page_size: Optional[int] = None,
763763
project_id: Optional[str] = None,
764764
organization_id: Optional[str] = None,
765+
domain_id: Optional[str] = None,
765766
) -> ListWebhooksResponse:
766767
"""
767768
:param region: Region to target. If none is passed will use default region from the config.
@@ -770,6 +771,7 @@ async def list_webhooks(
770771
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
771772
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
772773
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
774+
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
773775
:return: :class:`ListWebhooksResponse <ListWebhooksResponse>`
774776
775777
Usage:
@@ -786,6 +788,7 @@ async def list_webhooks(
786788
"GET",
787789
f"/transactional-email/v1alpha1/regions/{param_region}/webhooks",
788790
params={
791+
"domain_id": domain_id,
789792
"order_by": order_by,
790793
"organization_id": organization_id
791794
or self.client.default_organization_id,
@@ -807,6 +810,7 @@ async def list_webhooks_all(
807810
page_size: Optional[int] = None,
808811
project_id: Optional[str] = None,
809812
organization_id: Optional[str] = None,
813+
domain_id: Optional[str] = None,
810814
) -> List[Webhook]:
811815
"""
812816
:param region: Region to target. If none is passed will use default region from the config.
@@ -815,6 +819,7 @@ async def list_webhooks_all(
815819
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
816820
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
817821
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
822+
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
818823
:return: :class:`List[Webhook] <List[Webhook]>`
819824
820825
Usage:
@@ -834,6 +839,7 @@ async def list_webhooks_all(
834839
"page_size": page_size,
835840
"project_id": project_id,
836841
"organization_id": organization_id,
842+
"domain_id": domain_id,
837843
},
838844
)
839845

scaleway-async/scaleway_async/tem/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,11 @@ class ListWebhooksRequest:
10331033
(Optional) ID of the Organization for which to list the Webhooks.
10341034
"""
10351035

1036+
domain_id: Optional[str]
1037+
"""
1038+
(Optional) ID of the Domain for which to list the Webhooks.
1039+
"""
1040+
10361041

10371042
@dataclass
10381043
class ListWebhooksResponse:

scaleway/scaleway/tem/v1alpha1/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ def list_webhooks(
762762
page_size: Optional[int] = None,
763763
project_id: Optional[str] = None,
764764
organization_id: Optional[str] = None,
765+
domain_id: Optional[str] = None,
765766
) -> ListWebhooksResponse:
766767
"""
767768
:param region: Region to target. If none is passed will use default region from the config.
@@ -770,6 +771,7 @@ def list_webhooks(
770771
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
771772
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
772773
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
774+
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
773775
:return: :class:`ListWebhooksResponse <ListWebhooksResponse>`
774776
775777
Usage:
@@ -786,6 +788,7 @@ def list_webhooks(
786788
"GET",
787789
f"/transactional-email/v1alpha1/regions/{param_region}/webhooks",
788790
params={
791+
"domain_id": domain_id,
789792
"order_by": order_by,
790793
"organization_id": organization_id
791794
or self.client.default_organization_id,
@@ -807,6 +810,7 @@ def list_webhooks_all(
807810
page_size: Optional[int] = None,
808811
project_id: Optional[str] = None,
809812
organization_id: Optional[str] = None,
813+
domain_id: Optional[str] = None,
810814
) -> List[Webhook]:
811815
"""
812816
:param region: Region to target. If none is passed will use default region from the config.
@@ -815,6 +819,7 @@ def list_webhooks_all(
815819
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
816820
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
817821
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
822+
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
818823
:return: :class:`List[Webhook] <List[Webhook]>`
819824
820825
Usage:
@@ -834,6 +839,7 @@ def list_webhooks_all(
834839
"page_size": page_size,
835840
"project_id": project_id,
836841
"organization_id": organization_id,
842+
"domain_id": domain_id,
837843
},
838844
)
839845

scaleway/scaleway/tem/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,11 @@ class ListWebhooksRequest:
10331033
(Optional) ID of the Organization for which to list the Webhooks.
10341034
"""
10351035

1036+
domain_id: Optional[str]
1037+
"""
1038+
(Optional) ID of the Domain for which to list the Webhooks.
1039+
"""
1040+
10361041

10371042
@dataclass
10381043
class ListWebhooksResponse:

0 commit comments

Comments
 (0)