@scaleway/sdk 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,516 @@
1
+ import { API as API$1 } from '../../../scw/api.js';
2
+ import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
3
+ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
+ import { marshalNatsApiCreateNatsAccountRequest, unmarshalNatsAccount, marshalNatsApiUpdateNatsAccountRequest, unmarshalListNatsAccountsResponse, marshalNatsApiCreateNatsCredentialsRequest, unmarshalNatsCredentials, unmarshalListNatsCredentialsResponse, marshalSnsApiActivateSnsRequest, unmarshalSnsInfo, marshalSnsApiDeactivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, unmarshalSnsCredentials, marshalSnsApiUpdateSnsCredentialsRequest, unmarshalListSnsCredentialsResponse, marshalSqsApiActivateSqsRequest, unmarshalSqsInfo, marshalSqsApiDeactivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, unmarshalSqsCredentials, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListSqsCredentialsResponse } from './marshalling.gen.js';
5
+
6
+ // This file was automatically generated. DO NOT EDIT.
7
+ // If you have any remark or suggestion do not hesitate to open an issue.
8
+ const jsonContentHeaders = {
9
+ 'Content-Type': 'application/json; charset=utf-8'
10
+ };
11
+
12
+ /**
13
+ * Messaging and Queuing NATS API.
14
+ *
15
+ * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
16
+ * Messaging and Queuing NATS API.
17
+ */
18
+ class NatsAPI extends API$1 {
19
+ /** Lists the available regions of the API. */
20
+ static LOCALITIES = ['fr-par'];
21
+
22
+ /**
23
+ * Create a NATS account. Create a NATS account associated with a Project.
24
+ *
25
+ * @param request - The request {@link NatsApiCreateNatsAccountRequest}
26
+ * @returns A Promise of NatsAccount
27
+ */
28
+ createNatsAccount = (() => {
29
+ var _this = this;
30
+ return function (request) {
31
+ if (request === void 0) {
32
+ request = {};
33
+ }
34
+ return _this.client.fetch({
35
+ body: JSON.stringify(marshalNatsApiCreateNatsAccountRequest(request, _this.client.settings)),
36
+ headers: jsonContentHeaders,
37
+ method: 'POST',
38
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/nats-accounts`
39
+ }, unmarshalNatsAccount);
40
+ };
41
+ })();
42
+
43
+ /**
44
+ * Delete a NATS account. Delete a NATS account, specified by its NATS account
45
+ * ID. Note that deleting a NATS account is irreversible, and any credentials,
46
+ * streams, consumer and stored messages belonging to this NATS account will
47
+ * also be deleted.
48
+ *
49
+ * @param request - The request {@link NatsApiDeleteNatsAccountRequest}
50
+ */
51
+ deleteNatsAccount = request => this.client.fetch({
52
+ method: 'DELETE',
53
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
54
+ });
55
+
56
+ /**
57
+ * Update the name of a NATS account. Update the name of a NATS account,
58
+ * specified by its NATS account ID.
59
+ *
60
+ * @param request - The request {@link NatsApiUpdateNatsAccountRequest}
61
+ * @returns A Promise of NatsAccount
62
+ */
63
+ updateNatsAccount = request => this.client.fetch({
64
+ body: JSON.stringify(marshalNatsApiUpdateNatsAccountRequest(request, this.client.settings)),
65
+ headers: jsonContentHeaders,
66
+ method: 'PATCH',
67
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
68
+ }, unmarshalNatsAccount);
69
+
70
+ /**
71
+ * Get a NATS account. Retrieve information about an existing NATS account
72
+ * identified by its NATS account ID. Its full details, including name and
73
+ * endpoint, are returned in the response.
74
+ *
75
+ * @param request - The request {@link NatsApiGetNatsAccountRequest}
76
+ * @returns A Promise of NatsAccount
77
+ */
78
+ getNatsAccount = request => this.client.fetch({
79
+ method: 'GET',
80
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
81
+ }, unmarshalNatsAccount);
82
+ pageOfListNatsAccounts = (() => {
83
+ var _this2 = this;
84
+ return function (request) {
85
+ if (request === void 0) {
86
+ request = {};
87
+ }
88
+ return _this2.client.fetch({
89
+ method: 'GET',
90
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this2.client.settings.defaultRegion)}/nats-accounts`,
91
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize], ['project_id', request.projectId])
92
+ }, unmarshalListNatsAccountsResponse);
93
+ };
94
+ })();
95
+
96
+ /**
97
+ * List NATS accounts. List all NATS accounts in the specified region, for a
98
+ * Scaleway Organization or Project. By default, the NATS accounts returned in
99
+ * the list are ordered by creation date in ascending order, though this can
100
+ * be modified via the `order_by` field.
101
+ *
102
+ * @param request - The request {@link NatsApiListNatsAccountsRequest}
103
+ * @returns A Promise of ListNatsAccountsResponse
104
+ */
105
+ listNatsAccounts = (() => {
106
+ var _this3 = this;
107
+ return function (request) {
108
+ if (request === void 0) {
109
+ request = {};
110
+ }
111
+ return enrichForPagination('natsAccounts', _this3.pageOfListNatsAccounts, request);
112
+ };
113
+ })();
114
+
115
+ /**
116
+ * Create NATS credentials. Create a set of credentials for a NATS account,
117
+ * specified by its NATS account ID.
118
+ *
119
+ * @param request - The request {@link NatsApiCreateNatsCredentialsRequest}
120
+ * @returns A Promise of NatsCredentials
121
+ */
122
+ createNatsCredentials = request => this.client.fetch({
123
+ body: JSON.stringify(marshalNatsApiCreateNatsCredentialsRequest(request, this.client.settings)),
124
+ headers: jsonContentHeaders,
125
+ method: 'POST',
126
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials`
127
+ }, unmarshalNatsCredentials);
128
+
129
+ /**
130
+ * Delete NATS credentials. Delete a set of credentials, specified by their
131
+ * credentials ID. Deleting credentials is irreversible and cannot be undone.
132
+ * The credentials can no longer be used to access the NATS account, and
133
+ * active connections using this credentials will be closed.
134
+ *
135
+ * @param request - The request {@link NatsApiDeleteNatsCredentialsRequest}
136
+ */
137
+ deleteNatsCredentials = request => this.client.fetch({
138
+ method: 'DELETE',
139
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials/${validatePathParam('natsCredentialsId', request.natsCredentialsId)}`
140
+ });
141
+
142
+ /**
143
+ * Get NATS credentials. Retrieve an existing set of credentials, identified
144
+ * by the `nats_credentials_id`. The credentials themselves are NOT returned,
145
+ * only their metadata (NATS account ID, credentials name, etc), are returned
146
+ * in the response.
147
+ *
148
+ * @param request - The request {@link NatsApiGetNatsCredentialsRequest}
149
+ * @returns A Promise of NatsCredentials
150
+ */
151
+ getNatsCredentials = request => this.client.fetch({
152
+ method: 'GET',
153
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials/${validatePathParam('natsCredentialsId', request.natsCredentialsId)}`
154
+ }, unmarshalNatsCredentials);
155
+ pageOfListNatsCredentials = request => this.client.fetch({
156
+ method: 'GET',
157
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials`,
158
+ urlParams: urlParams(['nats_account_id', request.natsAccountId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
159
+ }, unmarshalListNatsCredentialsResponse);
160
+
161
+ /**
162
+ * List NATS credentials. List existing credentials in the specified NATS
163
+ * account. The response contains only the metadata for the credentials, not
164
+ * the credentials themselves, which are only returned after a **Create
165
+ * Credentials** call.
166
+ *
167
+ * @param request - The request {@link NatsApiListNatsCredentialsRequest}
168
+ * @returns A Promise of ListNatsCredentialsResponse
169
+ */
170
+ listNatsCredentials = request => enrichForPagination('natsCredentials', this.pageOfListNatsCredentials, request);
171
+ }
172
+
173
+ /**
174
+ * Messaging and Queuing SNS API.
175
+ *
176
+ * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
177
+ * Messaging and Queuing SNS API.
178
+ */
179
+ class SnsAPI extends API$1 {
180
+ /** Lists the available regions of the API. */
181
+ static LOCALITIES = ['fr-par'];
182
+
183
+ /**
184
+ * Activate SNS. Activate SNS for the specified Project ID. SNS must be
185
+ * activated before any usage. Activating SNS does not trigger any billing,
186
+ * and you can deactivate at any time.
187
+ *
188
+ * @param request - The request {@link SnsApiActivateSnsRequest}
189
+ * @returns A Promise of SnsInfo
190
+ */
191
+ activateSns = (() => {
192
+ var _this4 = this;
193
+ return function (request) {
194
+ if (request === void 0) {
195
+ request = {};
196
+ }
197
+ return _this4.client.fetch({
198
+ body: JSON.stringify(marshalSnsApiActivateSnsRequest(request, _this4.client.settings)),
199
+ headers: jsonContentHeaders,
200
+ method: 'POST',
201
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/activate-sns`
202
+ }, unmarshalSnsInfo);
203
+ };
204
+ })();
205
+
206
+ /**
207
+ * Get SNS info. Retrieve the SNS information of the specified Project ID.
208
+ * Informations include the activation status and the SNS API endpoint URL.
209
+ *
210
+ * @param request - The request {@link SnsApiGetSnsInfoRequest}
211
+ * @returns A Promise of SnsInfo
212
+ */
213
+ getSnsInfo = (() => {
214
+ var _this5 = this;
215
+ return function (request) {
216
+ if (request === void 0) {
217
+ request = {};
218
+ }
219
+ return _this5.client.fetch({
220
+ method: 'GET',
221
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this5.client.settings.defaultRegion)}/sns-info`,
222
+ urlParams: urlParams(['project_id', request.projectId ?? _this5.client.settings.defaultProjectId])
223
+ }, unmarshalSnsInfo);
224
+ };
225
+ })();
226
+
227
+ /**
228
+ * Deactivate SNS. Deactivate SNS for the specified Project ID.You must delete
229
+ * all topics and credentials before this call or you need to set the
230
+ * force_delete parameter.
231
+ *
232
+ * @param request - The request {@link SnsApiDeactivateSnsRequest}
233
+ * @returns A Promise of SnsInfo
234
+ */
235
+ deactivateSns = (() => {
236
+ var _this6 = this;
237
+ return function (request) {
238
+ if (request === void 0) {
239
+ request = {};
240
+ }
241
+ return _this6.client.fetch({
242
+ body: JSON.stringify(marshalSnsApiDeactivateSnsRequest(request, _this6.client.settings)),
243
+ headers: jsonContentHeaders,
244
+ method: 'POST',
245
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this6.client.settings.defaultRegion)}/deactivate-sns`
246
+ }, unmarshalSnsInfo);
247
+ };
248
+ })();
249
+
250
+ /**
251
+ * Create SNS credentials. Create a set of credentials for SNS, specified by a
252
+ * Project ID. Credentials give the bearer access to topics, and the level of
253
+ * permissions can be defined granularly.
254
+ *
255
+ * @param request - The request {@link SnsApiCreateSnsCredentialsRequest}
256
+ * @returns A Promise of SnsCredentials
257
+ */
258
+ createSnsCredentials = (() => {
259
+ var _this7 = this;
260
+ return function (request) {
261
+ if (request === void 0) {
262
+ request = {};
263
+ }
264
+ return _this7.client.fetch({
265
+ body: JSON.stringify(marshalSnsApiCreateSnsCredentialsRequest(request, _this7.client.settings)),
266
+ headers: jsonContentHeaders,
267
+ method: 'POST',
268
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this7.client.settings.defaultRegion)}/sns-credentials`
269
+ }, unmarshalSnsCredentials);
270
+ };
271
+ })();
272
+
273
+ /**
274
+ * Delete SNS credentials. Delete a set of SNS credentials, specified by their
275
+ * credentials ID. Deleting credentials is irreversible and cannot be undone.
276
+ * The credentials can then no longer be used to access SNS.
277
+ *
278
+ * @param request - The request {@link SnsApiDeleteSnsCredentialsRequest}
279
+ */
280
+ deleteSnsCredentials = request => this.client.fetch({
281
+ method: 'DELETE',
282
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
283
+ });
284
+
285
+ /**
286
+ * Update SNS credentials. Update a set of SNS credentials. You can update the
287
+ * credentials' name, or their permissions.
288
+ *
289
+ * @param request - The request {@link SnsApiUpdateSnsCredentialsRequest}
290
+ * @returns A Promise of SnsCredentials
291
+ */
292
+ updateSnsCredentials = request => this.client.fetch({
293
+ body: JSON.stringify(marshalSnsApiUpdateSnsCredentialsRequest(request, this.client.settings)),
294
+ headers: jsonContentHeaders,
295
+ method: 'PATCH',
296
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
297
+ }, unmarshalSnsCredentials);
298
+
299
+ /**
300
+ * Get SNS credentials. Retrieve an existing set of credentials, identified by
301
+ * the `credentials_id`. The credentials themselves, as well as their metadata
302
+ * (name, project ID etc), are returned in the response.
303
+ *
304
+ * @param request - The request {@link SnsApiGetSnsCredentialsRequest}
305
+ * @returns A Promise of SnsCredentials
306
+ */
307
+ getSnsCredentials = request => this.client.fetch({
308
+ method: 'GET',
309
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
310
+ }, unmarshalSnsCredentials);
311
+ pageOfListSnsCredentials = (() => {
312
+ var _this8 = this;
313
+ return function (request) {
314
+ if (request === void 0) {
315
+ request = {};
316
+ }
317
+ return _this8.client.fetch({
318
+ method: 'GET',
319
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this8.client.settings.defaultRegion)}/sns-credentials`,
320
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this8.client.settings.defaultPageSize], ['project_id', request.projectId])
321
+ }, unmarshalListSnsCredentialsResponse);
322
+ };
323
+ })();
324
+
325
+ /**
326
+ * List SNS credentials. List existing SNS credentials in the specified
327
+ * region. The response contains only the metadata for the credentials, not
328
+ * the credentials themselves.
329
+ *
330
+ * @param request - The request {@link SnsApiListSnsCredentialsRequest}
331
+ * @returns A Promise of ListSnsCredentialsResponse
332
+ */
333
+ listSnsCredentials = (() => {
334
+ var _this9 = this;
335
+ return function (request) {
336
+ if (request === void 0) {
337
+ request = {};
338
+ }
339
+ return enrichForPagination('snsCredentials', _this9.pageOfListSnsCredentials, request);
340
+ };
341
+ })();
342
+ }
343
+
344
+ /**
345
+ * Messaging and Queuing SQS API.
346
+ *
347
+ * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
348
+ * Messaging and Queuing SQS API.
349
+ */
350
+ class SqsAPI extends API$1 {
351
+ /** Lists the available regions of the API. */
352
+ static LOCALITIES = ['fr-par'];
353
+
354
+ /**
355
+ * Activate SQS. Activate SQS for the specified Project ID. SQS must be
356
+ * activated before any usage such as creating credentials and queues.
357
+ * Activating SQS does not trigger any billing, and you can deactivate at any
358
+ * time.
359
+ *
360
+ * @param request - The request {@link SqsApiActivateSqsRequest}
361
+ * @returns A Promise of SqsInfo
362
+ */
363
+ activateSqs = (() => {
364
+ var _this10 = this;
365
+ return function (request) {
366
+ if (request === void 0) {
367
+ request = {};
368
+ }
369
+ return _this10.client.fetch({
370
+ body: JSON.stringify(marshalSqsApiActivateSqsRequest(request, _this10.client.settings)),
371
+ headers: jsonContentHeaders,
372
+ method: 'POST',
373
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this10.client.settings.defaultRegion)}/activate-sqs`
374
+ }, unmarshalSqsInfo);
375
+ };
376
+ })();
377
+
378
+ /**
379
+ * Get SQS info. Retrieve the SQS information of the specified Project ID.
380
+ * Informations include the activation status and the SQS API endpoint URL.
381
+ *
382
+ * @param request - The request {@link SqsApiGetSqsInfoRequest}
383
+ * @returns A Promise of SqsInfo
384
+ */
385
+ getSqsInfo = (() => {
386
+ var _this11 = this;
387
+ return function (request) {
388
+ if (request === void 0) {
389
+ request = {};
390
+ }
391
+ return _this11.client.fetch({
392
+ method: 'GET',
393
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this11.client.settings.defaultRegion)}/sqs-info`,
394
+ urlParams: urlParams(['project_id', request.projectId ?? _this11.client.settings.defaultProjectId])
395
+ }, unmarshalSqsInfo);
396
+ };
397
+ })();
398
+
399
+ /**
400
+ * Deactivate SQS. Deactivate SQS for the specified Project ID. You must
401
+ * delete all queues and credentials before this call or you need to set the
402
+ * force_delete parameter.
403
+ *
404
+ * @param request - The request {@link SqsApiDeactivateSqsRequest}
405
+ * @returns A Promise of SqsInfo
406
+ */
407
+ deactivateSqs = (() => {
408
+ var _this12 = this;
409
+ return function (request) {
410
+ if (request === void 0) {
411
+ request = {};
412
+ }
413
+ return _this12.client.fetch({
414
+ body: JSON.stringify(marshalSqsApiDeactivateSqsRequest(request, _this12.client.settings)),
415
+ headers: jsonContentHeaders,
416
+ method: 'POST',
417
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this12.client.settings.defaultRegion)}/deactivate-sqs`
418
+ }, unmarshalSqsInfo);
419
+ };
420
+ })();
421
+
422
+ /**
423
+ * Create SQS credentials. Create a set of credentials for SQS, specified by a
424
+ * Project ID. Credentials give the bearer access to queues, and the level of
425
+ * permissions can be defined granularly.
426
+ *
427
+ * @param request - The request {@link SqsApiCreateSqsCredentialsRequest}
428
+ * @returns A Promise of SqsCredentials
429
+ */
430
+ createSqsCredentials = (() => {
431
+ var _this13 = this;
432
+ return function (request) {
433
+ if (request === void 0) {
434
+ request = {};
435
+ }
436
+ return _this13.client.fetch({
437
+ body: JSON.stringify(marshalSqsApiCreateSqsCredentialsRequest(request, _this13.client.settings)),
438
+ headers: jsonContentHeaders,
439
+ method: 'POST',
440
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this13.client.settings.defaultRegion)}/sqs-credentials`
441
+ }, unmarshalSqsCredentials);
442
+ };
443
+ })();
444
+
445
+ /**
446
+ * Delete SQS credentials. Delete a set of SQS credentials, specified by their
447
+ * credentials ID. Deleting credentials is irreversible and cannot be undone.
448
+ * The credentials can then no longer be used to access SQS.
449
+ *
450
+ * @param request - The request {@link SqsApiDeleteSqsCredentialsRequest}
451
+ */
452
+ deleteSqsCredentials = request => this.client.fetch({
453
+ method: 'DELETE',
454
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
455
+ });
456
+
457
+ /**
458
+ * Update SQS credentials. Update a set of SQS credentials. You can update the
459
+ * credentials' name, or their permissions.
460
+ *
461
+ * @param request - The request {@link SqsApiUpdateSqsCredentialsRequest}
462
+ * @returns A Promise of SqsCredentials
463
+ */
464
+ updateSqsCredentials = request => this.client.fetch({
465
+ body: JSON.stringify(marshalSqsApiUpdateSqsCredentialsRequest(request, this.client.settings)),
466
+ headers: jsonContentHeaders,
467
+ method: 'PATCH',
468
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
469
+ }, unmarshalSqsCredentials);
470
+
471
+ /**
472
+ * Get SQS credentials. Retrieve an existing set of credentials, identified by
473
+ * the `credentials_id`. The credentials themselves, as well as their metadata
474
+ * (name, project ID etc), are returned in the response.
475
+ *
476
+ * @param request - The request {@link SqsApiGetSqsCredentialsRequest}
477
+ * @returns A Promise of SqsCredentials
478
+ */
479
+ getSqsCredentials = request => this.client.fetch({
480
+ method: 'GET',
481
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
482
+ }, unmarshalSqsCredentials);
483
+ pageOfListSqsCredentials = (() => {
484
+ var _this14 = this;
485
+ return function (request) {
486
+ if (request === void 0) {
487
+ request = {};
488
+ }
489
+ return _this14.client.fetch({
490
+ method: 'GET',
491
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this14.client.settings.defaultRegion)}/sqs-credentials`,
492
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this14.client.settings.defaultPageSize], ['project_id', request.projectId])
493
+ }, unmarshalListSqsCredentialsResponse);
494
+ };
495
+ })();
496
+
497
+ /**
498
+ * List SQS credentials. List existing SQS credentials in the specified
499
+ * region. The response contains only the metadata for the credentials, not
500
+ * the credentials themselves.
501
+ *
502
+ * @param request - The request {@link SqsApiListSqsCredentialsRequest}
503
+ * @returns A Promise of ListSqsCredentialsResponse
504
+ */
505
+ listSqsCredentials = (() => {
506
+ var _this15 = this;
507
+ return function (request) {
508
+ if (request === void 0) {
509
+ request = {};
510
+ }
511
+ return enrichForPagination('sqsCredentials', _this15.pageOfListSqsCredentials, request);
512
+ };
513
+ })();
514
+ }
515
+
516
+ export { NatsAPI, SnsAPI, SqsAPI };
@@ -0,0 +1,6 @@
1
+ export { NatsAPI, SnsAPI, SqsAPI } from './api.gen.js';
2
+ import * as validationRules_gen from './validation-rules.gen.js';
3
+ export { validationRules_gen as ValidationRules };
4
+
5
+ // This file was automatically generated. DO NOT EDIT.
6
+ // If you have any remark or suggestion do not hesitate to open an issue.