From 4c0aa9441e5a5d737aa6b4624d900efbb4c78def Mon Sep 17 00:00:00 2001 From: Scaleway Bot Date: Thu, 29 Feb 2024 18:32:45 +0100 Subject: [PATCH] chore(serverless): remove support for mnq v1alpha1 API (#2014) --- api/container/v1beta1/container_sdk.go | 20 ++++---------------- api/function/v1beta1/function_sdk.go | 20 ++++---------------- 2 files changed, 8 insertions(+), 32 deletions(-) diff --git a/api/container/v1beta1/container_sdk.go b/api/container/v1beta1/container_sdk.go index 73cd97f8..46d5026e 100644 --- a/api/container/v1beta1/container_sdk.go +++ b/api/container/v1beta1/container_sdk.go @@ -639,9 +639,6 @@ type SecretHashedValue struct { // TriggerMnqNatsClientConfig: trigger mnq nats client config. type TriggerMnqNatsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Subject: name of the NATS subject the trigger listens to. Subject string `json:"subject"` @@ -651,7 +648,7 @@ type TriggerMnqNatsClientConfig struct { // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` // MnqCredentialID: ID of the Messaging and Queuing credentials used to subscribe to the NATS subject. @@ -660,16 +657,13 @@ type TriggerMnqNatsClientConfig struct { // TriggerMnqSqsClientConfig: trigger mnq sqs client config. type TriggerMnqSqsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Queue: name of the SQS queue the trigger listens to. Queue string `json:"queue"` // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` // MnqCredentialID: ID of the Messaging and Queuing credentials used to read from the SQS queue. @@ -696,9 +690,6 @@ type Secret struct { // CreateTriggerRequestMnqNatsClientConfig: create trigger request mnq nats client config. type CreateTriggerRequestMnqNatsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Subject: name of the NATS subject the trigger should listen to. Subject string `json:"subject"` @@ -708,22 +699,19 @@ type CreateTriggerRequestMnqNatsClientConfig struct { // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` } // CreateTriggerRequestMnqSqsClientConfig: create trigger request mnq sqs client config. type CreateTriggerRequestMnqSqsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Queue: name of the SQS queue the trigger should listen to. Queue string `json:"queue"` // MnqProjectID: you must have activated SQS on this project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` } diff --git a/api/function/v1beta1/function_sdk.go b/api/function/v1beta1/function_sdk.go index 8cd76032..83dddf1e 100644 --- a/api/function/v1beta1/function_sdk.go +++ b/api/function/v1beta1/function_sdk.go @@ -695,9 +695,6 @@ type SecretHashedValue struct { // TriggerMnqNatsClientConfig: trigger mnq nats client config. type TriggerMnqNatsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Subject: name of the NATS subject the trigger listens to. Subject string `json:"subject"` @@ -707,7 +704,7 @@ type TriggerMnqNatsClientConfig struct { // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` // MnqCredentialID: ID of the Messaging and Queuing credentials used to subscribe to the NATS subject. @@ -716,16 +713,13 @@ type TriggerMnqNatsClientConfig struct { // TriggerMnqSqsClientConfig: trigger mnq sqs client config. type TriggerMnqSqsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Queue: name of the SQS queue the trigger listens to. Queue string `json:"queue"` // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` // MnqCredentialID: ID of the Messaging and Queuing credentials used to read from the SQS queue. @@ -752,9 +746,6 @@ type Secret struct { // CreateTriggerRequestMnqNatsClientConfig: create trigger request mnq nats client config. type CreateTriggerRequestMnqNatsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Subject: name of the NATS subject the trigger should listen to. Subject string `json:"subject"` @@ -764,22 +755,19 @@ type CreateTriggerRequestMnqNatsClientConfig struct { // MnqProjectID: ID of the Messaging and Queuing project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` } // CreateTriggerRequestMnqSqsClientConfig: create trigger request mnq sqs client config. type CreateTriggerRequestMnqSqsClientConfig struct { - // Deprecated - MnqNamespaceID *string `json:"mnq_namespace_id,omitempty"` - // Queue: name of the SQS queue the trigger should listen to. Queue string `json:"queue"` // MnqProjectID: you must have activated SQS on this project. MnqProjectID string `json:"mnq_project_id"` - // MnqRegion: currently, only the `fr-par` region is available. + // MnqRegion: currently, only the `fr-par` and `nl-ams` regions are available. MnqRegion string `json:"mnq_region"` }