Skip to content

Commit d3f8181

Browse files
authored
chore(serverless): remove support for mnq v1alpha1 API (#1170)
1 parent 2e07ffd commit d3f8181

File tree

4 files changed

+8
-32
lines changed

4 files changed

+8
-32
lines changed

packages/clients/src/api/container/v1beta1/marshalling.gen.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ const unmarshalTriggerMnqNatsClientConfig = (
182182

183183
return {
184184
mnqCredentialId: data.mnq_credential_id,
185-
mnqNamespaceId: data.mnq_namespace_id,
186185
mnqNatsAccountId: data.mnq_nats_account_id,
187186
mnqProjectId: data.mnq_project_id,
188187
mnqRegion: data.mnq_region,
@@ -201,7 +200,6 @@ const unmarshalTriggerMnqSqsClientConfig = (
201200

202201
return {
203202
mnqCredentialId: data.mnq_credential_id,
204-
mnqNamespaceId: data.mnq_namespace_id,
205203
mnqProjectId: data.mnq_project_id,
206204
mnqRegion: data.mnq_region,
207205
queue: data.queue,
@@ -457,7 +455,6 @@ const marshalCreateTriggerRequestMnqNatsClientConfig = (
457455
request: CreateTriggerRequestMnqNatsClientConfig,
458456
defaults: DefaultValues,
459457
): Record<string, unknown> => ({
460-
mnq_namespace_id: request.mnqNamespaceId,
461458
mnq_nats_account_id: request.mnqNatsAccountId,
462459
mnq_project_id: request.mnqProjectId,
463460
mnq_region: request.mnqRegion,
@@ -468,7 +465,6 @@ const marshalCreateTriggerRequestMnqSqsClientConfig = (
468465
request: CreateTriggerRequestMnqSqsClientConfig,
469466
defaults: DefaultValues,
470467
): Record<string, unknown> => ({
471-
mnq_namespace_id: request.mnqNamespaceId,
472468
mnq_project_id: request.mnqProjectId,
473469
mnq_region: request.mnqRegion,
474470
queue: request.queue,

packages/clients/src/api/container/v1beta1/types.gen.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,13 @@ export interface SecretHashedValue {
103103
}
104104

105105
export interface TriggerMnqNatsClientConfig {
106-
/** @deprecated */
107-
mnqNamespaceId?: string
108106
/** Name of the NATS subject the trigger listens to. */
109107
subject: string
110108
/** ID of the Messaging and Queuing NATS account. */
111109
mnqNatsAccountId: string
112110
/** ID of the Messaging and Queuing project. */
113111
mnqProjectId: string
114-
/** Currently, only the `fr-par` region is available. */
112+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
115113
mnqRegion: string
116114
/**
117115
* ID of the Messaging and Queuing credentials used to subscribe to the NATS
@@ -121,13 +119,11 @@ export interface TriggerMnqNatsClientConfig {
121119
}
122120

123121
export interface TriggerMnqSqsClientConfig {
124-
/** @deprecated */
125-
mnqNamespaceId?: string
126122
/** Name of the SQS queue the trigger listens to. */
127123
queue: string
128124
/** ID of the Messaging and Queuing project. */
129125
mnqProjectId: string
130-
/** Currently, only the `fr-par` region is available. */
126+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
131127
mnqRegion: string
132128
/**
133129
* ID of the Messaging and Queuing credentials used to read from the SQS
@@ -149,26 +145,22 @@ export interface Secret {
149145
}
150146

151147
export interface CreateTriggerRequestMnqNatsClientConfig {
152-
/** @deprecated */
153-
mnqNamespaceId?: string
154148
/** Name of the NATS subject the trigger should listen to. */
155149
subject: string
156150
/** ID of the Messaging and Queuing NATS account. */
157151
mnqNatsAccountId: string
158152
/** ID of the Messaging and Queuing project. */
159153
mnqProjectId: string
160-
/** Currently, only the `fr-par` region is available. */
154+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
161155
mnqRegion: string
162156
}
163157

164158
export interface CreateTriggerRequestMnqSqsClientConfig {
165-
/** @deprecated */
166-
mnqNamespaceId?: string
167159
/** Name of the SQS queue the trigger should listen to. */
168160
queue: string
169161
/** You must have activated SQS on this project. */
170162
mnqProjectId: string
171-
/** Currently, only the `fr-par` region is available. */
163+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
172164
mnqRegion: string
173165
}
174166

packages/clients/src/api/function/v1beta1/marshalling.gen.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ const unmarshalTriggerMnqNatsClientConfig = (
186186

187187
return {
188188
mnqCredentialId: data.mnq_credential_id,
189-
mnqNamespaceId: data.mnq_namespace_id,
190189
mnqNatsAccountId: data.mnq_nats_account_id,
191190
mnqProjectId: data.mnq_project_id,
192191
mnqRegion: data.mnq_region,
@@ -205,7 +204,6 @@ const unmarshalTriggerMnqSqsClientConfig = (
205204

206205
return {
207206
mnqCredentialId: data.mnq_credential_id,
208-
mnqNamespaceId: data.mnq_namespace_id,
209207
mnqProjectId: data.mnq_project_id,
210208
mnqRegion: data.mnq_region,
211209
queue: data.queue,
@@ -520,7 +518,6 @@ const marshalCreateTriggerRequestMnqNatsClientConfig = (
520518
request: CreateTriggerRequestMnqNatsClientConfig,
521519
defaults: DefaultValues,
522520
): Record<string, unknown> => ({
523-
mnq_namespace_id: request.mnqNamespaceId,
524521
mnq_nats_account_id: request.mnqNatsAccountId,
525522
mnq_project_id: request.mnqProjectId,
526523
mnq_region: request.mnqRegion,
@@ -531,7 +528,6 @@ const marshalCreateTriggerRequestMnqSqsClientConfig = (
531528
request: CreateTriggerRequestMnqSqsClientConfig,
532529
defaults: DefaultValues,
533530
): Record<string, unknown> => ({
534-
mnq_namespace_id: request.mnqNamespaceId,
535531
mnq_project_id: request.mnqProjectId,
536532
mnq_region: request.mnqRegion,
537533
queue: request.queue,

packages/clients/src/api/function/v1beta1/types.gen.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,13 @@ export interface SecretHashedValue {
136136
}
137137

138138
export interface TriggerMnqNatsClientConfig {
139-
/** @deprecated */
140-
mnqNamespaceId?: string
141139
/** Name of the NATS subject the trigger listens to. */
142140
subject: string
143141
/** ID of the Messaging and Queuing NATS account. */
144142
mnqNatsAccountId: string
145143
/** ID of the Messaging and Queuing project. */
146144
mnqProjectId: string
147-
/** Currently, only the `fr-par` region is available. */
145+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
148146
mnqRegion: string
149147
/**
150148
* ID of the Messaging and Queuing credentials used to subscribe to the NATS
@@ -154,13 +152,11 @@ export interface TriggerMnqNatsClientConfig {
154152
}
155153

156154
export interface TriggerMnqSqsClientConfig {
157-
/** @deprecated */
158-
mnqNamespaceId?: string
159155
/** Name of the SQS queue the trigger listens to. */
160156
queue: string
161157
/** ID of the Messaging and Queuing project. */
162158
mnqProjectId: string
163-
/** Currently, only the `fr-par` region is available. */
159+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
164160
mnqRegion: string
165161
/**
166162
* ID of the Messaging and Queuing credentials used to read from the SQS
@@ -182,26 +178,22 @@ export interface Secret {
182178
}
183179

184180
export interface CreateTriggerRequestMnqNatsClientConfig {
185-
/** @deprecated */
186-
mnqNamespaceId?: string
187181
/** Name of the NATS subject the trigger should listen to. */
188182
subject: string
189183
/** ID of the Messaging and Queuing NATS account. */
190184
mnqNatsAccountId: string
191185
/** ID of the Messaging and Queuing project. */
192186
mnqProjectId: string
193-
/** Currently, only the `fr-par` region is available. */
187+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
194188
mnqRegion: string
195189
}
196190

197191
export interface CreateTriggerRequestMnqSqsClientConfig {
198-
/** @deprecated */
199-
mnqNamespaceId?: string
200192
/** Name of the SQS queue the trigger should listen to. */
201193
queue: string
202194
/** You must have activated SQS on this project. */
203195
mnqProjectId: string
204-
/** Currently, only the `fr-par` region is available. */
196+
/** Currently, only the `fr-par` and `nl-ams` regions are available. */
205197
mnqRegion: string
206198
}
207199

0 commit comments

Comments
 (0)