@scaleway/sdk 1.14.0 → 1.15.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 (49) hide show
  1. package/dist/api/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +802 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/marshalling.gen.js +2 -1
  15. package/dist/api/iot/v1/api.gen.js +508 -452
  16. package/dist/api/ipfs/index.js +2 -0
  17. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  18. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  19. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  20. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  21. package/dist/api/k8s/v1/api.gen.js +403 -342
  22. package/dist/api/k8s/v1/api.utils.js +7 -10
  23. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  24. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  25. package/dist/api/lb/v1/api.gen.js +1501 -1363
  26. package/dist/api/lb/v1/api.utils.js +71 -75
  27. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  28. package/dist/api/marketplace/v1/api.gen.js +35 -32
  29. package/dist/api/marketplace/v2/api.gen.js +117 -102
  30. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  31. package/dist/api/rdb/v1/api.gen.js +897 -819
  32. package/dist/api/redis/v1/api.gen.js +358 -333
  33. package/dist/api/registry/v1/api.gen.js +211 -189
  34. package/dist/api/secret/v1alpha1/api.gen.js +265 -245
  35. package/dist/api/tem/v1alpha1/api.gen.js +182 -147
  36. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  37. package/dist/api/test/v1/api.gen.js +116 -104
  38. package/dist/api/vpc/v1/api.gen.js +74 -65
  39. package/dist/api/vpc/v2/api.gen.js +200 -178
  40. package/dist/api/vpc/v2/marshalling.gen.js +1 -0
  41. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  42. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  43. package/dist/index.cjs +732 -311
  44. package/dist/index.d.ts +2040 -1540
  45. package/dist/index.js +28 -26
  46. package/dist/internal/logger/console-logger.js +4 -5
  47. package/dist/scw/constants.js +1 -1
  48. package/dist/scw/errors/scw-error.js +2 -2
  49. package/package.json +2 -2
@@ -13,11 +13,11 @@ const jsonContentHeaders = {
13
13
 
14
14
  /** Serverless Functions API. */
15
15
  class API extends API$1 {
16
- constructor() {
17
- var _this;
18
- super(...arguments);
19
- _this = this;
20
- this.pageOfListNamespaces = function (request) {
16
+ /** Lists the available regions of the API. */
17
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
18
+ pageOfListNamespaces = (() => {
19
+ var _this = this;
20
+ return function (request) {
21
21
  if (request === void 0) {
22
22
  request = {};
23
23
  }
@@ -27,341 +27,382 @@ class API extends API$1 {
27
27
  urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
28
28
  }, unmarshalListNamespacesResponse);
29
29
  };
30
- /**
31
- * List all your namespaces. List all existing namespaces in the specified
32
- * region.
33
- *
34
- * @param request - The request {@link ListNamespacesRequest}
35
- * @returns A Promise of ListNamespacesResponse
36
- */
37
- this.listNamespaces = function (request) {
30
+ })();
31
+
32
+ /**
33
+ * List all your namespaces. List all existing namespaces in the specified
34
+ * region.
35
+ *
36
+ * @param request - The request {@link ListNamespacesRequest}
37
+ * @returns A Promise of ListNamespacesResponse
38
+ */
39
+ listNamespaces = (() => {
40
+ var _this2 = this;
41
+ return function (request) {
38
42
  if (request === void 0) {
39
43
  request = {};
40
44
  }
41
- return enrichForPagination('namespaces', _this.pageOfListNamespaces, request);
45
+ return enrichForPagination('namespaces', _this2.pageOfListNamespaces, request);
42
46
  };
43
- /**
44
- * Get a namespace. Get the namespace associated with the specified ID.
45
- *
46
- * @param request - The request {@link GetNamespaceRequest}
47
- * @returns A Promise of Namespace
48
- */
49
- this.getNamespace = request => this.client.fetch({
50
- method: 'GET',
51
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
52
- }, unmarshalNamespace);
53
- /**
54
- * Waits for {@link Namespace} to be in a final state.
55
- *
56
- * @param request - The request {@link GetNamespaceRequest}
57
- * @param options - The waiting options
58
- * @returns A Promise of Namespace
59
- */
60
- this.waitForNamespace = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
61
- /**
62
- * Create a new namespace. Create a new namespace in a specified Organization
63
- * or Project.
64
- *
65
- * @param request - The request {@link CreateNamespaceRequest}
66
- * @returns A Promise of Namespace
67
- */
68
- this.createNamespace = function (request) {
47
+ })();
48
+
49
+ /**
50
+ * Get a namespace. Get the namespace associated with the specified ID.
51
+ *
52
+ * @param request - The request {@link GetNamespaceRequest}
53
+ * @returns A Promise of Namespace
54
+ */
55
+ getNamespace = request => this.client.fetch({
56
+ method: 'GET',
57
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
58
+ }, unmarshalNamespace);
59
+
60
+ /**
61
+ * Waits for {@link Namespace} to be in a final state.
62
+ *
63
+ * @param request - The request {@link GetNamespaceRequest}
64
+ * @param options - The waiting options
65
+ * @returns A Promise of Namespace
66
+ */
67
+ waitForNamespace = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
68
+
69
+ /**
70
+ * Create a new namespace. Create a new namespace in a specified Organization
71
+ * or Project.
72
+ *
73
+ * @param request - The request {@link CreateNamespaceRequest}
74
+ * @returns A Promise of Namespace
75
+ */
76
+ createNamespace = (() => {
77
+ var _this3 = this;
78
+ return function (request) {
69
79
  if (request === void 0) {
70
80
  request = {};
71
81
  }
72
- return _this.client.fetch({
73
- body: JSON.stringify(marshalCreateNamespaceRequest(request, _this.client.settings)),
82
+ return _this3.client.fetch({
83
+ body: JSON.stringify(marshalCreateNamespaceRequest(request, _this3.client.settings)),
74
84
  headers: jsonContentHeaders,
75
85
  method: 'POST',
76
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/namespaces`
86
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/namespaces`
77
87
  }, unmarshalNamespace);
78
88
  };
79
- /**
80
- * Update an existing namespace. Update the namespace associated with the
81
- * specified ID.
82
- *
83
- * @param request - The request {@link UpdateNamespaceRequest}
84
- * @returns A Promise of Namespace
85
- */
86
- this.updateNamespace = request => this.client.fetch({
87
- body: JSON.stringify(marshalUpdateNamespaceRequest(request, this.client.settings)),
88
- headers: jsonContentHeaders,
89
- method: 'PATCH',
90
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
91
- }, unmarshalNamespace);
92
- /**
93
- * Delete an existing namespace. Delete the namespace associated with the
94
- * specified ID.
95
- *
96
- * @param request - The request {@link DeleteNamespaceRequest}
97
- * @returns A Promise of Namespace
98
- */
99
- this.deleteNamespace = request => this.client.fetch({
100
- method: 'DELETE',
101
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
102
- }, unmarshalNamespace);
103
- this.pageOfListFunctions = request => this.client.fetch({
104
- method: 'GET',
105
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`,
106
- urlParams: urlParams(['name', request.name], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
107
- }, unmarshalListFunctionsResponse);
108
- /**
109
- * List all your functions.
110
- *
111
- * @param request - The request {@link ListFunctionsRequest}
112
- * @returns A Promise of ListFunctionsResponse
113
- */
114
- this.listFunctions = request => enrichForPagination('functions', this.pageOfListFunctions, request);
115
- /**
116
- * Get a function. Get the function associated with the specified ID.
117
- *
118
- * @param request - The request {@link GetFunctionRequest}
119
- * @returns A Promise of Function
120
- */
121
- this.getFunction = request => this.client.fetch({
122
- method: 'GET',
123
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
124
- }, unmarshalFunction);
125
- /**
126
- * Waits for {@link Function} to be in a final state.
127
- *
128
- * @param request - The request {@link GetFunctionRequest}
129
- * @param options - The waiting options
130
- * @returns A Promise of Function
131
- */
132
- this.waitForFunction = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!FUNCTION_TRANSIENT_STATUSES.includes(res.status))), this.getFunction, request, options);
133
- /**
134
- * Create a new function. Create a new function in the specified region for a
135
- * specified Organization or Project.
136
- *
137
- * @param request - The request {@link CreateFunctionRequest}
138
- * @returns A Promise of Function
139
- */
140
- this.createFunction = request => this.client.fetch({
141
- body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
142
- headers: jsonContentHeaders,
143
- method: 'POST',
144
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
145
- }, unmarshalFunction);
146
- /**
147
- * Update an existing function. Update the function associated with the
148
- * specified ID.
149
- *
150
- * @param request - The request {@link UpdateFunctionRequest}
151
- * @returns A Promise of Function
152
- */
153
- this.updateFunction = request => this.client.fetch({
154
- body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
155
- headers: jsonContentHeaders,
156
- method: 'PATCH',
157
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
158
- }, unmarshalFunction);
159
- /**
160
- * Delete a function. Delete the function associated with the specified ID.
161
- *
162
- * @param request - The request {@link DeleteFunctionRequest}
163
- * @returns A Promise of Function
164
- */
165
- this.deleteFunction = request => this.client.fetch({
166
- method: 'DELETE',
167
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
168
- }, unmarshalFunction);
169
- /**
170
- * Deploy a function. Deploy a function associated with the specified ID.
171
- *
172
- * @param request - The request {@link DeployFunctionRequest}
173
- * @returns A Promise of Function
174
- */
175
- this.deployFunction = request => this.client.fetch({
176
- body: '{}',
177
- headers: jsonContentHeaders,
178
- method: 'POST',
179
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
180
- }, unmarshalFunction);
181
- /**
182
- * List function runtimes. List available function runtimes.
183
- *
184
- * @param request - The request {@link ListFunctionRuntimesRequest}
185
- * @returns A Promise of ListFunctionRuntimesResponse
186
- */
187
- this.listFunctionRuntimes = function (request) {
89
+ })();
90
+
91
+ /**
92
+ * Update an existing namespace. Update the namespace associated with the
93
+ * specified ID.
94
+ *
95
+ * @param request - The request {@link UpdateNamespaceRequest}
96
+ * @returns A Promise of Namespace
97
+ */
98
+ updateNamespace = request => this.client.fetch({
99
+ body: JSON.stringify(marshalUpdateNamespaceRequest(request, this.client.settings)),
100
+ headers: jsonContentHeaders,
101
+ method: 'PATCH',
102
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
103
+ }, unmarshalNamespace);
104
+
105
+ /**
106
+ * Delete an existing namespace. Delete the namespace associated with the
107
+ * specified ID.
108
+ *
109
+ * @param request - The request {@link DeleteNamespaceRequest}
110
+ * @returns A Promise of Namespace
111
+ */
112
+ deleteNamespace = request => this.client.fetch({
113
+ method: 'DELETE',
114
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
115
+ }, unmarshalNamespace);
116
+ pageOfListFunctions = request => this.client.fetch({
117
+ method: 'GET',
118
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`,
119
+ urlParams: urlParams(['name', request.name], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
120
+ }, unmarshalListFunctionsResponse);
121
+
122
+ /**
123
+ * List all your functions.
124
+ *
125
+ * @param request - The request {@link ListFunctionsRequest}
126
+ * @returns A Promise of ListFunctionsResponse
127
+ */
128
+ listFunctions = request => enrichForPagination('functions', this.pageOfListFunctions, request);
129
+
130
+ /**
131
+ * Get a function. Get the function associated with the specified ID.
132
+ *
133
+ * @param request - The request {@link GetFunctionRequest}
134
+ * @returns A Promise of Function
135
+ */
136
+ getFunction = request => this.client.fetch({
137
+ method: 'GET',
138
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
139
+ }, unmarshalFunction);
140
+
141
+ /**
142
+ * Waits for {@link Function} to be in a final state.
143
+ *
144
+ * @param request - The request {@link GetFunctionRequest}
145
+ * @param options - The waiting options
146
+ * @returns A Promise of Function
147
+ */
148
+ waitForFunction = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!FUNCTION_TRANSIENT_STATUSES.includes(res.status))), this.getFunction, request, options);
149
+
150
+ /**
151
+ * Create a new function. Create a new function in the specified region for a
152
+ * specified Organization or Project.
153
+ *
154
+ * @param request - The request {@link CreateFunctionRequest}
155
+ * @returns A Promise of Function
156
+ */
157
+ createFunction = request => this.client.fetch({
158
+ body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
159
+ headers: jsonContentHeaders,
160
+ method: 'POST',
161
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
162
+ }, unmarshalFunction);
163
+
164
+ /**
165
+ * Update an existing function. Update the function associated with the
166
+ * specified ID.
167
+ *
168
+ * @param request - The request {@link UpdateFunctionRequest}
169
+ * @returns A Promise of Function
170
+ */
171
+ updateFunction = request => this.client.fetch({
172
+ body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
173
+ headers: jsonContentHeaders,
174
+ method: 'PATCH',
175
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
176
+ }, unmarshalFunction);
177
+
178
+ /**
179
+ * Delete a function. Delete the function associated with the specified ID.
180
+ *
181
+ * @param request - The request {@link DeleteFunctionRequest}
182
+ * @returns A Promise of Function
183
+ */
184
+ deleteFunction = request => this.client.fetch({
185
+ method: 'DELETE',
186
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
187
+ }, unmarshalFunction);
188
+
189
+ /**
190
+ * Deploy a function. Deploy a function associated with the specified ID.
191
+ *
192
+ * @param request - The request {@link DeployFunctionRequest}
193
+ * @returns A Promise of Function
194
+ */
195
+ deployFunction = request => this.client.fetch({
196
+ body: '{}',
197
+ headers: jsonContentHeaders,
198
+ method: 'POST',
199
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
200
+ }, unmarshalFunction);
201
+
202
+ /**
203
+ * List function runtimes. List available function runtimes.
204
+ *
205
+ * @param request - The request {@link ListFunctionRuntimesRequest}
206
+ * @returns A Promise of ListFunctionRuntimesResponse
207
+ */
208
+ listFunctionRuntimes = (() => {
209
+ var _this4 = this;
210
+ return function (request) {
188
211
  if (request === void 0) {
189
212
  request = {};
190
213
  }
191
- return _this.client.fetch({
214
+ return _this4.client.fetch({
192
215
  method: 'GET',
193
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/runtimes`
216
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/runtimes`
194
217
  }, unmarshalListFunctionRuntimesResponse);
195
218
  };
196
- /**
197
- * Get an upload URL of a function. Get an upload URL of a function associated
198
- * with the specified ID.
199
- *
200
- * @param request - The request {@link GetFunctionUploadURLRequest}
201
- * @returns A Promise of UploadURL
202
- */
203
- this.getFunctionUploadURL = request => this.client.fetch({
204
- method: 'GET',
205
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/upload-url`,
206
- urlParams: urlParams(['content_length', request.contentLength])
207
- }, unmarshalUploadURL);
208
- /**
209
- * Get a download URL of a function. Get a download URL for a function
210
- * associated with the specified ID.
211
- *
212
- * @param request - The request {@link GetFunctionDownloadURLRequest}
213
- * @returns A Promise of DownloadURL
214
- */
215
- this.getFunctionDownloadURL = request => this.client.fetch({
216
- method: 'GET',
217
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/download-url`
218
- }, unmarshalDownloadURL);
219
- this.pageOfListCrons = request => this.client.fetch({
220
- method: 'GET',
221
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`,
222
- urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
223
- }, unmarshalListCronsResponse);
224
- /**
225
- * List all crons. List all the cronjobs in a specified region.
226
- *
227
- * @param request - The request {@link ListCronsRequest}
228
- * @returns A Promise of ListCronsResponse
229
- */
230
- this.listCrons = request => enrichForPagination('crons', this.pageOfListCrons, request);
231
- /**
232
- * Get a cron. Get the cron associated with the specified ID.
233
- *
234
- * @param request - The request {@link GetCronRequest}
235
- * @returns A Promise of Cron
236
- */
237
- this.getCron = request => this.client.fetch({
238
- method: 'GET',
239
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
240
- }, unmarshalCron);
241
- /**
242
- * Waits for {@link Cron} to be in a final state.
243
- *
244
- * @param request - The request {@link GetCronRequest}
245
- * @param options - The waiting options
246
- * @returns A Promise of Cron
247
- */
248
- this.waitForCron = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), this.getCron, request, options);
249
- /**
250
- * Create a new cron. Create a new cronjob for a function with the specified
251
- * ID.
252
- *
253
- * @param request - The request {@link CreateCronRequest}
254
- * @returns A Promise of Cron
255
- */
256
- this.createCron = request => this.client.fetch({
257
- body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
258
- headers: jsonContentHeaders,
259
- method: 'POST',
260
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
261
- }, unmarshalCron);
262
- /**
263
- * Update an existing cron. Update the cron associated with the specified ID.
264
- *
265
- * @param request - The request {@link UpdateCronRequest}
266
- * @returns A Promise of Cron
267
- */
268
- this.updateCron = request => this.client.fetch({
269
- body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
270
- headers: jsonContentHeaders,
271
- method: 'PATCH',
272
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
273
- }, unmarshalCron);
274
- /**
275
- * Delete an existing cron. Delete the cron associated with the specified ID.
276
- *
277
- * @param request - The request {@link DeleteCronRequest}
278
- * @returns A Promise of Cron
279
- */
280
- this.deleteCron = request => this.client.fetch({
281
- method: 'DELETE',
282
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
283
- }, unmarshalCron);
284
- this.pageOfListLogs = request => this.client.fetch({
285
- method: 'GET',
286
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
287
- urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
288
- }, unmarshalListLogsResponse);
289
- /**
290
- * List application logs. List the application logs of the function with the
291
- * specified ID.
292
- *
293
- * @param request - The request {@link ListLogsRequest}
294
- * @returns A Promise of ListLogsResponse
295
- */
296
- this.listLogs = request => enrichForPagination('logs', this.pageOfListLogs, request);
297
- this.pageOfListDomains = request => this.client.fetch({
298
- method: 'GET',
299
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`,
300
- urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
301
- }, unmarshalListDomainsResponse);
302
- /**
303
- * List all domain name bindings. List all domain name bindings in a specified
304
- * region.
305
- *
306
- * @param request - The request {@link ListDomainsRequest}
307
- * @returns A Promise of ListDomainsResponse
308
- */
309
- this.listDomains = request => enrichForPagination('domains', this.pageOfListDomains, request);
310
- /**
311
- * Get a domain name binding. Get a domain name binding for the function with
312
- * the specified ID.
313
- *
314
- * @param request - The request {@link GetDomainRequest}
315
- * @returns A Promise of Domain
316
- */
317
- this.getDomain = request => this.client.fetch({
318
- method: 'GET',
319
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
320
- }, unmarshalDomain);
321
- /**
322
- * Waits for {@link Domain} to be in a final state.
323
- *
324
- * @param request - The request {@link GetDomainRequest}
325
- * @param options - The waiting options
326
- * @returns A Promise of Domain
327
- */
328
- this.waitForDomain = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
329
- /**
330
- * Create a domain name binding. Create a domain name binding for the function
331
- * with the specified ID.
332
- *
333
- * @param request - The request {@link CreateDomainRequest}
334
- * @returns A Promise of Domain
335
- */
336
- this.createDomain = request => this.client.fetch({
337
- body: JSON.stringify(marshalCreateDomainRequest(request, this.client.settings)),
338
- headers: jsonContentHeaders,
339
- method: 'POST',
340
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
341
- }, unmarshalDomain);
342
- /**
343
- * Delete a domain name binding. Delete a domain name binding for the function
344
- * with the specified ID.
345
- *
346
- * @param request - The request {@link DeleteDomainRequest}
347
- * @returns A Promise of Domain
348
- */
349
- this.deleteDomain = request => this.client.fetch({
350
- method: 'DELETE',
351
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
352
- }, unmarshalDomain);
353
- /**
354
- * @deprecated
355
- * @param request - The request {@link IssueJWTRequest}
356
- * @returns A Promise of Token
357
- */
358
- this.issueJWT = function (request) {
219
+ })();
220
+
221
+ /**
222
+ * Get an upload URL of a function. Get an upload URL of a function associated
223
+ * with the specified ID.
224
+ *
225
+ * @param request - The request {@link GetFunctionUploadURLRequest}
226
+ * @returns A Promise of UploadURL
227
+ */
228
+ getFunctionUploadURL = request => this.client.fetch({
229
+ method: 'GET',
230
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/upload-url`,
231
+ urlParams: urlParams(['content_length', request.contentLength])
232
+ }, unmarshalUploadURL);
233
+
234
+ /**
235
+ * Get a download URL of a function. Get a download URL for a function
236
+ * associated with the specified ID.
237
+ *
238
+ * @param request - The request {@link GetFunctionDownloadURLRequest}
239
+ * @returns A Promise of DownloadURL
240
+ */
241
+ getFunctionDownloadURL = request => this.client.fetch({
242
+ method: 'GET',
243
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/download-url`
244
+ }, unmarshalDownloadURL);
245
+ pageOfListCrons = request => this.client.fetch({
246
+ method: 'GET',
247
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`,
248
+ urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
249
+ }, unmarshalListCronsResponse);
250
+
251
+ /**
252
+ * List all crons. List all the cronjobs in a specified region.
253
+ *
254
+ * @param request - The request {@link ListCronsRequest}
255
+ * @returns A Promise of ListCronsResponse
256
+ */
257
+ listCrons = request => enrichForPagination('crons', this.pageOfListCrons, request);
258
+
259
+ /**
260
+ * Get a cron. Get the cron associated with the specified ID.
261
+ *
262
+ * @param request - The request {@link GetCronRequest}
263
+ * @returns A Promise of Cron
264
+ */
265
+ getCron = request => this.client.fetch({
266
+ method: 'GET',
267
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
268
+ }, unmarshalCron);
269
+
270
+ /**
271
+ * Waits for {@link Cron} to be in a final state.
272
+ *
273
+ * @param request - The request {@link GetCronRequest}
274
+ * @param options - The waiting options
275
+ * @returns A Promise of Cron
276
+ */
277
+ waitForCron = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), this.getCron, request, options);
278
+
279
+ /**
280
+ * Create a new cron. Create a new cronjob for a function with the specified
281
+ * ID.
282
+ *
283
+ * @param request - The request {@link CreateCronRequest}
284
+ * @returns A Promise of Cron
285
+ */
286
+ createCron = request => this.client.fetch({
287
+ body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
288
+ headers: jsonContentHeaders,
289
+ method: 'POST',
290
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
291
+ }, unmarshalCron);
292
+
293
+ /**
294
+ * Update an existing cron. Update the cron associated with the specified ID.
295
+ *
296
+ * @param request - The request {@link UpdateCronRequest}
297
+ * @returns A Promise of Cron
298
+ */
299
+ updateCron = request => this.client.fetch({
300
+ body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
301
+ headers: jsonContentHeaders,
302
+ method: 'PATCH',
303
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
304
+ }, unmarshalCron);
305
+
306
+ /**
307
+ * Delete an existing cron. Delete the cron associated with the specified ID.
308
+ *
309
+ * @param request - The request {@link DeleteCronRequest}
310
+ * @returns A Promise of Cron
311
+ */
312
+ deleteCron = request => this.client.fetch({
313
+ method: 'DELETE',
314
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
315
+ }, unmarshalCron);
316
+ pageOfListLogs = request => this.client.fetch({
317
+ method: 'GET',
318
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
319
+ urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
320
+ }, unmarshalListLogsResponse);
321
+
322
+ /**
323
+ * List application logs. List the application logs of the function with the
324
+ * specified ID.
325
+ *
326
+ * @param request - The request {@link ListLogsRequest}
327
+ * @returns A Promise of ListLogsResponse
328
+ */
329
+ listLogs = request => enrichForPagination('logs', this.pageOfListLogs, request);
330
+ pageOfListDomains = request => this.client.fetch({
331
+ method: 'GET',
332
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`,
333
+ urlParams: urlParams(['function_id', request.functionId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
334
+ }, unmarshalListDomainsResponse);
335
+
336
+ /**
337
+ * List all domain name bindings. List all domain name bindings in a specified
338
+ * region.
339
+ *
340
+ * @param request - The request {@link ListDomainsRequest}
341
+ * @returns A Promise of ListDomainsResponse
342
+ */
343
+ listDomains = request => enrichForPagination('domains', this.pageOfListDomains, request);
344
+
345
+ /**
346
+ * Get a domain name binding. Get a domain name binding for the function with
347
+ * the specified ID.
348
+ *
349
+ * @param request - The request {@link GetDomainRequest}
350
+ * @returns A Promise of Domain
351
+ */
352
+ getDomain = request => this.client.fetch({
353
+ method: 'GET',
354
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
355
+ }, unmarshalDomain);
356
+
357
+ /**
358
+ * Waits for {@link Domain} to be in a final state.
359
+ *
360
+ * @param request - The request {@link GetDomainRequest}
361
+ * @param options - The waiting options
362
+ * @returns A Promise of Domain
363
+ */
364
+ waitForDomain = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
365
+
366
+ /**
367
+ * Create a domain name binding. Create a domain name binding for the function
368
+ * with the specified ID.
369
+ *
370
+ * @param request - The request {@link CreateDomainRequest}
371
+ * @returns A Promise of Domain
372
+ */
373
+ createDomain = request => this.client.fetch({
374
+ body: JSON.stringify(marshalCreateDomainRequest(request, this.client.settings)),
375
+ headers: jsonContentHeaders,
376
+ method: 'POST',
377
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
378
+ }, unmarshalDomain);
379
+
380
+ /**
381
+ * Delete a domain name binding. Delete a domain name binding for the function
382
+ * with the specified ID.
383
+ *
384
+ * @param request - The request {@link DeleteDomainRequest}
385
+ * @returns A Promise of Domain
386
+ */
387
+ deleteDomain = request => this.client.fetch({
388
+ method: 'DELETE',
389
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
390
+ }, unmarshalDomain);
391
+
392
+ /**
393
+ * @deprecated
394
+ * @param request - The request {@link IssueJWTRequest}
395
+ * @returns A Promise of Token
396
+ */
397
+ issueJWT = (() => {
398
+ var _this5 = this;
399
+ return function (request) {
359
400
  if (request === void 0) {
360
401
  request = {};
361
402
  }
362
- return _this.client.fetch({
403
+ return _this5.client.fetch({
363
404
  method: 'GET',
364
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/issue-jwt`,
405
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this5.client.settings.defaultRegion)}/issue-jwt`,
365
406
  urlParams: urlParams(['expires_at', request.expiresAt], ...Object.entries(resolveOneOf([{
366
407
  param: 'function_id',
367
408
  value: request.functionId
@@ -371,100 +412,118 @@ class API extends API$1 {
371
412
  }])))
372
413
  }, unmarshalToken);
373
414
  };
374
- /**
375
- * Create a new revocable token.
376
- *
377
- * @param request - The request {@link CreateTokenRequest}
378
- * @returns A Promise of Token
379
- */
380
- this.createToken = function (request) {
415
+ })();
416
+
417
+ /**
418
+ * Create a new revocable token.
419
+ *
420
+ * @param request - The request {@link CreateTokenRequest}
421
+ * @returns A Promise of Token
422
+ */
423
+ createToken = (() => {
424
+ var _this6 = this;
425
+ return function (request) {
381
426
  if (request === void 0) {
382
427
  request = {};
383
428
  }
384
- return _this.client.fetch({
385
- body: JSON.stringify(marshalCreateTokenRequest(request, _this.client.settings)),
429
+ return _this6.client.fetch({
430
+ body: JSON.stringify(marshalCreateTokenRequest(request, _this6.client.settings)),
386
431
  headers: jsonContentHeaders,
387
432
  method: 'POST',
388
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/tokens`
433
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this6.client.settings.defaultRegion)}/tokens`
389
434
  }, unmarshalToken);
390
435
  };
391
- /**
392
- * Get a token.
393
- *
394
- * @param request - The request {@link GetTokenRequest}
395
- * @returns A Promise of Token
396
- */
397
- this.getToken = request => this.client.fetch({
398
- method: 'GET',
399
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
400
- }, unmarshalToken);
401
- /**
402
- * Waits for {@link Token} to be in a final state.
403
- *
404
- * @param request - The request {@link GetTokenRequest}
405
- * @param options - The waiting options
406
- * @returns A Promise of Token
407
- */
408
- this.waitForToken = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))), this.getToken, request, options);
409
- this.pageOfListTokens = function (request) {
436
+ })();
437
+
438
+ /**
439
+ * Get a token.
440
+ *
441
+ * @param request - The request {@link GetTokenRequest}
442
+ * @returns A Promise of Token
443
+ */
444
+ getToken = request => this.client.fetch({
445
+ method: 'GET',
446
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
447
+ }, unmarshalToken);
448
+
449
+ /**
450
+ * Waits for {@link Token} to be in a final state.
451
+ *
452
+ * @param request - The request {@link GetTokenRequest}
453
+ * @param options - The waiting options
454
+ * @returns A Promise of Token
455
+ */
456
+ waitForToken = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))), this.getToken, request, options);
457
+ pageOfListTokens = (() => {
458
+ var _this7 = this;
459
+ return function (request) {
410
460
  if (request === void 0) {
411
461
  request = {};
412
462
  }
413
- return _this.client.fetch({
463
+ return _this7.client.fetch({
414
464
  method: 'GET',
415
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/tokens`,
416
- urlParams: urlParams(['function_id', request.functionId], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize])
465
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this7.client.settings.defaultRegion)}/tokens`,
466
+ urlParams: urlParams(['function_id', request.functionId], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize])
417
467
  }, unmarshalListTokensResponse);
418
468
  };
419
- /**
420
- * List all tokens.
421
- *
422
- * @param request - The request {@link ListTokensRequest}
423
- * @returns A Promise of ListTokensResponse
424
- */
425
- this.listTokens = function (request) {
469
+ })();
470
+
471
+ /**
472
+ * List all tokens.
473
+ *
474
+ * @param request - The request {@link ListTokensRequest}
475
+ * @returns A Promise of ListTokensResponse
476
+ */
477
+ listTokens = (() => {
478
+ var _this8 = this;
479
+ return function (request) {
426
480
  if (request === void 0) {
427
481
  request = {};
428
482
  }
429
- return enrichForPagination('tokens', _this.pageOfListTokens, request);
483
+ return enrichForPagination('tokens', _this8.pageOfListTokens, request);
430
484
  };
431
- /**
432
- * Delete a token.
433
- *
434
- * @param request - The request {@link DeleteTokenRequest}
435
- * @returns A Promise of Token
436
- */
437
- this.deleteToken = request => this.client.fetch({
438
- method: 'DELETE',
439
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
440
- }, unmarshalToken);
441
- this.createTrigger = request => this.client.fetch({
442
- body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
443
- headers: jsonContentHeaders,
444
- method: 'POST',
445
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
446
- }, unmarshalTrigger);
447
- this.getTrigger = request => this.client.fetch({
448
- method: 'GET',
449
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
450
- }, unmarshalTrigger);
451
- /**
452
- * Waits for {@link Trigger} to be in a final state.
453
- *
454
- * @param request - The request {@link GetTriggerRequest}
455
- * @param options - The waiting options
456
- * @returns A Promise of Trigger
457
- */
458
- this.waitForTrigger = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))), this.getTrigger, request, options);
459
- this.pageOfListTriggers = function (request) {
485
+ })();
486
+
487
+ /**
488
+ * Delete a token.
489
+ *
490
+ * @param request - The request {@link DeleteTokenRequest}
491
+ * @returns A Promise of Token
492
+ */
493
+ deleteToken = request => this.client.fetch({
494
+ method: 'DELETE',
495
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
496
+ }, unmarshalToken);
497
+ createTrigger = request => this.client.fetch({
498
+ body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
499
+ headers: jsonContentHeaders,
500
+ method: 'POST',
501
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
502
+ }, unmarshalTrigger);
503
+ getTrigger = request => this.client.fetch({
504
+ method: 'GET',
505
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
506
+ }, unmarshalTrigger);
507
+
508
+ /**
509
+ * Waits for {@link Trigger} to be in a final state.
510
+ *
511
+ * @param request - The request {@link GetTriggerRequest}
512
+ * @param options - The waiting options
513
+ * @returns A Promise of Trigger
514
+ */
515
+ waitForTrigger = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))), this.getTrigger, request, options);
516
+ pageOfListTriggers = (() => {
517
+ var _this9 = this;
518
+ return function (request) {
460
519
  if (request === void 0) {
461
520
  request = {};
462
521
  }
463
- return _this.client.fetch({
522
+ return _this9.client.fetch({
464
523
  method: 'GET',
465
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/triggers`,
466
- urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
467
- default: _this.client.settings.defaultProjectId,
524
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? _this9.client.settings.defaultRegion)}/triggers`,
525
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this9.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
526
+ default: _this9.client.settings.defaultProjectId,
468
527
  param: 'project_id',
469
528
  value: request.projectId
470
529
  }, {
@@ -476,25 +535,26 @@ class API extends API$1 {
476
535
  }])))
477
536
  }, unmarshalListTriggersResponse);
478
537
  };
479
- this.listTriggers = function (request) {
538
+ })();
539
+ listTriggers = (() => {
540
+ var _this10 = this;
541
+ return function (request) {
480
542
  if (request === void 0) {
481
543
  request = {};
482
544
  }
483
- return enrichForPagination('triggers', _this.pageOfListTriggers, request);
545
+ return enrichForPagination('triggers', _this10.pageOfListTriggers, request);
484
546
  };
485
- this.updateTrigger = request => this.client.fetch({
486
- body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
487
- headers: jsonContentHeaders,
488
- method: 'PATCH',
489
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
490
- }, unmarshalTrigger);
491
- this.deleteTrigger = request => this.client.fetch({
492
- method: 'DELETE',
493
- path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
494
- }, unmarshalTrigger);
495
- }
547
+ })();
548
+ updateTrigger = request => this.client.fetch({
549
+ body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
550
+ headers: jsonContentHeaders,
551
+ method: 'PATCH',
552
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
553
+ }, unmarshalTrigger);
554
+ deleteTrigger = request => this.client.fetch({
555
+ method: 'DELETE',
556
+ path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
557
+ }, unmarshalTrigger);
496
558
  }
497
- /** Lists the available regions of the API. */
498
- API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
499
559
 
500
560
  export { API };