Skip to content

Commit 4c0aa94

Browse files
authored
chore(serverless): remove support for mnq v1alpha1 API (#2014)
1 parent 1c8f14f commit 4c0aa94

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,6 @@ type SecretHashedValue struct {
639639

640640
// TriggerMnqNatsClientConfig: trigger mnq nats client config.
641641
type TriggerMnqNatsClientConfig struct {
642-
// Deprecated
643-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
644-
645642
// Subject: name of the NATS subject the trigger listens to.
646643
Subject string `json:"subject"`
647644

@@ -651,7 +648,7 @@ type TriggerMnqNatsClientConfig struct {
651648
// MnqProjectID: ID of the Messaging and Queuing project.
652649
MnqProjectID string `json:"mnq_project_id"`
653650

654-
// MnqRegion: currently, only the `fr-par` region is available.
651+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
655652
MnqRegion string `json:"mnq_region"`
656653

657654
// MnqCredentialID: ID of the Messaging and Queuing credentials used to subscribe to the NATS subject.
@@ -660,16 +657,13 @@ type TriggerMnqNatsClientConfig struct {
660657

661658
// TriggerMnqSqsClientConfig: trigger mnq sqs client config.
662659
type TriggerMnqSqsClientConfig struct {
663-
// Deprecated
664-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
665-
666660
// Queue: name of the SQS queue the trigger listens to.
667661
Queue string `json:"queue"`
668662

669663
// MnqProjectID: ID of the Messaging and Queuing project.
670664
MnqProjectID string `json:"mnq_project_id"`
671665

672-
// MnqRegion: currently, only the `fr-par` region is available.
666+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
673667
MnqRegion string `json:"mnq_region"`
674668

675669
// MnqCredentialID: ID of the Messaging and Queuing credentials used to read from the SQS queue.
@@ -696,9 +690,6 @@ type Secret struct {
696690

697691
// CreateTriggerRequestMnqNatsClientConfig: create trigger request mnq nats client config.
698692
type CreateTriggerRequestMnqNatsClientConfig struct {
699-
// Deprecated
700-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
701-
702693
// Subject: name of the NATS subject the trigger should listen to.
703694
Subject string `json:"subject"`
704695

@@ -708,22 +699,19 @@ type CreateTriggerRequestMnqNatsClientConfig struct {
708699
// MnqProjectID: ID of the Messaging and Queuing project.
709700
MnqProjectID string `json:"mnq_project_id"`
710701

711-
// MnqRegion: currently, only the `fr-par` region is available.
702+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
712703
MnqRegion string `json:"mnq_region"`
713704
}
714705

715706
// CreateTriggerRequestMnqSqsClientConfig: create trigger request mnq sqs client config.
716707
type CreateTriggerRequestMnqSqsClientConfig struct {
717-
// Deprecated
718-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
719-
720708
// Queue: name of the SQS queue the trigger should listen to.
721709
Queue string `json:"queue"`
722710

723711
// MnqProjectID: you must have activated SQS on this project.
724712
MnqProjectID string `json:"mnq_project_id"`
725713

726-
// MnqRegion: currently, only the `fr-par` region is available.
714+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
727715
MnqRegion string `json:"mnq_region"`
728716
}
729717

api/function/v1beta1/function_sdk.go

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,6 @@ type SecretHashedValue struct {
695695

696696
// TriggerMnqNatsClientConfig: trigger mnq nats client config.
697697
type TriggerMnqNatsClientConfig struct {
698-
// Deprecated
699-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
700-
701698
// Subject: name of the NATS subject the trigger listens to.
702699
Subject string `json:"subject"`
703700

@@ -707,7 +704,7 @@ type TriggerMnqNatsClientConfig struct {
707704
// MnqProjectID: ID of the Messaging and Queuing project.
708705
MnqProjectID string `json:"mnq_project_id"`
709706

710-
// MnqRegion: currently, only the `fr-par` region is available.
707+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
711708
MnqRegion string `json:"mnq_region"`
712709

713710
// MnqCredentialID: ID of the Messaging and Queuing credentials used to subscribe to the NATS subject.
@@ -716,16 +713,13 @@ type TriggerMnqNatsClientConfig struct {
716713

717714
// TriggerMnqSqsClientConfig: trigger mnq sqs client config.
718715
type TriggerMnqSqsClientConfig struct {
719-
// Deprecated
720-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
721-
722716
// Queue: name of the SQS queue the trigger listens to.
723717
Queue string `json:"queue"`
724718

725719
// MnqProjectID: ID of the Messaging and Queuing project.
726720
MnqProjectID string `json:"mnq_project_id"`
727721

728-
// MnqRegion: currently, only the `fr-par` region is available.
722+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
729723
MnqRegion string `json:"mnq_region"`
730724

731725
// MnqCredentialID: ID of the Messaging and Queuing credentials used to read from the SQS queue.
@@ -752,9 +746,6 @@ type Secret struct {
752746

753747
// CreateTriggerRequestMnqNatsClientConfig: create trigger request mnq nats client config.
754748
type CreateTriggerRequestMnqNatsClientConfig struct {
755-
// Deprecated
756-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
757-
758749
// Subject: name of the NATS subject the trigger should listen to.
759750
Subject string `json:"subject"`
760751

@@ -764,22 +755,19 @@ type CreateTriggerRequestMnqNatsClientConfig struct {
764755
// MnqProjectID: ID of the Messaging and Queuing project.
765756
MnqProjectID string `json:"mnq_project_id"`
766757

767-
// MnqRegion: currently, only the `fr-par` region is available.
758+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
768759
MnqRegion string `json:"mnq_region"`
769760
}
770761

771762
// CreateTriggerRequestMnqSqsClientConfig: create trigger request mnq sqs client config.
772763
type CreateTriggerRequestMnqSqsClientConfig struct {
773-
// Deprecated
774-
MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"`
775-
776764
// Queue: name of the SQS queue the trigger should listen to.
777765
Queue string `json:"queue"`
778766

779767
// MnqProjectID: you must have activated SQS on this project.
780768
MnqProjectID string `json:"mnq_project_id"`
781769

782-
// MnqRegion: currently, only the `fr-par` region is available.
770+
// MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available.
783771
MnqRegion string `json:"mnq_region"`
784772
}
785773

0 commit comments

Comments
 (0)