Skip to content

Commit f00ca20

Browse files
authored
chore(serverless): remove support for mnq v1alpha1 API (#450)
1 parent 506ea6c commit f00ca20

File tree

8 files changed

+16
-144
lines changed

8 files changed

+16
-144
lines changed

scaleway-async/scaleway_async/container/v1beta1/marshalling.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
7777
field = data.get("mnq_credential_id", None)
7878
args["mnq_credential_id"] = field
7979

80-
field = data.get("mnq_namespace_id", None)
81-
args["mnq_namespace_id"] = field
82-
8380
field = data.get("mnq_nats_account_id", None)
8481
args["mnq_nats_account_id"] = field
8582

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

109-
field = data.get("mnq_namespace_id", None)
110-
args["mnq_namespace_id"] = field
111-
112106
field = data.get("mnq_project_id", None)
113107
args["mnq_project_id"] = field
114108

@@ -571,9 +565,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
571565
) -> Dict[str, Any]:
572566
output: Dict[str, Any] = {}
573567

574-
if request.mnq_namespace_id is not None:
575-
output["mnq_namespace_id"] = request.mnq_namespace_id
576-
577568
if request.mnq_nats_account_id is not None:
578569
output["mnq_nats_account_id"] = request.mnq_nats_account_id
579570

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

598-
if request.mnq_namespace_id is not None:
599-
output["mnq_namespace_id"] = request.mnq_namespace_id
600-
601589
if request.mnq_project_id is not None:
602590
output["mnq_project_id"] = request.mnq_project_id
603591

scaleway-async/scaleway_async/container/v1beta1/types.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
327327
Create trigger request. mnq nats client config.
328328
"""
329329

330-
mnq_namespace_id: Optional[str]
331-
"""
332-
:deprecated
333-
"""
334-
335330
subject: str
336331
"""
337332
Name of the NATS subject the trigger should listen to.
@@ -350,7 +345,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
350345
mnq_region: str
351346
"""
352347
Region in which the Messaging and Queuing project is activated.
353-
Currently, only the `fr-par` region is available.
348+
Currently, only the `fr-par` and `nl-ams` regions are available.
354349
"""
355350

356351

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

363-
mnq_namespace_id: Optional[str]
364-
"""
365-
:deprecated
366-
"""
367-
368358
queue: str
369359
"""
370360
Name of the SQS queue the trigger should listen to.
@@ -379,7 +369,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
379369
mnq_region: str
380370
"""
381371
Region in which the Messaging and Queuing project is activated.
382-
Currently, only the `fr-par` region is available.
372+
Currently, only the `fr-par` and `nl-ams` regions are available.
383373
"""
384374

385375

@@ -801,11 +791,6 @@ class TriggerMnqNatsClientConfig:
801791
Trigger. mnq nats client config.
802792
"""
803793

804-
mnq_namespace_id: Optional[str]
805-
"""
806-
:deprecated
807-
"""
808-
809794
subject: str
810795
"""
811796
Name of the NATS subject the trigger listens to.
@@ -824,7 +809,7 @@ class TriggerMnqNatsClientConfig:
824809
mnq_region: str
825810
"""
826811
Region in which the Messaging and Queuing project is activated.
827-
Currently, only the `fr-par` region is available.
812+
Currently, only the `fr-par` and `nl-ams` regions are available.
828813
"""
829814

830815
mnq_credential_id: Optional[str]
@@ -839,11 +824,6 @@ class TriggerMnqSqsClientConfig:
839824
Trigger. mnq sqs client config.
840825
"""
841826

842-
mnq_namespace_id: Optional[str]
843-
"""
844-
:deprecated
845-
"""
846-
847827
queue: str
848828
"""
849829
Name of the SQS queue the trigger listens to.
@@ -857,7 +837,7 @@ class TriggerMnqSqsClientConfig:
857837
mnq_region: str
858838
"""
859839
Region in which the Messaging and Queuing project is activated.
860-
Currently, only the `fr-par` region is available.
840+
Currently, only the `fr-par` and `nl-ams` regions are available.
861841
"""
862842

863843
mnq_credential_id: Optional[str]

scaleway-async/scaleway_async/function/v1beta1/marshalling.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
8181
field = data.get("mnq_credential_id", None)
8282
args["mnq_credential_id"] = field
8383

84-
field = data.get("mnq_namespace_id", None)
85-
args["mnq_namespace_id"] = field
86-
8784
field = data.get("mnq_nats_account_id", None)
8885
args["mnq_nats_account_id"] = field
8986

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

113-
field = data.get("mnq_namespace_id", None)
114-
args["mnq_namespace_id"] = field
115-
116110
field = data.get("mnq_project_id", None)
117111
args["mnq_project_id"] = field
118112

@@ -669,9 +663,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
669663
) -> Dict[str, Any]:
670664
output: Dict[str, Any] = {}
671665

672-
if request.mnq_namespace_id is not None:
673-
output["mnq_namespace_id"] = request.mnq_namespace_id
674-
675666
if request.mnq_nats_account_id is not None:
676667
output["mnq_nats_account_id"] = request.mnq_nats_account_id
677668

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

696-
if request.mnq_namespace_id is not None:
697-
output["mnq_namespace_id"] = request.mnq_namespace_id
698-
699687
if request.mnq_project_id is not None:
700688
output["mnq_project_id"] = request.mnq_project_id
701689

scaleway-async/scaleway_async/function/v1beta1/types.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
246246
Create trigger request. mnq nats client config.
247247
"""
248248

249-
mnq_namespace_id: Optional[str]
250-
"""
251-
:deprecated
252-
"""
253-
254249
subject: str
255250
"""
256251
Name of the NATS subject the trigger should listen to.
@@ -269,7 +264,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
269264
mnq_region: str
270265
"""
271266
Region in which the Messaging and Queuing project is activated.
272-
Currently, only the `fr-par` region is available.
267+
Currently, only the `fr-par` and `nl-ams` regions are available.
273268
"""
274269

275270

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

282-
mnq_namespace_id: Optional[str]
283-
"""
284-
:deprecated
285-
"""
286-
287277
queue: str
288278
"""
289279
Name of the SQS queue the trigger should listen to.
@@ -298,7 +288,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
298288
mnq_region: str
299289
"""
300290
Region in which the Messaging and Queuing project is activated.
301-
Currently, only the `fr-par` region is available.
291+
Currently, only the `fr-par` and `nl-ams` regions are available.
302292
"""
303293

304294

@@ -891,11 +881,6 @@ class TriggerMnqNatsClientConfig:
891881
Trigger. mnq nats client config.
892882
"""
893883

894-
mnq_namespace_id: Optional[str]
895-
"""
896-
:deprecated
897-
"""
898-
899884
subject: str
900885
"""
901886
Name of the NATS subject the trigger listens to.
@@ -914,7 +899,7 @@ class TriggerMnqNatsClientConfig:
914899
mnq_region: str
915900
"""
916901
Region in which the Messaging and Queuing project is activated.
917-
Currently, only the `fr-par` region is available.
902+
Currently, only the `fr-par` and `nl-ams` regions are available.
918903
"""
919904

920905
mnq_credential_id: Optional[str]
@@ -929,11 +914,6 @@ class TriggerMnqSqsClientConfig:
929914
Trigger. mnq sqs client config.
930915
"""
931916

932-
mnq_namespace_id: Optional[str]
933-
"""
934-
:deprecated
935-
"""
936-
937917
queue: str
938918
"""
939919
Name of the SQS queue the trigger listens to.
@@ -947,7 +927,7 @@ class TriggerMnqSqsClientConfig:
947927
mnq_region: str
948928
"""
949929
Region in which the Messaging and Queuing project is activated.
950-
Currently, only the `fr-par` region is available.
930+
Currently, only the `fr-par` and `nl-ams` regions are available.
951931
"""
952932

953933
mnq_credential_id: Optional[str]

scaleway/scaleway/container/v1beta1/marshalling.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def unmarshal_TriggerMnqNatsClientConfig(data: Any) -> TriggerMnqNatsClientConfi
7777
field = data.get("mnq_credential_id", None)
7878
args["mnq_credential_id"] = field
7979

80-
field = data.get("mnq_namespace_id", None)
81-
args["mnq_namespace_id"] = field
82-
8380
field = data.get("mnq_nats_account_id", None)
8481
args["mnq_nats_account_id"] = field
8582

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

109-
field = data.get("mnq_namespace_id", None)
110-
args["mnq_namespace_id"] = field
111-
112106
field = data.get("mnq_project_id", None)
113107
args["mnq_project_id"] = field
114108

@@ -571,9 +565,6 @@ def marshal_CreateTriggerRequestMnqNatsClientConfig(
571565
) -> Dict[str, Any]:
572566
output: Dict[str, Any] = {}
573567

574-
if request.mnq_namespace_id is not None:
575-
output["mnq_namespace_id"] = request.mnq_namespace_id
576-
577568
if request.mnq_nats_account_id is not None:
578569
output["mnq_nats_account_id"] = request.mnq_nats_account_id
579570

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

598-
if request.mnq_namespace_id is not None:
599-
output["mnq_namespace_id"] = request.mnq_namespace_id
600-
601589
if request.mnq_project_id is not None:
602590
output["mnq_project_id"] = request.mnq_project_id
603591

scaleway/scaleway/container/v1beta1/types.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,6 @@ class CreateTriggerRequestMnqNatsClientConfig:
327327
Create trigger request. mnq nats client config.
328328
"""
329329

330-
mnq_namespace_id: Optional[str]
331-
"""
332-
:deprecated
333-
"""
334-
335330
subject: str
336331
"""
337332
Name of the NATS subject the trigger should listen to.
@@ -350,7 +345,7 @@ class CreateTriggerRequestMnqNatsClientConfig:
350345
mnq_region: str
351346
"""
352347
Region in which the Messaging and Queuing project is activated.
353-
Currently, only the `fr-par` region is available.
348+
Currently, only the `fr-par` and `nl-ams` regions are available.
354349
"""
355350

356351

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

363-
mnq_namespace_id: Optional[str]
364-
"""
365-
:deprecated
366-
"""
367-
368358
queue: str
369359
"""
370360
Name of the SQS queue the trigger should listen to.
@@ -379,7 +369,7 @@ class CreateTriggerRequestMnqSqsClientConfig:
379369
mnq_region: str
380370
"""
381371
Region in which the Messaging and Queuing project is activated.
382-
Currently, only the `fr-par` region is available.
372+
Currently, only the `fr-par` and `nl-ams` regions are available.
383373
"""
384374

385375

@@ -801,11 +791,6 @@ class TriggerMnqNatsClientConfig:
801791
Trigger. mnq nats client config.
802792
"""
803793

804-
mnq_namespace_id: Optional[str]
805-
"""
806-
:deprecated
807-
"""
808-
809794
subject: str
810795
"""
811796
Name of the NATS subject the trigger listens to.
@@ -824,7 +809,7 @@ class TriggerMnqNatsClientConfig:
824809
mnq_region: str
825810
"""
826811
Region in which the Messaging and Queuing project is activated.
827-
Currently, only the `fr-par` region is available.
812+
Currently, only the `fr-par` and `nl-ams` regions are available.
828813
"""
829814

830815
mnq_credential_id: Optional[str]
@@ -839,11 +824,6 @@ class TriggerMnqSqsClientConfig:
839824
Trigger. mnq sqs client config.
840825
"""
841826

842-
mnq_namespace_id: Optional[str]
843-
"""
844-
:deprecated
845-
"""
846-
847827
queue: str
848828
"""
849829
Name of the SQS queue the trigger listens to.
@@ -857,7 +837,7 @@ class TriggerMnqSqsClientConfig:
857837
mnq_region: str
858838
"""
859839
Region in which the Messaging and Queuing project is activated.
860-
Currently, only the `fr-par` region is available.
840+
Currently, only the `fr-par` and `nl-ams` regions are available.
861841
"""
862842

863843
mnq_credential_id: Optional[str]

0 commit comments

Comments
 (0)