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
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,10 +1692,10 @@ async def create_trigger(
:param name: Name of the trigger.
:param container_id: ID of the container to trigger.
:param description: Description of the trigger.
:param scw_sqs_config: Configuration for a Scaleway M&Q SQS queue.
:param scw_sqs_config: Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param scw_nats_config: Configuration for a Scaleway M&Q NATS subject.
:param scw_nats_config: Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param sqs_config: Configuration for an AWS SQS queue.
Expand Down
60 changes: 32 additions & 28 deletions scaleway-async/scaleway_async/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,29 +327,30 @@ class CreateTriggerRequestMnqNatsClientConfig:
Create trigger request. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
subject: str
"""
:deprecated
Name of the NATS subject the trigger should listen to.
"""

subject: str
mnq_namespace_id: Optional[str]
"""
Name of the NATS subject the trigger should listen to.
:deprecated
"""

mnq_nats_account_id: str
"""
ID of the M&Q NATS account.
ID of the Messaging and Queuing NATS account.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region of the M&Q project.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""


Expand All @@ -359,25 +360,26 @@ class CreateTriggerRequestMnqSqsClientConfig:
Create trigger request. mnq sqs client config.
"""

queue: str
mnq_namespace_id: Optional[str]
"""
Name of the SQS queue the trigger should listen to.
:deprecated
"""

mnq_namespace_id: Optional[str]
queue: str
"""
:deprecated
Name of the SQS queue the trigger should listen to.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
You must have activated SQS on this project.
"""

mnq_region: str
"""
Region in which the M&Q project is activated.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""


Expand Down Expand Up @@ -773,14 +775,14 @@ class Trigger:

scw_sqs_config: Optional[TriggerMnqSqsClientConfig]
"""
Configuration for a Scaleway M&Q SQS queue.
Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""

scw_nats_config: Optional[TriggerMnqNatsClientConfig]
"""
Configuration for a Scaleway M&Q NATS subject.
Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""
Expand All @@ -799,34 +801,35 @@ class TriggerMnqNatsClientConfig:
Trigger. mnq nats client config.
"""

subject: str
mnq_namespace_id: Optional[str]
"""
Name of the NATS subject the trigger listens to.
:deprecated
"""

mnq_namespace_id: Optional[str]
subject: str
"""
:deprecated
Name of the NATS subject the trigger listens to.
"""

mnq_nats_account_id: str
"""
ID of the M&Q NATS account.
ID of the Messaging and Queuing NATS account.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region of the M&Q project.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""

mnq_credential_id: Optional[str]
"""
ID of the M&Q credentials used to subscribe to the NATS subject.
ID of the Messaging and Queuing credentials used to subscribe to the NATS subject.
"""


Expand All @@ -848,17 +851,18 @@ class TriggerMnqSqsClientConfig:

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region in which the M&Q project is activated.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""

mnq_credential_id: Optional[str]
"""
ID of the M&Q credentials used to read from the SQS queue.
ID of the Messaging and Queuing credentials used to read from the SQS queue.
"""


Expand Down Expand Up @@ -1610,14 +1614,14 @@ class CreateTriggerRequest:

scw_sqs_config: Optional[CreateTriggerRequestMnqSqsClientConfig]
"""
Configuration for a Scaleway M&Q SQS queue.
Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""

scw_nats_config: Optional[CreateTriggerRequestMnqNatsClientConfig]
"""
Configuration for a Scaleway M&Q NATS subject.
Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""
Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/function/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,10 +1777,10 @@ async def create_trigger(
:param name: Name of the trigger.
:param function_id: ID of the function to trigger.
:param description: Description of the trigger.
:param scw_sqs_config: Configuration for a Scaleway M&Q SQS queue.
:param scw_sqs_config: Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param scw_nats_config: Configuration for a Scaleway M&Q NATS subject.
:param scw_nats_config: Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param sqs_config: Configuration for an AWS SQS queue.
Expand Down
44 changes: 24 additions & 20 deletions scaleway-async/scaleway_async/function/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,18 @@ class CreateTriggerRequestMnqNatsClientConfig:

mnq_nats_account_id: str
"""
ID of the M&Q NATS account.
ID of the Messaging and Queuing NATS account.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region of the M&Q project.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""


Expand All @@ -290,13 +291,14 @@ class CreateTriggerRequestMnqSqsClientConfig:

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
You must have activated SQS on this project.
"""

mnq_region: str
"""
Region in which the M&Q project is activated.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""


Expand Down Expand Up @@ -863,14 +865,14 @@ class Trigger:

scw_sqs_config: Optional[TriggerMnqSqsClientConfig]
"""
Configuration for a Scaleway M&Q SQS queue.
Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""

scw_nats_config: Optional[TriggerMnqNatsClientConfig]
"""
Configuration for a Scaleway M&Q NATS subject.
Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""
Expand Down Expand Up @@ -901,22 +903,23 @@ class TriggerMnqNatsClientConfig:

mnq_nats_account_id: str
"""
ID of the M&Q NATS account.
ID of the Messaging and Queuing NATS account.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region of the M&Q project.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""

mnq_credential_id: Optional[str]
"""
ID of the M&Q credentials used to subscribe to the NATS subject.
ID of the Messaging and Queuing credentials used to subscribe to the NATS subject.
"""


Expand All @@ -926,29 +929,30 @@ class TriggerMnqSqsClientConfig:
Trigger. mnq sqs client config.
"""

queue: str
mnq_namespace_id: Optional[str]
"""
Name of the SQS queue the trigger listens to.
:deprecated
"""

mnq_namespace_id: Optional[str]
queue: str
"""
:deprecated
Name of the SQS queue the trigger listens to.
"""

mnq_project_id: str
"""
ID of the M&Q project.
ID of the Messaging and Queuing project.
"""

mnq_region: str
"""
Region in which the M&Q project is activated.
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
"""

mnq_credential_id: Optional[str]
"""
ID of the M&Q credentials used to read from the SQS queue.
ID of the Messaging and Queuing credentials used to read from the SQS queue.
"""


Expand Down Expand Up @@ -1729,14 +1733,14 @@ class CreateTriggerRequest:

scw_sqs_config: Optional[CreateTriggerRequestMnqSqsClientConfig]
"""
Configuration for a Scaleway M&Q SQS queue.
Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""

scw_nats_config: Optional[CreateTriggerRequestMnqNatsClientConfig]
"""
Configuration for a Scaleway M&Q NATS subject.
Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
"""
Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,10 +1688,10 @@ def create_trigger(
:param name: Name of the trigger.
:param container_id: ID of the container to trigger.
:param description: Description of the trigger.
:param scw_sqs_config: Configuration for a Scaleway M&Q SQS queue.
:param scw_sqs_config: Configuration for a Scaleway Messaging and Queuing SQS queue.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param scw_nats_config: Configuration for a Scaleway M&Q NATS subject.
:param scw_nats_config: Configuration for a Scaleway Messaging and Queuing NATS subject.

One-of ('config'): at most one of 'scw_sqs_config', 'scw_nats_config', 'sqs_config' could be set.
:param sqs_config: Configuration for an AWS SQS queue.
Expand Down
Loading