@scaleway/sdk 2.6.0 → 2.8.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.
Files changed (65) hide show
  1. package/dist/api/account/v2/api.gen.js +26 -74
  2. package/dist/api/account/v3/api.gen.js +20 -60
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +16 -56
  4. package/dist/api/baremetal/v1/api.gen.js +36 -132
  5. package/dist/api/billing/v2alpha1/api.gen.js +17 -57
  6. package/dist/api/block/v1alpha1/api.gen.js +20 -74
  7. package/dist/api/block/v1alpha1/marshalling.gen.js +1 -8
  8. package/dist/api/block/v1alpha1/validation-rules.gen.js +1 -6
  9. package/dist/api/cockpit/v1beta1/api.gen.js +95 -279
  10. package/dist/api/container/v1beta1/api.gen.js +51 -123
  11. package/dist/api/document_db/v1beta1/api.gen.js +18 -66
  12. package/dist/api/document_db/v1beta1/marshalling.gen.js +20 -1
  13. package/dist/api/domain/v2beta1/api.gen.js +36 -124
  14. package/dist/api/flexibleip/v1alpha1/api.gen.js +6 -22
  15. package/dist/api/function/v1beta1/api.gen.js +55 -135
  16. package/dist/api/iam/v1alpha1/api.gen.js +66 -226
  17. package/dist/api/instance/v1/api.gen.js +102 -310
  18. package/dist/api/instance/v1/marshalling.gen.js +32 -56
  19. package/dist/api/iot/v1/api.gen.js +24 -88
  20. package/dist/api/ipam/v1/api.gen.js +12 -28
  21. package/dist/api/ipfs/v1alpha1/api.gen.js +12 -44
  22. package/dist/api/jobs/v1alpha1/api.gen.js +12 -44
  23. package/dist/api/jobs/v1alpha1/marshalling.gen.js +2 -0
  24. package/dist/api/k8s/v1/api.gen.js +16 -56
  25. package/dist/api/lb/v1/api.gen.js +72 -248
  26. package/dist/api/marketplace/v1/api.gen.js +7 -31
  27. package/dist/api/marketplace/v1/marshalling.gen.js +1 -18
  28. package/dist/api/marketplace/v2/api.gen.js +21 -53
  29. package/dist/api/mnq/v1beta1/api.gen.js +76 -212
  30. package/dist/api/rdb/v1/api.gen.js +24 -88
  31. package/dist/api/rdb/v1/marshalling.gen.js +11 -1
  32. package/dist/api/redis/v1/api.gen.js +6 -22
  33. package/dist/api/registry/v1/api.gen.js +12 -44
  34. package/dist/api/secret/v1alpha1/api.gen.js +18 -66
  35. package/dist/api/serverless_sqldb/index.js +2 -0
  36. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +162 -0
  37. package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +7 -0
  38. package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +7 -0
  39. package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +77 -0
  40. package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +60 -0
  41. package/dist/api/tem/v1alpha1/api.gen.js +17 -57
  42. package/dist/api/test/v1/api.gen.js +6 -22
  43. package/dist/api/vpc/v1/api.gen.js +12 -36
  44. package/dist/api/vpc/v2/api.gen.js +30 -86
  45. package/dist/api/vpcgw/v1/api.gen.js +46 -158
  46. package/dist/api/webhosting/v1alpha1/api.gen.js +12 -44
  47. package/dist/helpers/marshalling.js +8 -23
  48. package/dist/index.cjs +925 -621
  49. package/dist/index.d.ts +2045 -1661
  50. package/dist/index.js +12 -10
  51. package/dist/internal/async/interval-retrier.js +8 -16
  52. package/dist/internal/interceptors/helpers.js +3 -4
  53. package/dist/internal/logger/console-logger.js +1 -7
  54. package/dist/internal/logger/index.js +1 -9
  55. package/dist/scw/auth.js +1 -2
  56. package/dist/scw/client.js +2 -10
  57. package/dist/scw/constants.js +1 -1
  58. package/dist/scw/errors/non-standard/invalid-request-mapper.js +5 -8
  59. package/dist/scw/errors/scw-error.js +2 -8
  60. package/dist/scw/errors/standard/permissions-denied-error.js +4 -7
  61. package/dist/scw/fetch/build-fetcher.js +1 -4
  62. package/dist/scw/fetch/http-dumper.js +1 -4
  63. package/dist/scw/fetch/http-interceptors.js +18 -31
  64. package/dist/scw/fetch/resource-paginator.js +3 -17
  65. package/package.json +2 -2
@@ -60,28 +60,20 @@ class API extends API$1 {
60
60
  method: 'GET',
61
61
  path: `/marketplace/v2/versions/${validatePathParam('versionId', request.versionId)}`
62
62
  }, unmarshalVersion);
63
- pageOfListLocalImages = (() => {
64
- var _this = this;
65
- return function (request) {
66
- if (request === void 0) {
67
- request = {};
68
- }
69
- return _this.client.fetch({
70
- method: 'GET',
71
- path: `/marketplace/v2/local-images`,
72
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['type', request.type], ['zone', request.zone], ...Object.entries(resolveOneOf([{
73
- param: 'image_id',
74
- value: request.imageId
75
- }, {
76
- param: 'version_id',
77
- value: request.versionId
78
- }, {
79
- param: 'image_label',
80
- value: request.imageLabel
81
- }])))
82
- }, unmarshalListLocalImagesResponse);
83
- };
84
- })();
63
+ pageOfListLocalImages = (request = {}) => this.client.fetch({
64
+ method: 'GET',
65
+ path: `/marketplace/v2/local-images`,
66
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['type', request.type], ['zone', request.zone], ...Object.entries(resolveOneOf([{
67
+ param: 'image_id',
68
+ value: request.imageId
69
+ }, {
70
+ param: 'version_id',
71
+ value: request.versionId
72
+ }, {
73
+ param: 'image_label',
74
+ value: request.imageLabel
75
+ }])))
76
+ }, unmarshalListLocalImagesResponse);
85
77
 
86
78
  /**
87
79
  * List local images from a specific image or version. List information about
@@ -92,15 +84,7 @@ class API extends API$1 {
92
84
  * @param request - The request {@link ListLocalImagesRequest}
93
85
  * @returns A Promise of ListLocalImagesResponse
94
86
  */
95
- listLocalImages = (() => {
96
- var _this2 = this;
97
- return function (request) {
98
- if (request === void 0) {
99
- request = {};
100
- }
101
- return enrichForPagination('localImages', _this2.pageOfListLocalImages, request);
102
- };
103
- })();
87
+ listLocalImages = (request = {}) => enrichForPagination('localImages', this.pageOfListLocalImages, request);
104
88
 
105
89
  /**
106
90
  * Get a specific local image by ID. Get detailed information about a local
@@ -115,19 +99,11 @@ class API extends API$1 {
115
99
  method: 'GET',
116
100
  path: `/marketplace/v2/local-images/${validatePathParam('localImageId', request.localImageId)}`
117
101
  }, unmarshalLocalImage);
118
- pageOfListCategories = (() => {
119
- var _this3 = this;
120
- return function (request) {
121
- if (request === void 0) {
122
- request = {};
123
- }
124
- return _this3.client.fetch({
125
- method: 'GET',
126
- path: `/marketplace/v2/categories`,
127
- urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize])
128
- }, unmarshalListCategoriesResponse);
129
- };
130
- })();
102
+ pageOfListCategories = (request = {}) => this.client.fetch({
103
+ method: 'GET',
104
+ path: `/marketplace/v2/categories`,
105
+ urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
106
+ }, unmarshalListCategoriesResponse);
131
107
 
132
108
  /**
133
109
  * List existing image categories. Get a list of all existing categories. The
@@ -136,15 +112,7 @@ class API extends API$1 {
136
112
  * @param request - The request {@link ListCategoriesRequest}
137
113
  * @returns A Promise of ListCategoriesResponse
138
114
  */
139
- listCategories = (() => {
140
- var _this4 = this;
141
- return function (request) {
142
- if (request === void 0) {
143
- request = {};
144
- }
145
- return enrichForPagination('categories', _this4.pageOfListCategories, request);
146
- };
147
- })();
115
+ listCategories = (request = {}) => enrichForPagination('categories', this.pageOfListCategories, request);
148
116
 
149
117
  /**
150
118
  * Get a specific category. Get information about a specific category of the
@@ -24,20 +24,12 @@ class NatsAPI extends API$1 {
24
24
  * @param request - The request {@link NatsApiCreateNatsAccountRequest}
25
25
  * @returns A Promise of NatsAccount
26
26
  */
27
- createNatsAccount = (() => {
28
- var _this = this;
29
- return function (request) {
30
- if (request === void 0) {
31
- request = {};
32
- }
33
- return _this.client.fetch({
34
- body: JSON.stringify(marshalNatsApiCreateNatsAccountRequest(request, _this.client.settings)),
35
- headers: jsonContentHeaders,
36
- method: 'POST',
37
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/nats-accounts`
38
- }, unmarshalNatsAccount);
39
- };
40
- })();
27
+ createNatsAccount = (request = {}) => this.client.fetch({
28
+ body: JSON.stringify(marshalNatsApiCreateNatsAccountRequest(request, this.client.settings)),
29
+ headers: jsonContentHeaders,
30
+ method: 'POST',
31
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts`
32
+ }, unmarshalNatsAccount);
41
33
 
42
34
  /**
43
35
  * Delete a NATS account. Delete a NATS account, specified by its NATS account
@@ -78,19 +70,11 @@ class NatsAPI extends API$1 {
78
70
  method: 'GET',
79
71
  path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
80
72
  }, unmarshalNatsAccount);
81
- pageOfListNatsAccounts = (() => {
82
- var _this2 = this;
83
- return function (request) {
84
- if (request === void 0) {
85
- request = {};
86
- }
87
- return _this2.client.fetch({
88
- method: 'GET',
89
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this2.client.settings.defaultRegion)}/nats-accounts`,
90
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize], ['project_id', request.projectId])
91
- }, unmarshalListNatsAccountsResponse);
92
- };
93
- })();
73
+ pageOfListNatsAccounts = (request = {}) => this.client.fetch({
74
+ method: 'GET',
75
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts`,
76
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
77
+ }, unmarshalListNatsAccountsResponse);
94
78
 
95
79
  /**
96
80
  * List NATS accounts. List all NATS accounts in the specified region, for a
@@ -101,15 +85,7 @@ class NatsAPI extends API$1 {
101
85
  * @param request - The request {@link NatsApiListNatsAccountsRequest}
102
86
  * @returns A Promise of ListNatsAccountsResponse
103
87
  */
104
- listNatsAccounts = (() => {
105
- var _this3 = this;
106
- return function (request) {
107
- if (request === void 0) {
108
- request = {};
109
- }
110
- return enrichForPagination('natsAccounts', _this3.pageOfListNatsAccounts, request);
111
- };
112
- })();
88
+ listNatsAccounts = (request = {}) => enrichForPagination('natsAccounts', this.pageOfListNatsAccounts, request);
113
89
 
114
90
  /**
115
91
  * Create NATS credentials. Create a set of credentials for a NATS account,
@@ -151,19 +127,11 @@ class NatsAPI extends API$1 {
151
127
  method: 'GET',
152
128
  path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials/${validatePathParam('natsCredentialsId', request.natsCredentialsId)}`
153
129
  }, unmarshalNatsCredentials);
154
- pageOfListNatsCredentials = (() => {
155
- var _this4 = this;
156
- return function (request) {
157
- if (request === void 0) {
158
- request = {};
159
- }
160
- return _this4.client.fetch({
161
- method: 'GET',
162
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/nats-credentials`,
163
- urlParams: urlParams(['nats_account_id', request.natsAccountId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize])
164
- }, unmarshalListNatsCredentialsResponse);
165
- };
166
- })();
130
+ pageOfListNatsCredentials = (request = {}) => this.client.fetch({
131
+ method: 'GET',
132
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials`,
133
+ urlParams: urlParams(['nats_account_id', request.natsAccountId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
134
+ }, unmarshalListNatsCredentialsResponse);
167
135
 
168
136
  /**
169
137
  * List NATS credentials. List existing credentials in the specified NATS
@@ -174,15 +142,7 @@ class NatsAPI extends API$1 {
174
142
  * @param request - The request {@link NatsApiListNatsCredentialsRequest}
175
143
  * @returns A Promise of ListNatsCredentialsResponse
176
144
  */
177
- listNatsCredentials = (() => {
178
- var _this5 = this;
179
- return function (request) {
180
- if (request === void 0) {
181
- request = {};
182
- }
183
- return enrichForPagination('natsCredentials', _this5.pageOfListNatsCredentials, request);
184
- };
185
- })();
145
+ listNatsCredentials = (request = {}) => enrichForPagination('natsCredentials', this.pageOfListNatsCredentials, request);
186
146
  }
187
147
 
188
148
  /**
@@ -202,20 +162,12 @@ class SnsAPI extends API$1 {
202
162
  * @param request - The request {@link SnsApiActivateSnsRequest}
203
163
  * @returns A Promise of SnsInfo
204
164
  */
205
- activateSns = (() => {
206
- var _this6 = this;
207
- return function (request) {
208
- if (request === void 0) {
209
- request = {};
210
- }
211
- return _this6.client.fetch({
212
- body: JSON.stringify(marshalSnsApiActivateSnsRequest(request, _this6.client.settings)),
213
- headers: jsonContentHeaders,
214
- method: 'POST',
215
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this6.client.settings.defaultRegion)}/activate-sns`
216
- }, unmarshalSnsInfo);
217
- };
218
- })();
165
+ activateSns = (request = {}) => this.client.fetch({
166
+ body: JSON.stringify(marshalSnsApiActivateSnsRequest(request, this.client.settings)),
167
+ headers: jsonContentHeaders,
168
+ method: 'POST',
169
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/activate-sns`
170
+ }, unmarshalSnsInfo);
219
171
 
220
172
  /**
221
173
  * Get SNS info. Retrieve the SNS information of the specified Project ID.
@@ -224,19 +176,11 @@ class SnsAPI extends API$1 {
224
176
  * @param request - The request {@link SnsApiGetSnsInfoRequest}
225
177
  * @returns A Promise of SnsInfo
226
178
  */
227
- getSnsInfo = (() => {
228
- var _this7 = this;
229
- return function (request) {
230
- if (request === void 0) {
231
- request = {};
232
- }
233
- return _this7.client.fetch({
234
- method: 'GET',
235
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this7.client.settings.defaultRegion)}/sns-info`,
236
- urlParams: urlParams(['project_id', request.projectId ?? _this7.client.settings.defaultProjectId])
237
- }, unmarshalSnsInfo);
238
- };
239
- })();
179
+ getSnsInfo = (request = {}) => this.client.fetch({
180
+ method: 'GET',
181
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-info`,
182
+ urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
183
+ }, unmarshalSnsInfo);
240
184
 
241
185
  /**
242
186
  * Deactivate SNS. Deactivate SNS for the specified Project ID.You must delete
@@ -246,20 +190,12 @@ class SnsAPI extends API$1 {
246
190
  * @param request - The request {@link SnsApiDeactivateSnsRequest}
247
191
  * @returns A Promise of SnsInfo
248
192
  */
249
- deactivateSns = (() => {
250
- var _this8 = this;
251
- return function (request) {
252
- if (request === void 0) {
253
- request = {};
254
- }
255
- return _this8.client.fetch({
256
- body: JSON.stringify(marshalSnsApiDeactivateSnsRequest(request, _this8.client.settings)),
257
- headers: jsonContentHeaders,
258
- method: 'POST',
259
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this8.client.settings.defaultRegion)}/deactivate-sns`
260
- }, unmarshalSnsInfo);
261
- };
262
- })();
193
+ deactivateSns = (request = {}) => this.client.fetch({
194
+ body: JSON.stringify(marshalSnsApiDeactivateSnsRequest(request, this.client.settings)),
195
+ headers: jsonContentHeaders,
196
+ method: 'POST',
197
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/deactivate-sns`
198
+ }, unmarshalSnsInfo);
263
199
 
264
200
  /**
265
201
  * Create SNS credentials. Create a set of credentials for SNS, specified by a
@@ -269,20 +205,12 @@ class SnsAPI extends API$1 {
269
205
  * @param request - The request {@link SnsApiCreateSnsCredentialsRequest}
270
206
  * @returns A Promise of SnsCredentials
271
207
  */
272
- createSnsCredentials = (() => {
273
- var _this9 = this;
274
- return function (request) {
275
- if (request === void 0) {
276
- request = {};
277
- }
278
- return _this9.client.fetch({
279
- body: JSON.stringify(marshalSnsApiCreateSnsCredentialsRequest(request, _this9.client.settings)),
280
- headers: jsonContentHeaders,
281
- method: 'POST',
282
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this9.client.settings.defaultRegion)}/sns-credentials`
283
- }, unmarshalSnsCredentials);
284
- };
285
- })();
208
+ createSnsCredentials = (request = {}) => this.client.fetch({
209
+ body: JSON.stringify(marshalSnsApiCreateSnsCredentialsRequest(request, this.client.settings)),
210
+ headers: jsonContentHeaders,
211
+ method: 'POST',
212
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials`
213
+ }, unmarshalSnsCredentials);
286
214
 
287
215
  /**
288
216
  * Delete SNS credentials. Delete a set of SNS credentials, specified by their
@@ -322,19 +250,11 @@ class SnsAPI extends API$1 {
322
250
  method: 'GET',
323
251
  path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
324
252
  }, unmarshalSnsCredentials);
325
- pageOfListSnsCredentials = (() => {
326
- var _this10 = this;
327
- return function (request) {
328
- if (request === void 0) {
329
- request = {};
330
- }
331
- return _this10.client.fetch({
332
- method: 'GET',
333
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this10.client.settings.defaultRegion)}/sns-credentials`,
334
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this10.client.settings.defaultPageSize], ['project_id', request.projectId])
335
- }, unmarshalListSnsCredentialsResponse);
336
- };
337
- })();
253
+ pageOfListSnsCredentials = (request = {}) => this.client.fetch({
254
+ method: 'GET',
255
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials`,
256
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
257
+ }, unmarshalListSnsCredentialsResponse);
338
258
 
339
259
  /**
340
260
  * List SNS credentials. List existing SNS credentials in the specified
@@ -344,15 +264,7 @@ class SnsAPI extends API$1 {
344
264
  * @param request - The request {@link SnsApiListSnsCredentialsRequest}
345
265
  * @returns A Promise of ListSnsCredentialsResponse
346
266
  */
347
- listSnsCredentials = (() => {
348
- var _this11 = this;
349
- return function (request) {
350
- if (request === void 0) {
351
- request = {};
352
- }
353
- return enrichForPagination('snsCredentials', _this11.pageOfListSnsCredentials, request);
354
- };
355
- })();
267
+ listSnsCredentials = (request = {}) => enrichForPagination('snsCredentials', this.pageOfListSnsCredentials, request);
356
268
  }
357
269
 
358
270
  /**
@@ -373,20 +285,12 @@ class SqsAPI extends API$1 {
373
285
  * @param request - The request {@link SqsApiActivateSqsRequest}
374
286
  * @returns A Promise of SqsInfo
375
287
  */
376
- activateSqs = (() => {
377
- var _this12 = this;
378
- return function (request) {
379
- if (request === void 0) {
380
- request = {};
381
- }
382
- return _this12.client.fetch({
383
- body: JSON.stringify(marshalSqsApiActivateSqsRequest(request, _this12.client.settings)),
384
- headers: jsonContentHeaders,
385
- method: 'POST',
386
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this12.client.settings.defaultRegion)}/activate-sqs`
387
- }, unmarshalSqsInfo);
388
- };
389
- })();
288
+ activateSqs = (request = {}) => this.client.fetch({
289
+ body: JSON.stringify(marshalSqsApiActivateSqsRequest(request, this.client.settings)),
290
+ headers: jsonContentHeaders,
291
+ method: 'POST',
292
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/activate-sqs`
293
+ }, unmarshalSqsInfo);
390
294
 
391
295
  /**
392
296
  * Get SQS info. Retrieve the SQS information of the specified Project ID.
@@ -395,19 +299,11 @@ class SqsAPI extends API$1 {
395
299
  * @param request - The request {@link SqsApiGetSqsInfoRequest}
396
300
  * @returns A Promise of SqsInfo
397
301
  */
398
- getSqsInfo = (() => {
399
- var _this13 = this;
400
- return function (request) {
401
- if (request === void 0) {
402
- request = {};
403
- }
404
- return _this13.client.fetch({
405
- method: 'GET',
406
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this13.client.settings.defaultRegion)}/sqs-info`,
407
- urlParams: urlParams(['project_id', request.projectId ?? _this13.client.settings.defaultProjectId])
408
- }, unmarshalSqsInfo);
409
- };
410
- })();
302
+ getSqsInfo = (request = {}) => this.client.fetch({
303
+ method: 'GET',
304
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-info`,
305
+ urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
306
+ }, unmarshalSqsInfo);
411
307
 
412
308
  /**
413
309
  * Deactivate SQS. Deactivate SQS for the specified Project ID. You must
@@ -417,20 +313,12 @@ class SqsAPI extends API$1 {
417
313
  * @param request - The request {@link SqsApiDeactivateSqsRequest}
418
314
  * @returns A Promise of SqsInfo
419
315
  */
420
- deactivateSqs = (() => {
421
- var _this14 = this;
422
- return function (request) {
423
- if (request === void 0) {
424
- request = {};
425
- }
426
- return _this14.client.fetch({
427
- body: JSON.stringify(marshalSqsApiDeactivateSqsRequest(request, _this14.client.settings)),
428
- headers: jsonContentHeaders,
429
- method: 'POST',
430
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this14.client.settings.defaultRegion)}/deactivate-sqs`
431
- }, unmarshalSqsInfo);
432
- };
433
- })();
316
+ deactivateSqs = (request = {}) => this.client.fetch({
317
+ body: JSON.stringify(marshalSqsApiDeactivateSqsRequest(request, this.client.settings)),
318
+ headers: jsonContentHeaders,
319
+ method: 'POST',
320
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/deactivate-sqs`
321
+ }, unmarshalSqsInfo);
434
322
 
435
323
  /**
436
324
  * Create SQS credentials. Create a set of credentials for SQS, specified by a
@@ -440,20 +328,12 @@ class SqsAPI extends API$1 {
440
328
  * @param request - The request {@link SqsApiCreateSqsCredentialsRequest}
441
329
  * @returns A Promise of SqsCredentials
442
330
  */
443
- createSqsCredentials = (() => {
444
- var _this15 = this;
445
- return function (request) {
446
- if (request === void 0) {
447
- request = {};
448
- }
449
- return _this15.client.fetch({
450
- body: JSON.stringify(marshalSqsApiCreateSqsCredentialsRequest(request, _this15.client.settings)),
451
- headers: jsonContentHeaders,
452
- method: 'POST',
453
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this15.client.settings.defaultRegion)}/sqs-credentials`
454
- }, unmarshalSqsCredentials);
455
- };
456
- })();
331
+ createSqsCredentials = (request = {}) => this.client.fetch({
332
+ body: JSON.stringify(marshalSqsApiCreateSqsCredentialsRequest(request, this.client.settings)),
333
+ headers: jsonContentHeaders,
334
+ method: 'POST',
335
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials`
336
+ }, unmarshalSqsCredentials);
457
337
 
458
338
  /**
459
339
  * Delete SQS credentials. Delete a set of SQS credentials, specified by their
@@ -493,19 +373,11 @@ class SqsAPI extends API$1 {
493
373
  method: 'GET',
494
374
  path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
495
375
  }, unmarshalSqsCredentials);
496
- pageOfListSqsCredentials = (() => {
497
- var _this16 = this;
498
- return function (request) {
499
- if (request === void 0) {
500
- request = {};
501
- }
502
- return _this16.client.fetch({
503
- method: 'GET',
504
- path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? _this16.client.settings.defaultRegion)}/sqs-credentials`,
505
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this16.client.settings.defaultPageSize], ['project_id', request.projectId])
506
- }, unmarshalListSqsCredentialsResponse);
507
- };
508
- })();
376
+ pageOfListSqsCredentials = (request = {}) => this.client.fetch({
377
+ method: 'GET',
378
+ path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials`,
379
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
380
+ }, unmarshalListSqsCredentialsResponse);
509
381
 
510
382
  /**
511
383
  * List SQS credentials. List existing SQS credentials in the specified
@@ -515,15 +387,7 @@ class SqsAPI extends API$1 {
515
387
  * @param request - The request {@link SqsApiListSqsCredentialsRequest}
516
388
  * @returns A Promise of ListSqsCredentialsResponse
517
389
  */
518
- listSqsCredentials = (() => {
519
- var _this17 = this;
520
- return function (request) {
521
- if (request === void 0) {
522
- request = {};
523
- }
524
- return enrichForPagination('sqsCredentials', _this17.pageOfListSqsCredentials, request);
525
- };
526
- })();
390
+ listSqsCredentials = (request = {}) => enrichForPagination('sqsCredentials', this.pageOfListSqsCredentials, request);
527
391
  }
528
392
 
529
393
  export { NatsAPI, SnsAPI, SqsAPI };