Skip to content

Commit

Permalink
chore(serverless): remove support for mnq v1alpha1 API (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Feb 29, 2024
1 parent 1c8f14f commit 4c0aa94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
20 changes: 4 additions & 16 deletions api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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"`

Expand All @@ -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"`
}

Expand Down
20 changes: 4 additions & 16 deletions api/function/v1beta1/function_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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"`

Expand All @@ -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"`
}

Expand Down

0 comments on commit 4c0aa94

Please sign in to comment.