Skip to content

Commit

Permalink
chore(serverless): remove support for mnq v1alpha1 API (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Feb 29, 2024
1 parent 506ea6c commit f00ca20
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 144 deletions.
12 changes: 0 additions & 12 deletions scaleway-async/scaleway_async/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_nats_account_id", None)
args["mnq_nats_account_id"] = field

Expand All @@ -106,9 +103,6 @@ def unmarshal_TriggerMnqSqsClientConfig(data: Any) -> TriggerMnqSqsClientConfig:
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_project_id", None)
args["mnq_project_id"] = field

Expand Down Expand Up @@ -571,9 +565,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_nats_account_id is not None:
output["mnq_nats_account_id"] = request.mnq_nats_account_id

Expand All @@ -595,9 +586,6 @@ def marshal_CreateTriggerRequestMnqSqsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_project_id is not None:
output["mnq_project_id"] = request.mnq_project_id

Expand Down
28 changes: 4 additions & 24 deletions scaleway-async/scaleway_async/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
Create trigger request. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger should listen to.
Expand All @@ -350,7 +345,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand All @@ -360,11 +355,6 @@ class CreateTriggerRequestMnqSqsClientConfig:
Create trigger request. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger should listen to.
Expand All @@ -379,7 +369,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand Down Expand Up @@ -801,11 +791,6 @@ class TriggerMnqNatsClientConfig:
Trigger. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger listens to.
Expand All @@ -824,7 +809,7 @@ class TriggerMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand All @@ -839,11 +824,6 @@ class TriggerMnqSqsClientConfig:
Trigger. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger listens to.
Expand All @@ -857,7 +837,7 @@ class TriggerMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand Down
12 changes: 0 additions & 12 deletions scaleway-async/scaleway_async/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_nats_account_id", None)
args["mnq_nats_account_id"] = field

Expand All @@ -110,9 +107,6 @@ def unmarshal_TriggerMnqSqsClientConfig(data: Any) -> TriggerMnqSqsClientConfig:
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_project_id", None)
args["mnq_project_id"] = field

Expand Down Expand Up @@ -669,9 +663,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_nats_account_id is not None:
output["mnq_nats_account_id"] = request.mnq_nats_account_id

Expand All @@ -693,9 +684,6 @@ def marshal_CreateTriggerRequestMnqSqsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_project_id is not None:
output["mnq_project_id"] = request.mnq_project_id

Expand Down
28 changes: 4 additions & 24 deletions scaleway-async/scaleway_async/function/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
Create trigger request. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger should listen to.
Expand All @@ -269,7 +264,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand All @@ -279,11 +274,6 @@ class CreateTriggerRequestMnqSqsClientConfig:
Create trigger request. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger should listen to.
Expand All @@ -298,7 +288,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand Down Expand Up @@ -891,11 +881,6 @@ class TriggerMnqNatsClientConfig:
Trigger. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger listens to.
Expand All @@ -914,7 +899,7 @@ class TriggerMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand All @@ -929,11 +914,6 @@ class TriggerMnqSqsClientConfig:
Trigger. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger listens to.
Expand All @@ -947,7 +927,7 @@ class TriggerMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand Down
12 changes: 0 additions & 12 deletions scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_nats_account_id", None)
args["mnq_nats_account_id"] = field

Expand All @@ -106,9 +103,6 @@ def unmarshal_TriggerMnqSqsClientConfig(data: Any) -> TriggerMnqSqsClientConfig:
field = data.get("mnq_credential_id", None)
args["mnq_credential_id"] = field

field = data.get("mnq_namespace_id", None)
args["mnq_namespace_id"] = field

field = data.get("mnq_project_id", None)
args["mnq_project_id"] = field

Expand Down Expand Up @@ -571,9 +565,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_nats_account_id is not None:
output["mnq_nats_account_id"] = request.mnq_nats_account_id

Expand All @@ -595,9 +586,6 @@ def marshal_CreateTriggerRequestMnqSqsClientConfig(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.mnq_namespace_id is not None:
output["mnq_namespace_id"] = request.mnq_namespace_id

if request.mnq_project_id is not None:
output["mnq_project_id"] = request.mnq_project_id

Expand Down
28 changes: 4 additions & 24 deletions scaleway/scaleway/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
Create trigger request. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger should listen to.
Expand All @@ -350,7 +345,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand All @@ -360,11 +355,6 @@ class CreateTriggerRequestMnqSqsClientConfig:
Create trigger request. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger should listen to.
Expand All @@ -379,7 +369,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""


Expand Down Expand Up @@ -801,11 +791,6 @@ class TriggerMnqNatsClientConfig:
Trigger. mnq nats client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

subject: str
"""
Name of the NATS subject the trigger listens to.
Expand All @@ -824,7 +809,7 @@ class TriggerMnqNatsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand All @@ -839,11 +824,6 @@ class TriggerMnqSqsClientConfig:
Trigger. mnq sqs client config.
"""

mnq_namespace_id: Optional[str]
"""
:deprecated
"""

queue: str
"""
Name of the SQS queue the trigger listens to.
Expand All @@ -857,7 +837,7 @@ class TriggerMnqSqsClientConfig:
mnq_region: str
"""
Region in which the Messaging and Queuing project is activated.
Currently, only the `fr-par` region is available.
Currently, only the `fr-par` and `nl-ams` regions are available.
"""

mnq_credential_id: Optional[str]
Expand Down
Loading

0 comments on commit f00ca20

Please sign in to comment.