@platzio/sdk 0.6.0-beta.1 → 0.6.0-beta.1-1

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.
package/dist/index.mjs ADDED
@@ -0,0 +1,4748 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __async = (__this, __arguments, generator) => {
21
+ return new Promise((resolve, reject) => {
22
+ var fulfilled = (value) => {
23
+ try {
24
+ step(generator.next(value));
25
+ } catch (e) {
26
+ reject(e);
27
+ }
28
+ };
29
+ var rejected = (value) => {
30
+ try {
31
+ step(generator.throw(value));
32
+ } catch (e) {
33
+ reject(e);
34
+ }
35
+ };
36
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
+ step((generator = generator.apply(__this, __arguments)).next());
38
+ });
39
+ };
40
+
41
+ // src/api.ts
42
+ import globalAxios2 from "axios";
43
+
44
+ // src/base.ts
45
+ import globalAxios from "axios";
46
+ var BASE_PATH = "http://localhost".replace(/\/+$/, "");
47
+ var BaseAPI = class {
48
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
49
+ this.basePath = basePath;
50
+ this.axios = axios;
51
+ var _a;
52
+ if (configuration) {
53
+ this.configuration = configuration;
54
+ this.basePath = (_a = configuration.basePath) != null ? _a : basePath;
55
+ }
56
+ }
57
+ };
58
+ var RequiredError = class extends Error {
59
+ constructor(field, msg) {
60
+ super(msg);
61
+ this.field = field;
62
+ this.name = "RequiredError";
63
+ }
64
+ };
65
+ var operationServerMap = {};
66
+
67
+ // src/common.ts
68
+ var DUMMY_BASE_URL = "https://example.com";
69
+ var assertParamExists = function(functionName, paramName, paramValue) {
70
+ if (paramValue === null || paramValue === void 0) {
71
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
72
+ }
73
+ };
74
+ var setApiKeyToObject = function(object, keyParamName, configuration) {
75
+ return __async(this, null, function* () {
76
+ if (configuration && configuration.apiKey) {
77
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? yield configuration.apiKey(keyParamName) : yield configuration.apiKey;
78
+ object[keyParamName] = localVarApiKeyValue;
79
+ }
80
+ });
81
+ };
82
+ var setBearerAuthToObject = function(object, configuration) {
83
+ return __async(this, null, function* () {
84
+ if (configuration && configuration.accessToken) {
85
+ const accessToken = typeof configuration.accessToken === "function" ? yield configuration.accessToken() : yield configuration.accessToken;
86
+ object["Authorization"] = "Bearer " + accessToken;
87
+ }
88
+ });
89
+ };
90
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
91
+ if (parameter == null) return;
92
+ if (typeof parameter === "object") {
93
+ if (Array.isArray(parameter)) {
94
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
95
+ } else {
96
+ Object.keys(parameter).forEach(
97
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
98
+ );
99
+ }
100
+ } else {
101
+ if (urlSearchParams.has(key)) {
102
+ urlSearchParams.append(key, parameter);
103
+ } else {
104
+ urlSearchParams.set(key, parameter);
105
+ }
106
+ }
107
+ }
108
+ var setSearchParams = function(url, ...objects) {
109
+ const searchParams = new URLSearchParams(url.search);
110
+ setFlattenedQueryParams(searchParams, objects);
111
+ url.search = searchParams.toString();
112
+ };
113
+ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
114
+ const nonString = typeof value !== "string";
115
+ const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
116
+ return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || "";
117
+ };
118
+ var toPathString = function(url) {
119
+ return url.pathname + url.search + url.hash;
120
+ };
121
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
122
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
123
+ var _a;
124
+ const axiosRequestArgs = __spreadProps(__spreadValues({}, axiosArgs.options), { url: (axios.defaults.baseURL ? "" : (_a = configuration == null ? void 0 : configuration.basePath) != null ? _a : basePath) + axiosArgs.url });
125
+ return axios.request(axiosRequestArgs);
126
+ };
127
+ };
128
+
129
+ // src/api.ts
130
+ var ChartExtActionEndpoint = {
131
+ StandardIngress: "standard_ingress"
132
+ };
133
+ var ChartExtActionMethod = {
134
+ Get: "GET",
135
+ Post: "POST",
136
+ Put: "PUT",
137
+ Patch: "PATCH",
138
+ Delete: "DELETE"
139
+ };
140
+ var ChartExtActionUserDeploymentRole = {
141
+ Owner: "Owner",
142
+ Maintainer: "Maintainer"
143
+ };
144
+ var ChartExtCardinality = {
145
+ Many: "Many",
146
+ OnePerCluster: "OnePerCluster"
147
+ };
148
+ var ChartExtIngressHostnameFormat = {
149
+ Name: "Name",
150
+ KindAndName: "KindAndName"
151
+ };
152
+ var ChartExtKindAction = {
153
+ Action: "Action"
154
+ };
155
+ var ChartExtKindFeatures = {
156
+ Features: "Features"
157
+ };
158
+ var ChartExtKindResourceType = {
159
+ ResourceType: "ResourceType"
160
+ };
161
+ var ChartExtKindValuesUi = {
162
+ ValuesUi: "ValuesUi"
163
+ };
164
+ var ChartExtVersionV1Beta1 = {
165
+ PlatzIoV1beta1: "platz.io/v1beta1"
166
+ };
167
+ var ChartExtVersionV1Beta2 = {
168
+ PlatzIoV1beta2: "platz.io/v1beta2"
169
+ };
170
+ var DbEventOperation = {
171
+ Insert: "INSERT",
172
+ Update: "UPDATE",
173
+ Delete: "DELETE"
174
+ };
175
+ var DbTable = {
176
+ DeploymentKinds: "deployment_kinds",
177
+ DeploymentResources: "deployment_resources",
178
+ DeploymentResourceTypes: "deployment_resource_types",
179
+ Deployments: "deployments",
180
+ DeploymentTasks: "deployment_tasks",
181
+ DeploymentPermissions: "deployment_permissions",
182
+ Envs: "envs",
183
+ EnvUserPermissions: "env_user_permissions",
184
+ HelmRegistries: "helm_registries",
185
+ HelmCharts: "helm_charts",
186
+ HelmTagFormats: "helm_tag_formats",
187
+ K8sClusters: "k8s_clusters",
188
+ K8sResources: "k8s_resources",
189
+ Secrets: "secrets",
190
+ Settings: "settings",
191
+ Users: "users"
192
+ };
193
+ var DeploymentReportedNoticeLevel = {
194
+ Info: "Info",
195
+ Warning: "Warning",
196
+ Danger: "Danger"
197
+ };
198
+ var DeploymentReportedStatusColor = {
199
+ Primary: "primary",
200
+ Success: "success",
201
+ Danger: "danger",
202
+ Warning: "warning",
203
+ Secondary: "secondary"
204
+ };
205
+ var DeploymentResourceSyncStatus = {
206
+ Creating: "Creating",
207
+ Updating: "Updating",
208
+ Deleting: "Deleting",
209
+ Ready: "Ready",
210
+ Error: "Error"
211
+ };
212
+ var DeploymentStatus = {
213
+ Unknown: "Unknown",
214
+ Installing: "Installing",
215
+ Renaming: "Renaming",
216
+ Upgrading: "Upgrading",
217
+ Running: "Running",
218
+ Error: "Error",
219
+ Uninstalling: "Uninstalling",
220
+ Uninstalled: "Uninstalled",
221
+ Deleting: "Deleting"
222
+ };
223
+ var DeploymentTaskStatus = {
224
+ Pending: "Pending",
225
+ Started: "Started",
226
+ Failed: "Failed",
227
+ Canceled: "Canceled",
228
+ Done: "Done"
229
+ };
230
+ var EnvUserRole = {
231
+ Admin: "Admin",
232
+ User: "User"
233
+ };
234
+ var UserDeploymentRole = {
235
+ Owner: "Owner",
236
+ Maintainer: "Maintainer"
237
+ };
238
+ var AuthenticationApiAxiosParamCreator = function(configuration) {
239
+ return {
240
+ /**
241
+ *
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ authMe: (..._0) => __async(this, [..._0], function* (options = {}) {
246
+ const localVarPath = `/api/v2/auth/me`;
247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
248
+ let baseOptions;
249
+ if (configuration) {
250
+ baseOptions = configuration.baseOptions;
251
+ }
252
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
253
+ const localVarHeaderParameter = {};
254
+ const localVarQueryParameter = {};
255
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
256
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions
263
+ };
264
+ }),
265
+ /**
266
+ *
267
+ * @param {OAuth2Response} oAuth2Response
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ finishGoogleLogin: (_0, ..._1) => __async(this, [_0, ..._1], function* (oAuth2Response, options = {}) {
272
+ assertParamExists("finishGoogleLogin", "oAuth2Response", oAuth2Response);
273
+ const localVarPath = `/api/v2/auth/google/callback`;
274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
275
+ let baseOptions;
276
+ if (configuration) {
277
+ baseOptions = configuration.baseOptions;
278
+ }
279
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
280
+ const localVarHeaderParameter = {};
281
+ const localVarQueryParameter = {};
282
+ localVarHeaderParameter["Content-Type"] = "application/json";
283
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
284
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
+ localVarRequestOptions.data = serializeDataIfNeeded(oAuth2Response, localVarRequestOptions, configuration);
287
+ return {
288
+ url: toPathString(localVarUrlObj),
289
+ options: localVarRequestOptions
290
+ };
291
+ }),
292
+ /**
293
+ *
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ startGoogleLogin: (..._0) => __async(this, [..._0], function* (options = {}) {
298
+ const localVarPath = `/api/v2/auth/google`;
299
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
300
+ let baseOptions;
301
+ if (configuration) {
302
+ baseOptions = configuration.baseOptions;
303
+ }
304
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
305
+ const localVarHeaderParameter = {};
306
+ const localVarQueryParameter = {};
307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
310
+ return {
311
+ url: toPathString(localVarUrlObj),
312
+ options: localVarRequestOptions
313
+ };
314
+ })
315
+ };
316
+ };
317
+ var AuthenticationApiFp = function(configuration) {
318
+ const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration);
319
+ return {
320
+ /**
321
+ *
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ authMe(options) {
326
+ return __async(this, null, function* () {
327
+ var _a2, _b, _c;
328
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authMe(options);
329
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
330
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["AuthenticationApi.authMe"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
332
+ });
333
+ },
334
+ /**
335
+ *
336
+ * @param {OAuth2Response} oAuth2Response
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ finishGoogleLogin(oAuth2Response, options) {
341
+ return __async(this, null, function* () {
342
+ var _a2, _b, _c;
343
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.finishGoogleLogin(oAuth2Response, options);
344
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
345
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["AuthenticationApi.finishGoogleLogin"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
346
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
347
+ });
348
+ },
349
+ /**
350
+ *
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ startGoogleLogin(options) {
355
+ return __async(this, null, function* () {
356
+ var _a2, _b, _c;
357
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startGoogleLogin(options);
358
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
359
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["AuthenticationApi.startGoogleLogin"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
360
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
361
+ });
362
+ }
363
+ };
364
+ };
365
+ var AuthenticationApiFactory = function(configuration, basePath, axios) {
366
+ const localVarFp = AuthenticationApiFp(configuration);
367
+ return {
368
+ /**
369
+ *
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ authMe(options) {
374
+ return localVarFp.authMe(options).then((request) => request(axios, basePath));
375
+ },
376
+ /**
377
+ *
378
+ * @param {AuthenticationApiFinishGoogleLoginRequest} requestParameters Request parameters.
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ finishGoogleLogin(requestParameters, options) {
383
+ return localVarFp.finishGoogleLogin(requestParameters.oAuth2Response, options).then((request) => request(axios, basePath));
384
+ },
385
+ /**
386
+ *
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ startGoogleLogin(options) {
391
+ return localVarFp.startGoogleLogin(options).then((request) => request(axios, basePath));
392
+ }
393
+ };
394
+ };
395
+ var AuthenticationApi = class extends BaseAPI {
396
+ /**
397
+ *
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ * @memberof AuthenticationApi
401
+ */
402
+ authMe(options) {
403
+ return AuthenticationApiFp(this.configuration).authMe(options).then((request) => request(this.axios, this.basePath));
404
+ }
405
+ /**
406
+ *
407
+ * @param {AuthenticationApiFinishGoogleLoginRequest} requestParameters Request parameters.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ * @memberof AuthenticationApi
411
+ */
412
+ finishGoogleLogin(requestParameters, options) {
413
+ return AuthenticationApiFp(this.configuration).finishGoogleLogin(requestParameters.oAuth2Response, options).then((request) => request(this.axios, this.basePath));
414
+ }
415
+ /**
416
+ *
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof AuthenticationApi
420
+ */
421
+ startGoogleLogin(options) {
422
+ return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
423
+ }
424
+ };
425
+ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
426
+ return {
427
+ /**
428
+ *
429
+ * @param {string | null} [name]
430
+ * @param {number | null} [page]
431
+ * @param {number | null} [perPage]
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ allDeploymentKinds: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (name, page, perPage, options = {}) {
436
+ const localVarPath = `/api/v2/deployment-kinds`;
437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
438
+ let baseOptions;
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ }
442
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
443
+ const localVarHeaderParameter = {};
444
+ const localVarQueryParameter = {};
445
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
446
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
447
+ if (name !== void 0) {
448
+ localVarQueryParameter["name"] = name;
449
+ }
450
+ if (page !== void 0) {
451
+ localVarQueryParameter["page"] = page;
452
+ }
453
+ if (perPage !== void 0) {
454
+ localVarQueryParameter["per_page"] = perPage;
455
+ }
456
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
458
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
459
+ return {
460
+ url: toPathString(localVarUrlObj),
461
+ options: localVarRequestOptions
462
+ };
463
+ }),
464
+ /**
465
+ *
466
+ * @param {string} id
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ getDeploymentKind: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
471
+ assertParamExists("getDeploymentKind", "id", id);
472
+ const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
479
+ const localVarHeaderParameter = {};
480
+ const localVarQueryParameter = {};
481
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
482
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
485
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
486
+ return {
487
+ url: toPathString(localVarUrlObj),
488
+ options: localVarRequestOptions
489
+ };
490
+ }),
491
+ /**
492
+ *
493
+ * @param {string} id
494
+ * @param {UpdateDeploymentKind} updateDeploymentKind
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ updateDeploymentKind: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateDeploymentKind, options = {}) {
499
+ assertParamExists("updateDeploymentKind", "id", id);
500
+ assertParamExists("updateDeploymentKind", "updateDeploymentKind", updateDeploymentKind);
501
+ const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
511
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
512
+ localVarHeaderParameter["Content-Type"] = "application/json";
513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
516
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeploymentKind, localVarRequestOptions, configuration);
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions
520
+ };
521
+ })
522
+ };
523
+ };
524
+ var DeploymentKindsApiFp = function(configuration) {
525
+ const localVarAxiosParamCreator = DeploymentKindsApiAxiosParamCreator(configuration);
526
+ return {
527
+ /**
528
+ *
529
+ * @param {string | null} [name]
530
+ * @param {number | null} [page]
531
+ * @param {number | null} [perPage]
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ allDeploymentKinds(name, page, perPage, options) {
536
+ return __async(this, null, function* () {
537
+ var _a2, _b, _c;
538
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name, page, perPage, options);
539
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
540
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.allDeploymentKinds"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
541
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
542
+ });
543
+ },
544
+ /**
545
+ *
546
+ * @param {string} id
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ getDeploymentKind(id, options) {
551
+ return __async(this, null, function* () {
552
+ var _a2, _b, _c;
553
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentKind(id, options);
554
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
555
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.getDeploymentKind"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
556
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
557
+ });
558
+ },
559
+ /**
560
+ *
561
+ * @param {string} id
562
+ * @param {UpdateDeploymentKind} updateDeploymentKind
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ updateDeploymentKind(id, updateDeploymentKind, options) {
567
+ return __async(this, null, function* () {
568
+ var _a2, _b, _c;
569
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeploymentKind(id, updateDeploymentKind, options);
570
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
571
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.updateDeploymentKind"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
572
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
573
+ });
574
+ }
575
+ };
576
+ };
577
+ var DeploymentKindsApiFactory = function(configuration, basePath, axios) {
578
+ const localVarFp = DeploymentKindsApiFp(configuration);
579
+ return {
580
+ /**
581
+ *
582
+ * @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ */
586
+ allDeploymentKinds(requestParameters = {}, options) {
587
+ return localVarFp.allDeploymentKinds(requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
588
+ },
589
+ /**
590
+ *
591
+ * @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ getDeploymentKind(requestParameters, options) {
596
+ return localVarFp.getDeploymentKind(requestParameters.id, options).then((request) => request(axios, basePath));
597
+ },
598
+ /**
599
+ *
600
+ * @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ updateDeploymentKind(requestParameters, options) {
605
+ return localVarFp.updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(axios, basePath));
606
+ }
607
+ };
608
+ };
609
+ var DeploymentKindsApi = class extends BaseAPI {
610
+ /**
611
+ *
612
+ * @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof DeploymentKindsApi
616
+ */
617
+ allDeploymentKinds(requestParameters = {}, options) {
618
+ return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
619
+ }
620
+ /**
621
+ *
622
+ * @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof DeploymentKindsApi
626
+ */
627
+ getDeploymentKind(requestParameters, options) {
628
+ return DeploymentKindsApiFp(this.configuration).getDeploymentKind(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
629
+ }
630
+ /**
631
+ *
632
+ * @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ * @memberof DeploymentKindsApi
636
+ */
637
+ updateDeploymentKind(requestParameters, options) {
638
+ return DeploymentKindsApiFp(this.configuration).updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(this.axios, this.basePath));
639
+ }
640
+ };
641
+ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
642
+ return {
643
+ /**
644
+ *
645
+ * @param {string | null} [envId]
646
+ * @param {number | null} [page]
647
+ * @param {number | null} [perPage]
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ allDeploymentPermissions: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (envId, page, perPage, options = {}) {
652
+ const localVarPath = `/api/v2/deployment-permissions`;
653
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
654
+ let baseOptions;
655
+ if (configuration) {
656
+ baseOptions = configuration.baseOptions;
657
+ }
658
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
659
+ const localVarHeaderParameter = {};
660
+ const localVarQueryParameter = {};
661
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
662
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
663
+ if (envId !== void 0) {
664
+ localVarQueryParameter["env_id"] = envId;
665
+ }
666
+ if (page !== void 0) {
667
+ localVarQueryParameter["page"] = page;
668
+ }
669
+ if (perPage !== void 0) {
670
+ localVarQueryParameter["per_page"] = perPage;
671
+ }
672
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
674
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
675
+ return {
676
+ url: toPathString(localVarUrlObj),
677
+ options: localVarRequestOptions
678
+ };
679
+ }),
680
+ /**
681
+ *
682
+ * @param {NewDeploymentPermission} newDeploymentPermission
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ createDeploymentPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (newDeploymentPermission, options = {}) {
687
+ assertParamExists("createDeploymentPermission", "newDeploymentPermission", newDeploymentPermission);
688
+ const localVarPath = `/api/v2/deployment-permissions`;
689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
690
+ let baseOptions;
691
+ if (configuration) {
692
+ baseOptions = configuration.baseOptions;
693
+ }
694
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
695
+ const localVarHeaderParameter = {};
696
+ const localVarQueryParameter = {};
697
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
698
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
699
+ localVarHeaderParameter["Content-Type"] = "application/json";
700
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
701
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
702
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
703
+ localVarRequestOptions.data = serializeDataIfNeeded(newDeploymentPermission, localVarRequestOptions, configuration);
704
+ return {
705
+ url: toPathString(localVarUrlObj),
706
+ options: localVarRequestOptions
707
+ };
708
+ }),
709
+ /**
710
+ *
711
+ * @param {string} id
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ deleteDeploymentPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
716
+ assertParamExists("deleteDeploymentPermission", "id", id);
717
+ const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
719
+ let baseOptions;
720
+ if (configuration) {
721
+ baseOptions = configuration.baseOptions;
722
+ }
723
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
724
+ const localVarHeaderParameter = {};
725
+ const localVarQueryParameter = {};
726
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
727
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
728
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
730
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
731
+ return {
732
+ url: toPathString(localVarUrlObj),
733
+ options: localVarRequestOptions
734
+ };
735
+ }),
736
+ /**
737
+ *
738
+ * @param {string} id
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ getDeploymentPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
743
+ assertParamExists("getDeploymentPermission", "id", id);
744
+ const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
746
+ let baseOptions;
747
+ if (configuration) {
748
+ baseOptions = configuration.baseOptions;
749
+ }
750
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
751
+ const localVarHeaderParameter = {};
752
+ const localVarQueryParameter = {};
753
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
754
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
755
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
756
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
+ return {
759
+ url: toPathString(localVarUrlObj),
760
+ options: localVarRequestOptions
761
+ };
762
+ })
763
+ };
764
+ };
765
+ var DeploymentPermissionsApiFp = function(configuration) {
766
+ const localVarAxiosParamCreator = DeploymentPermissionsApiAxiosParamCreator(configuration);
767
+ return {
768
+ /**
769
+ *
770
+ * @param {string | null} [envId]
771
+ * @param {number | null} [page]
772
+ * @param {number | null} [perPage]
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ allDeploymentPermissions(envId, page, perPage, options) {
777
+ return __async(this, null, function* () {
778
+ var _a2, _b, _c;
779
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId, page, perPage, options);
780
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
781
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.allDeploymentPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
782
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
783
+ });
784
+ },
785
+ /**
786
+ *
787
+ * @param {NewDeploymentPermission} newDeploymentPermission
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ createDeploymentPermission(newDeploymentPermission, options) {
792
+ return __async(this, null, function* () {
793
+ var _a2, _b, _c;
794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentPermission(newDeploymentPermission, options);
795
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
796
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.createDeploymentPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
798
+ });
799
+ },
800
+ /**
801
+ *
802
+ * @param {string} id
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ deleteDeploymentPermission(id, options) {
807
+ return __async(this, null, function* () {
808
+ var _a2, _b, _c;
809
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeploymentPermission(id, options);
810
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
811
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.deleteDeploymentPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
812
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
813
+ });
814
+ },
815
+ /**
816
+ *
817
+ * @param {string} id
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ getDeploymentPermission(id, options) {
822
+ return __async(this, null, function* () {
823
+ var _a2, _b, _c;
824
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentPermission(id, options);
825
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
826
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.getDeploymentPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
827
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
828
+ });
829
+ }
830
+ };
831
+ };
832
+ var DeploymentPermissionsApiFactory = function(configuration, basePath, axios) {
833
+ const localVarFp = DeploymentPermissionsApiFp(configuration);
834
+ return {
835
+ /**
836
+ *
837
+ * @param {DeploymentPermissionsApiAllDeploymentPermissionsRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ allDeploymentPermissions(requestParameters = {}, options) {
842
+ return localVarFp.allDeploymentPermissions(requestParameters.envId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
843
+ },
844
+ /**
845
+ *
846
+ * @param {DeploymentPermissionsApiCreateDeploymentPermissionRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ createDeploymentPermission(requestParameters, options) {
851
+ return localVarFp.createDeploymentPermission(requestParameters.newDeploymentPermission, options).then((request) => request(axios, basePath));
852
+ },
853
+ /**
854
+ *
855
+ * @param {DeploymentPermissionsApiDeleteDeploymentPermissionRequest} requestParameters Request parameters.
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ deleteDeploymentPermission(requestParameters, options) {
860
+ return localVarFp.deleteDeploymentPermission(requestParameters.id, options).then((request) => request(axios, basePath));
861
+ },
862
+ /**
863
+ *
864
+ * @param {DeploymentPermissionsApiGetDeploymentPermissionRequest} requestParameters Request parameters.
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ */
868
+ getDeploymentPermission(requestParameters, options) {
869
+ return localVarFp.getDeploymentPermission(requestParameters.id, options).then((request) => request(axios, basePath));
870
+ }
871
+ };
872
+ };
873
+ var DeploymentPermissionsApi = class extends BaseAPI {
874
+ /**
875
+ *
876
+ * @param {DeploymentPermissionsApiAllDeploymentPermissionsRequest} requestParameters Request parameters.
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ * @memberof DeploymentPermissionsApi
880
+ */
881
+ allDeploymentPermissions(requestParameters = {}, options) {
882
+ return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
883
+ }
884
+ /**
885
+ *
886
+ * @param {DeploymentPermissionsApiCreateDeploymentPermissionRequest} requestParameters Request parameters.
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ * @memberof DeploymentPermissionsApi
890
+ */
891
+ createDeploymentPermission(requestParameters, options) {
892
+ return DeploymentPermissionsApiFp(this.configuration).createDeploymentPermission(requestParameters.newDeploymentPermission, options).then((request) => request(this.axios, this.basePath));
893
+ }
894
+ /**
895
+ *
896
+ * @param {DeploymentPermissionsApiDeleteDeploymentPermissionRequest} requestParameters Request parameters.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ * @memberof DeploymentPermissionsApi
900
+ */
901
+ deleteDeploymentPermission(requestParameters, options) {
902
+ return DeploymentPermissionsApiFp(this.configuration).deleteDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
903
+ }
904
+ /**
905
+ *
906
+ * @param {DeploymentPermissionsApiGetDeploymentPermissionRequest} requestParameters Request parameters.
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ * @memberof DeploymentPermissionsApi
910
+ */
911
+ getDeploymentPermission(requestParameters, options) {
912
+ return DeploymentPermissionsApiFp(this.configuration).getDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
913
+ }
914
+ };
915
+ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
916
+ return {
917
+ /**
918
+ *
919
+ * @param {string | null} [envId]
920
+ * @param {string | null} [deploymentKindId]
921
+ * @param {string | null} [key]
922
+ * @param {number | null} [page]
923
+ * @param {number | null} [perPage]
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ allDeploymentResourceTypes: (_0, _1, _2, _3, _4, ..._5) => __async(this, [_0, _1, _2, _3, _4, ..._5], function* (envId, deploymentKindId, key, page, perPage, options = {}) {
928
+ const localVarPath = `/api/v2/deployment-resource-types`;
929
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
930
+ let baseOptions;
931
+ if (configuration) {
932
+ baseOptions = configuration.baseOptions;
933
+ }
934
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
935
+ const localVarHeaderParameter = {};
936
+ const localVarQueryParameter = {};
937
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
938
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
939
+ if (envId !== void 0) {
940
+ localVarQueryParameter["env_id"] = envId;
941
+ }
942
+ if (deploymentKindId !== void 0) {
943
+ localVarQueryParameter["deployment_kind_id"] = deploymentKindId;
944
+ }
945
+ if (key !== void 0) {
946
+ localVarQueryParameter["key"] = key;
947
+ }
948
+ if (page !== void 0) {
949
+ localVarQueryParameter["page"] = page;
950
+ }
951
+ if (perPage !== void 0) {
952
+ localVarQueryParameter["per_page"] = perPage;
953
+ }
954
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
955
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
956
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
957
+ return {
958
+ url: toPathString(localVarUrlObj),
959
+ options: localVarRequestOptions
960
+ };
961
+ }),
962
+ /**
963
+ *
964
+ * @param {string} id
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ getDeploymentResourceType: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
969
+ assertParamExists("getDeploymentResourceType", "id", id);
970
+ const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
971
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
972
+ let baseOptions;
973
+ if (configuration) {
974
+ baseOptions = configuration.baseOptions;
975
+ }
976
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
977
+ const localVarHeaderParameter = {};
978
+ const localVarQueryParameter = {};
979
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
980
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
983
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
984
+ return {
985
+ url: toPathString(localVarUrlObj),
986
+ options: localVarRequestOptions
987
+ };
988
+ })
989
+ };
990
+ };
991
+ var DeploymentResourceTypesApiFp = function(configuration) {
992
+ const localVarAxiosParamCreator = DeploymentResourceTypesApiAxiosParamCreator(configuration);
993
+ return {
994
+ /**
995
+ *
996
+ * @param {string | null} [envId]
997
+ * @param {string | null} [deploymentKindId]
998
+ * @param {string | null} [key]
999
+ * @param {number | null} [page]
1000
+ * @param {number | null} [perPage]
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ allDeploymentResourceTypes(envId, deploymentKindId, key, page, perPage, options) {
1005
+ return __async(this, null, function* () {
1006
+ var _a2, _b, _c;
1007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key, page, perPage, options);
1008
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1009
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourceTypesApi.allDeploymentResourceTypes"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1010
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1011
+ });
1012
+ },
1013
+ /**
1014
+ *
1015
+ * @param {string} id
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ getDeploymentResourceType(id, options) {
1020
+ return __async(this, null, function* () {
1021
+ var _a2, _b, _c;
1022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentResourceType(id, options);
1023
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1024
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourceTypesApi.getDeploymentResourceType"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1025
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1026
+ });
1027
+ }
1028
+ };
1029
+ };
1030
+ var DeploymentResourceTypesApiFactory = function(configuration, basePath, axios) {
1031
+ const localVarFp = DeploymentResourceTypesApiFp(configuration);
1032
+ return {
1033
+ /**
1034
+ *
1035
+ * @param {DeploymentResourceTypesApiAllDeploymentResourceTypesRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ allDeploymentResourceTypes(requestParameters = {}, options) {
1040
+ return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1041
+ },
1042
+ /**
1043
+ *
1044
+ * @param {DeploymentResourceTypesApiGetDeploymentResourceTypeRequest} requestParameters Request parameters.
1045
+ * @param {*} [options] Override http request option.
1046
+ * @throws {RequiredError}
1047
+ */
1048
+ getDeploymentResourceType(requestParameters, options) {
1049
+ return localVarFp.getDeploymentResourceType(requestParameters.id, options).then((request) => request(axios, basePath));
1050
+ }
1051
+ };
1052
+ };
1053
+ var DeploymentResourceTypesApi = class extends BaseAPI {
1054
+ /**
1055
+ *
1056
+ * @param {DeploymentResourceTypesApiAllDeploymentResourceTypesRequest} requestParameters Request parameters.
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ * @memberof DeploymentResourceTypesApi
1060
+ */
1061
+ allDeploymentResourceTypes(requestParameters = {}, options) {
1062
+ return DeploymentResourceTypesApiFp(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1063
+ }
1064
+ /**
1065
+ *
1066
+ * @param {DeploymentResourceTypesApiGetDeploymentResourceTypeRequest} requestParameters Request parameters.
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ * @memberof DeploymentResourceTypesApi
1070
+ */
1071
+ getDeploymentResourceType(requestParameters, options) {
1072
+ return DeploymentResourceTypesApiFp(this.configuration).getDeploymentResourceType(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1073
+ }
1074
+ };
1075
+ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
1076
+ return {
1077
+ /**
1078
+ *
1079
+ * @param {string | null} [typeId]
1080
+ * @param {number | null} [page]
1081
+ * @param {number | null} [perPage]
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ allDeploymentResources: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (typeId, page, perPage, options = {}) {
1086
+ const localVarPath = `/api/v2/deployment-resources`;
1087
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1088
+ let baseOptions;
1089
+ if (configuration) {
1090
+ baseOptions = configuration.baseOptions;
1091
+ }
1092
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1093
+ const localVarHeaderParameter = {};
1094
+ const localVarQueryParameter = {};
1095
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1096
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1097
+ if (typeId !== void 0) {
1098
+ localVarQueryParameter["type_id"] = typeId;
1099
+ }
1100
+ if (page !== void 0) {
1101
+ localVarQueryParameter["page"] = page;
1102
+ }
1103
+ if (perPage !== void 0) {
1104
+ localVarQueryParameter["per_page"] = perPage;
1105
+ }
1106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1108
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1109
+ return {
1110
+ url: toPathString(localVarUrlObj),
1111
+ options: localVarRequestOptions
1112
+ };
1113
+ }),
1114
+ /**
1115
+ *
1116
+ * @param {NewDeploymentResource} newDeploymentResource
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ createDeploymentResource: (_0, ..._1) => __async(this, [_0, ..._1], function* (newDeploymentResource, options = {}) {
1121
+ assertParamExists("createDeploymentResource", "newDeploymentResource", newDeploymentResource);
1122
+ const localVarPath = `/api/v2/deployment-resources`;
1123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1124
+ let baseOptions;
1125
+ if (configuration) {
1126
+ baseOptions = configuration.baseOptions;
1127
+ }
1128
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
1129
+ const localVarHeaderParameter = {};
1130
+ const localVarQueryParameter = {};
1131
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1132
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1133
+ localVarHeaderParameter["Content-Type"] = "application/json";
1134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1136
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1137
+ localVarRequestOptions.data = serializeDataIfNeeded(newDeploymentResource, localVarRequestOptions, configuration);
1138
+ return {
1139
+ url: toPathString(localVarUrlObj),
1140
+ options: localVarRequestOptions
1141
+ };
1142
+ }),
1143
+ /**
1144
+ *
1145
+ * @param {string} id
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ deleteDeploymentResource: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
1150
+ assertParamExists("deleteDeploymentResource", "id", id);
1151
+ const localVarPath = `/api/v2/deployment-resources/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1153
+ let baseOptions;
1154
+ if (configuration) {
1155
+ baseOptions = configuration.baseOptions;
1156
+ }
1157
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
1158
+ const localVarHeaderParameter = {};
1159
+ const localVarQueryParameter = {};
1160
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1161
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1164
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1165
+ return {
1166
+ url: toPathString(localVarUrlObj),
1167
+ options: localVarRequestOptions
1168
+ };
1169
+ }),
1170
+ /**
1171
+ *
1172
+ * @param {string} id
1173
+ * @param {*} [options] Override http request option.
1174
+ * @throws {RequiredError}
1175
+ */
1176
+ getDeploymentResource: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
1177
+ assertParamExists("getDeploymentResource", "id", id);
1178
+ const localVarPath = `/api/v2/deployment-resources/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1179
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1180
+ let baseOptions;
1181
+ if (configuration) {
1182
+ baseOptions = configuration.baseOptions;
1183
+ }
1184
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1185
+ const localVarHeaderParameter = {};
1186
+ const localVarQueryParameter = {};
1187
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1188
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1189
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1191
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1192
+ return {
1193
+ url: toPathString(localVarUrlObj),
1194
+ options: localVarRequestOptions
1195
+ };
1196
+ }),
1197
+ /**
1198
+ *
1199
+ * @param {string} id
1200
+ * @param {UpdateDeploymentResource} updateDeploymentResource
1201
+ * @param {*} [options] Override http request option.
1202
+ * @throws {RequiredError}
1203
+ */
1204
+ updateDeploymentResource: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateDeploymentResource, options = {}) {
1205
+ assertParamExists("updateDeploymentResource", "id", id);
1206
+ assertParamExists("updateDeploymentResource", "updateDeploymentResource", updateDeploymentResource);
1207
+ const localVarPath = `/api/v2/deployment-resources/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1209
+ let baseOptions;
1210
+ if (configuration) {
1211
+ baseOptions = configuration.baseOptions;
1212
+ }
1213
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
1214
+ const localVarHeaderParameter = {};
1215
+ const localVarQueryParameter = {};
1216
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1217
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1218
+ localVarHeaderParameter["Content-Type"] = "application/json";
1219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1221
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1222
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeploymentResource, localVarRequestOptions, configuration);
1223
+ return {
1224
+ url: toPathString(localVarUrlObj),
1225
+ options: localVarRequestOptions
1226
+ };
1227
+ })
1228
+ };
1229
+ };
1230
+ var DeploymentResourcesApiFp = function(configuration) {
1231
+ const localVarAxiosParamCreator = DeploymentResourcesApiAxiosParamCreator(configuration);
1232
+ return {
1233
+ /**
1234
+ *
1235
+ * @param {string | null} [typeId]
1236
+ * @param {number | null} [page]
1237
+ * @param {number | null} [perPage]
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ allDeploymentResources(typeId, page, perPage, options) {
1242
+ return __async(this, null, function* () {
1243
+ var _a2, _b, _c;
1244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId, page, perPage, options);
1245
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1246
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.allDeploymentResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1247
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1248
+ });
1249
+ },
1250
+ /**
1251
+ *
1252
+ * @param {NewDeploymentResource} newDeploymentResource
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ createDeploymentResource(newDeploymentResource, options) {
1257
+ return __async(this, null, function* () {
1258
+ var _a2, _b, _c;
1259
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentResource(newDeploymentResource, options);
1260
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1261
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.createDeploymentResource"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1262
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1263
+ });
1264
+ },
1265
+ /**
1266
+ *
1267
+ * @param {string} id
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ deleteDeploymentResource(id, options) {
1272
+ return __async(this, null, function* () {
1273
+ var _a2, _b, _c;
1274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeploymentResource(id, options);
1275
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1276
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.deleteDeploymentResource"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1278
+ });
1279
+ },
1280
+ /**
1281
+ *
1282
+ * @param {string} id
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ */
1286
+ getDeploymentResource(id, options) {
1287
+ return __async(this, null, function* () {
1288
+ var _a2, _b, _c;
1289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentResource(id, options);
1290
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1291
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.getDeploymentResource"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1293
+ });
1294
+ },
1295
+ /**
1296
+ *
1297
+ * @param {string} id
1298
+ * @param {UpdateDeploymentResource} updateDeploymentResource
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ updateDeploymentResource(id, updateDeploymentResource, options) {
1303
+ return __async(this, null, function* () {
1304
+ var _a2, _b, _c;
1305
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeploymentResource(id, updateDeploymentResource, options);
1306
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1307
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.updateDeploymentResource"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1308
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1309
+ });
1310
+ }
1311
+ };
1312
+ };
1313
+ var DeploymentResourcesApiFactory = function(configuration, basePath, axios) {
1314
+ const localVarFp = DeploymentResourcesApiFp(configuration);
1315
+ return {
1316
+ /**
1317
+ *
1318
+ * @param {DeploymentResourcesApiAllDeploymentResourcesRequest} requestParameters Request parameters.
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ allDeploymentResources(requestParameters = {}, options) {
1323
+ return localVarFp.allDeploymentResources(requestParameters.typeId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1324
+ },
1325
+ /**
1326
+ *
1327
+ * @param {DeploymentResourcesApiCreateDeploymentResourceRequest} requestParameters Request parameters.
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ */
1331
+ createDeploymentResource(requestParameters, options) {
1332
+ return localVarFp.createDeploymentResource(requestParameters.newDeploymentResource, options).then((request) => request(axios, basePath));
1333
+ },
1334
+ /**
1335
+ *
1336
+ * @param {DeploymentResourcesApiDeleteDeploymentResourceRequest} requestParameters Request parameters.
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ deleteDeploymentResource(requestParameters, options) {
1341
+ return localVarFp.deleteDeploymentResource(requestParameters.id, options).then((request) => request(axios, basePath));
1342
+ },
1343
+ /**
1344
+ *
1345
+ * @param {DeploymentResourcesApiGetDeploymentResourceRequest} requestParameters Request parameters.
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ getDeploymentResource(requestParameters, options) {
1350
+ return localVarFp.getDeploymentResource(requestParameters.id, options).then((request) => request(axios, basePath));
1351
+ },
1352
+ /**
1353
+ *
1354
+ * @param {DeploymentResourcesApiUpdateDeploymentResourceRequest} requestParameters Request parameters.
1355
+ * @param {*} [options] Override http request option.
1356
+ * @throws {RequiredError}
1357
+ */
1358
+ updateDeploymentResource(requestParameters, options) {
1359
+ return localVarFp.updateDeploymentResource(requestParameters.id, requestParameters.updateDeploymentResource, options).then((request) => request(axios, basePath));
1360
+ }
1361
+ };
1362
+ };
1363
+ var DeploymentResourcesApi = class extends BaseAPI {
1364
+ /**
1365
+ *
1366
+ * @param {DeploymentResourcesApiAllDeploymentResourcesRequest} requestParameters Request parameters.
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ * @memberof DeploymentResourcesApi
1370
+ */
1371
+ allDeploymentResources(requestParameters = {}, options) {
1372
+ return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1373
+ }
1374
+ /**
1375
+ *
1376
+ * @param {DeploymentResourcesApiCreateDeploymentResourceRequest} requestParameters Request parameters.
1377
+ * @param {*} [options] Override http request option.
1378
+ * @throws {RequiredError}
1379
+ * @memberof DeploymentResourcesApi
1380
+ */
1381
+ createDeploymentResource(requestParameters, options) {
1382
+ return DeploymentResourcesApiFp(this.configuration).createDeploymentResource(requestParameters.newDeploymentResource, options).then((request) => request(this.axios, this.basePath));
1383
+ }
1384
+ /**
1385
+ *
1386
+ * @param {DeploymentResourcesApiDeleteDeploymentResourceRequest} requestParameters Request parameters.
1387
+ * @param {*} [options] Override http request option.
1388
+ * @throws {RequiredError}
1389
+ * @memberof DeploymentResourcesApi
1390
+ */
1391
+ deleteDeploymentResource(requestParameters, options) {
1392
+ return DeploymentResourcesApiFp(this.configuration).deleteDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1393
+ }
1394
+ /**
1395
+ *
1396
+ * @param {DeploymentResourcesApiGetDeploymentResourceRequest} requestParameters Request parameters.
1397
+ * @param {*} [options] Override http request option.
1398
+ * @throws {RequiredError}
1399
+ * @memberof DeploymentResourcesApi
1400
+ */
1401
+ getDeploymentResource(requestParameters, options) {
1402
+ return DeploymentResourcesApiFp(this.configuration).getDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1403
+ }
1404
+ /**
1405
+ *
1406
+ * @param {DeploymentResourcesApiUpdateDeploymentResourceRequest} requestParameters Request parameters.
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ * @memberof DeploymentResourcesApi
1410
+ */
1411
+ updateDeploymentResource(requestParameters, options) {
1412
+ return DeploymentResourcesApiFp(this.configuration).updateDeploymentResource(requestParameters.id, requestParameters.updateDeploymentResource, options).then((request) => request(this.axios, this.basePath));
1413
+ }
1414
+ };
1415
+ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
1416
+ return {
1417
+ /**
1418
+ *
1419
+ * @param {string | null} [clusterId]
1420
+ * @param {string | null} [deploymentId]
1421
+ * @param {number | null} [page]
1422
+ * @param {number | null} [perPage]
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ allDeploymentTasks: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (clusterId, deploymentId, page, perPage, options = {}) {
1427
+ const localVarPath = `/api/v2/deployment-tasks`;
1428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1429
+ let baseOptions;
1430
+ if (configuration) {
1431
+ baseOptions = configuration.baseOptions;
1432
+ }
1433
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1434
+ const localVarHeaderParameter = {};
1435
+ const localVarQueryParameter = {};
1436
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1437
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1438
+ if (clusterId !== void 0) {
1439
+ localVarQueryParameter["cluster_id"] = clusterId;
1440
+ }
1441
+ if (deploymentId !== void 0) {
1442
+ localVarQueryParameter["deployment_id"] = deploymentId;
1443
+ }
1444
+ if (page !== void 0) {
1445
+ localVarQueryParameter["page"] = page;
1446
+ }
1447
+ if (perPage !== void 0) {
1448
+ localVarQueryParameter["per_page"] = perPage;
1449
+ }
1450
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1451
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1452
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1453
+ return {
1454
+ url: toPathString(localVarUrlObj),
1455
+ options: localVarRequestOptions
1456
+ };
1457
+ }),
1458
+ /**
1459
+ *
1460
+ * @param {CreateDeploymentTask} createDeploymentTask
1461
+ * @param {*} [options] Override http request option.
1462
+ * @throws {RequiredError}
1463
+ */
1464
+ createDeploymentTask: (_0, ..._1) => __async(this, [_0, ..._1], function* (createDeploymentTask, options = {}) {
1465
+ assertParamExists("createDeploymentTask", "createDeploymentTask", createDeploymentTask);
1466
+ const localVarPath = `/api/v2/deployment-tasks`;
1467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1468
+ let baseOptions;
1469
+ if (configuration) {
1470
+ baseOptions = configuration.baseOptions;
1471
+ }
1472
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
1473
+ const localVarHeaderParameter = {};
1474
+ const localVarQueryParameter = {};
1475
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1476
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1477
+ localVarHeaderParameter["Content-Type"] = "application/json";
1478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1480
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1481
+ localVarRequestOptions.data = serializeDataIfNeeded(createDeploymentTask, localVarRequestOptions, configuration);
1482
+ return {
1483
+ url: toPathString(localVarUrlObj),
1484
+ options: localVarRequestOptions
1485
+ };
1486
+ }),
1487
+ /**
1488
+ *
1489
+ * @param {string} id
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ getDeploymentTask: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
1494
+ assertParamExists("getDeploymentTask", "id", id);
1495
+ const localVarPath = `/api/v2/deployment-tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1497
+ let baseOptions;
1498
+ if (configuration) {
1499
+ baseOptions = configuration.baseOptions;
1500
+ }
1501
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1502
+ const localVarHeaderParameter = {};
1503
+ const localVarQueryParameter = {};
1504
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1505
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1508
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1509
+ return {
1510
+ url: toPathString(localVarUrlObj),
1511
+ options: localVarRequestOptions
1512
+ };
1513
+ })
1514
+ };
1515
+ };
1516
+ var DeploymentTasksApiFp = function(configuration) {
1517
+ const localVarAxiosParamCreator = DeploymentTasksApiAxiosParamCreator(configuration);
1518
+ return {
1519
+ /**
1520
+ *
1521
+ * @param {string | null} [clusterId]
1522
+ * @param {string | null} [deploymentId]
1523
+ * @param {number | null} [page]
1524
+ * @param {number | null} [perPage]
1525
+ * @param {*} [options] Override http request option.
1526
+ * @throws {RequiredError}
1527
+ */
1528
+ allDeploymentTasks(clusterId, deploymentId, page, perPage, options) {
1529
+ return __async(this, null, function* () {
1530
+ var _a2, _b, _c;
1531
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, page, perPage, options);
1532
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1533
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.allDeploymentTasks"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1534
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1535
+ });
1536
+ },
1537
+ /**
1538
+ *
1539
+ * @param {CreateDeploymentTask} createDeploymentTask
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ createDeploymentTask(createDeploymentTask, options) {
1544
+ return __async(this, null, function* () {
1545
+ var _a2, _b, _c;
1546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentTask(createDeploymentTask, options);
1547
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1548
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.createDeploymentTask"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1549
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1550
+ });
1551
+ },
1552
+ /**
1553
+ *
1554
+ * @param {string} id
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ getDeploymentTask(id, options) {
1559
+ return __async(this, null, function* () {
1560
+ var _a2, _b, _c;
1561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentTask(id, options);
1562
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1563
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.getDeploymentTask"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1565
+ });
1566
+ }
1567
+ };
1568
+ };
1569
+ var DeploymentTasksApiFactory = function(configuration, basePath, axios) {
1570
+ const localVarFp = DeploymentTasksApiFp(configuration);
1571
+ return {
1572
+ /**
1573
+ *
1574
+ * @param {DeploymentTasksApiAllDeploymentTasksRequest} requestParameters Request parameters.
1575
+ * @param {*} [options] Override http request option.
1576
+ * @throws {RequiredError}
1577
+ */
1578
+ allDeploymentTasks(requestParameters = {}, options) {
1579
+ return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1580
+ },
1581
+ /**
1582
+ *
1583
+ * @param {DeploymentTasksApiCreateDeploymentTaskRequest} requestParameters Request parameters.
1584
+ * @param {*} [options] Override http request option.
1585
+ * @throws {RequiredError}
1586
+ */
1587
+ createDeploymentTask(requestParameters, options) {
1588
+ return localVarFp.createDeploymentTask(requestParameters.createDeploymentTask, options).then((request) => request(axios, basePath));
1589
+ },
1590
+ /**
1591
+ *
1592
+ * @param {DeploymentTasksApiGetDeploymentTaskRequest} requestParameters Request parameters.
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ getDeploymentTask(requestParameters, options) {
1597
+ return localVarFp.getDeploymentTask(requestParameters.id, options).then((request) => request(axios, basePath));
1598
+ }
1599
+ };
1600
+ };
1601
+ var DeploymentTasksApi = class extends BaseAPI {
1602
+ /**
1603
+ *
1604
+ * @param {DeploymentTasksApiAllDeploymentTasksRequest} requestParameters Request parameters.
1605
+ * @param {*} [options] Override http request option.
1606
+ * @throws {RequiredError}
1607
+ * @memberof DeploymentTasksApi
1608
+ */
1609
+ allDeploymentTasks(requestParameters = {}, options) {
1610
+ return DeploymentTasksApiFp(this.configuration).allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1611
+ }
1612
+ /**
1613
+ *
1614
+ * @param {DeploymentTasksApiCreateDeploymentTaskRequest} requestParameters Request parameters.
1615
+ * @param {*} [options] Override http request option.
1616
+ * @throws {RequiredError}
1617
+ * @memberof DeploymentTasksApi
1618
+ */
1619
+ createDeploymentTask(requestParameters, options) {
1620
+ return DeploymentTasksApiFp(this.configuration).createDeploymentTask(requestParameters.createDeploymentTask, options).then((request) => request(this.axios, this.basePath));
1621
+ }
1622
+ /**
1623
+ *
1624
+ * @param {DeploymentTasksApiGetDeploymentTaskRequest} requestParameters Request parameters.
1625
+ * @param {*} [options] Override http request option.
1626
+ * @throws {RequiredError}
1627
+ * @memberof DeploymentTasksApi
1628
+ */
1629
+ getDeploymentTask(requestParameters, options) {
1630
+ return DeploymentTasksApiFp(this.configuration).getDeploymentTask(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1631
+ }
1632
+ };
1633
+ var DeploymentsApiAxiosParamCreator = function(configuration) {
1634
+ return {
1635
+ /**
1636
+ *
1637
+ * @param {string | null} [name]
1638
+ * @param {string | null} [kindId]
1639
+ * @param {string | null} [clusterId]
1640
+ * @param {boolean | null} [enabled]
1641
+ * @param {number | null} [page]
1642
+ * @param {number | null} [perPage]
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ allDeployments: (_0, _1, _2, _3, _4, _5, ..._6) => __async(this, [_0, _1, _2, _3, _4, _5, ..._6], function* (name, kindId, clusterId, enabled, page, perPage, options = {}) {
1647
+ const localVarPath = `/api/v2/deployments`;
1648
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1649
+ let baseOptions;
1650
+ if (configuration) {
1651
+ baseOptions = configuration.baseOptions;
1652
+ }
1653
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1654
+ const localVarHeaderParameter = {};
1655
+ const localVarQueryParameter = {};
1656
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1657
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1658
+ if (name !== void 0) {
1659
+ localVarQueryParameter["name"] = name;
1660
+ }
1661
+ if (kindId !== void 0) {
1662
+ localVarQueryParameter["kind_id"] = kindId;
1663
+ }
1664
+ if (clusterId !== void 0) {
1665
+ localVarQueryParameter["cluster_id"] = clusterId;
1666
+ }
1667
+ if (enabled !== void 0) {
1668
+ localVarQueryParameter["enabled"] = enabled;
1669
+ }
1670
+ if (page !== void 0) {
1671
+ localVarQueryParameter["page"] = page;
1672
+ }
1673
+ if (perPage !== void 0) {
1674
+ localVarQueryParameter["per_page"] = perPage;
1675
+ }
1676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1678
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1679
+ return {
1680
+ url: toPathString(localVarUrlObj),
1681
+ options: localVarRequestOptions
1682
+ };
1683
+ }),
1684
+ /**
1685
+ *
1686
+ * @param {NewDeployment} newDeployment
1687
+ * @param {*} [options] Override http request option.
1688
+ * @throws {RequiredError}
1689
+ */
1690
+ createDeployment: (_0, ..._1) => __async(this, [_0, ..._1], function* (newDeployment, options = {}) {
1691
+ assertParamExists("createDeployment", "newDeployment", newDeployment);
1692
+ const localVarPath = `/api/v2/deployments`;
1693
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1694
+ let baseOptions;
1695
+ if (configuration) {
1696
+ baseOptions = configuration.baseOptions;
1697
+ }
1698
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
1699
+ const localVarHeaderParameter = {};
1700
+ const localVarQueryParameter = {};
1701
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1702
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1703
+ localVarHeaderParameter["Content-Type"] = "application/json";
1704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1706
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1707
+ localVarRequestOptions.data = serializeDataIfNeeded(newDeployment, localVarRequestOptions, configuration);
1708
+ return {
1709
+ url: toPathString(localVarUrlObj),
1710
+ options: localVarRequestOptions
1711
+ };
1712
+ }),
1713
+ /**
1714
+ *
1715
+ * @param {string} id
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ */
1719
+ deleteDeployment: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
1720
+ assertParamExists("deleteDeployment", "id", id);
1721
+ const localVarPath = `/api/v2/deployments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1723
+ let baseOptions;
1724
+ if (configuration) {
1725
+ baseOptions = configuration.baseOptions;
1726
+ }
1727
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
1728
+ const localVarHeaderParameter = {};
1729
+ const localVarQueryParameter = {};
1730
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1731
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1734
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1735
+ return {
1736
+ url: toPathString(localVarUrlObj),
1737
+ options: localVarRequestOptions
1738
+ };
1739
+ }),
1740
+ /**
1741
+ *
1742
+ * @param {string} id
1743
+ * @param {*} [options] Override http request option.
1744
+ * @throws {RequiredError}
1745
+ */
1746
+ getDeployment: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
1747
+ assertParamExists("getDeployment", "id", id);
1748
+ const localVarPath = `/api/v2/deployments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1749
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1750
+ let baseOptions;
1751
+ if (configuration) {
1752
+ baseOptions = configuration.baseOptions;
1753
+ }
1754
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
1755
+ const localVarHeaderParameter = {};
1756
+ const localVarQueryParameter = {};
1757
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1758
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1761
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1762
+ return {
1763
+ url: toPathString(localVarUrlObj),
1764
+ options: localVarRequestOptions
1765
+ };
1766
+ }),
1767
+ /**
1768
+ *
1769
+ * @param {string} id
1770
+ * @param {UpdateDeployment} updateDeployment
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ updateDeployment: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateDeployment, options = {}) {
1775
+ assertParamExists("updateDeployment", "id", id);
1776
+ assertParamExists("updateDeployment", "updateDeployment", updateDeployment);
1777
+ const localVarPath = `/api/v2/deployments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1779
+ let baseOptions;
1780
+ if (configuration) {
1781
+ baseOptions = configuration.baseOptions;
1782
+ }
1783
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
1784
+ const localVarHeaderParameter = {};
1785
+ const localVarQueryParameter = {};
1786
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1787
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
1788
+ localVarHeaderParameter["Content-Type"] = "application/json";
1789
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1790
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1791
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1792
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeployment, localVarRequestOptions, configuration);
1793
+ return {
1794
+ url: toPathString(localVarUrlObj),
1795
+ options: localVarRequestOptions
1796
+ };
1797
+ })
1798
+ };
1799
+ };
1800
+ var DeploymentsApiFp = function(configuration) {
1801
+ const localVarAxiosParamCreator = DeploymentsApiAxiosParamCreator(configuration);
1802
+ return {
1803
+ /**
1804
+ *
1805
+ * @param {string | null} [name]
1806
+ * @param {string | null} [kindId]
1807
+ * @param {string | null} [clusterId]
1808
+ * @param {boolean | null} [enabled]
1809
+ * @param {number | null} [page]
1810
+ * @param {number | null} [perPage]
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ */
1814
+ allDeployments(name, kindId, clusterId, enabled, page, perPage, options) {
1815
+ return __async(this, null, function* () {
1816
+ var _a2, _b, _c;
1817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled, page, perPage, options);
1818
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1819
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.allDeployments"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1820
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1821
+ });
1822
+ },
1823
+ /**
1824
+ *
1825
+ * @param {NewDeployment} newDeployment
1826
+ * @param {*} [options] Override http request option.
1827
+ * @throws {RequiredError}
1828
+ */
1829
+ createDeployment(newDeployment, options) {
1830
+ return __async(this, null, function* () {
1831
+ var _a2, _b, _c;
1832
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeployment(newDeployment, options);
1833
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1834
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.createDeployment"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1835
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1836
+ });
1837
+ },
1838
+ /**
1839
+ *
1840
+ * @param {string} id
1841
+ * @param {*} [options] Override http request option.
1842
+ * @throws {RequiredError}
1843
+ */
1844
+ deleteDeployment(id, options) {
1845
+ return __async(this, null, function* () {
1846
+ var _a2, _b, _c;
1847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeployment(id, options);
1848
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1849
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.deleteDeployment"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1850
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1851
+ });
1852
+ },
1853
+ /**
1854
+ *
1855
+ * @param {string} id
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ getDeployment(id, options) {
1860
+ return __async(this, null, function* () {
1861
+ var _a2, _b, _c;
1862
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeployment(id, options);
1863
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1864
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.getDeployment"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1866
+ });
1867
+ },
1868
+ /**
1869
+ *
1870
+ * @param {string} id
1871
+ * @param {UpdateDeployment} updateDeployment
1872
+ * @param {*} [options] Override http request option.
1873
+ * @throws {RequiredError}
1874
+ */
1875
+ updateDeployment(id, updateDeployment, options) {
1876
+ return __async(this, null, function* () {
1877
+ var _a2, _b, _c;
1878
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeployment(id, updateDeployment, options);
1879
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
1880
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.updateDeployment"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
1881
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1882
+ });
1883
+ }
1884
+ };
1885
+ };
1886
+ var DeploymentsApiFactory = function(configuration, basePath, axios) {
1887
+ const localVarFp = DeploymentsApiFp(configuration);
1888
+ return {
1889
+ /**
1890
+ *
1891
+ * @param {DeploymentsApiAllDeploymentsRequest} requestParameters Request parameters.
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ allDeployments(requestParameters = {}, options) {
1896
+ return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1897
+ },
1898
+ /**
1899
+ *
1900
+ * @param {DeploymentsApiCreateDeploymentRequest} requestParameters Request parameters.
1901
+ * @param {*} [options] Override http request option.
1902
+ * @throws {RequiredError}
1903
+ */
1904
+ createDeployment(requestParameters, options) {
1905
+ return localVarFp.createDeployment(requestParameters.newDeployment, options).then((request) => request(axios, basePath));
1906
+ },
1907
+ /**
1908
+ *
1909
+ * @param {DeploymentsApiDeleteDeploymentRequest} requestParameters Request parameters.
1910
+ * @param {*} [options] Override http request option.
1911
+ * @throws {RequiredError}
1912
+ */
1913
+ deleteDeployment(requestParameters, options) {
1914
+ return localVarFp.deleteDeployment(requestParameters.id, options).then((request) => request(axios, basePath));
1915
+ },
1916
+ /**
1917
+ *
1918
+ * @param {DeploymentsApiGetDeploymentRequest} requestParameters Request parameters.
1919
+ * @param {*} [options] Override http request option.
1920
+ * @throws {RequiredError}
1921
+ */
1922
+ getDeployment(requestParameters, options) {
1923
+ return localVarFp.getDeployment(requestParameters.id, options).then((request) => request(axios, basePath));
1924
+ },
1925
+ /**
1926
+ *
1927
+ * @param {DeploymentsApiUpdateDeploymentRequest} requestParameters Request parameters.
1928
+ * @param {*} [options] Override http request option.
1929
+ * @throws {RequiredError}
1930
+ */
1931
+ updateDeployment(requestParameters, options) {
1932
+ return localVarFp.updateDeployment(requestParameters.id, requestParameters.updateDeployment, options).then((request) => request(axios, basePath));
1933
+ }
1934
+ };
1935
+ };
1936
+ var DeploymentsApi = class extends BaseAPI {
1937
+ /**
1938
+ *
1939
+ * @param {DeploymentsApiAllDeploymentsRequest} requestParameters Request parameters.
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ * @memberof DeploymentsApi
1943
+ */
1944
+ allDeployments(requestParameters = {}, options) {
1945
+ return DeploymentsApiFp(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1946
+ }
1947
+ /**
1948
+ *
1949
+ * @param {DeploymentsApiCreateDeploymentRequest} requestParameters Request parameters.
1950
+ * @param {*} [options] Override http request option.
1951
+ * @throws {RequiredError}
1952
+ * @memberof DeploymentsApi
1953
+ */
1954
+ createDeployment(requestParameters, options) {
1955
+ return DeploymentsApiFp(this.configuration).createDeployment(requestParameters.newDeployment, options).then((request) => request(this.axios, this.basePath));
1956
+ }
1957
+ /**
1958
+ *
1959
+ * @param {DeploymentsApiDeleteDeploymentRequest} requestParameters Request parameters.
1960
+ * @param {*} [options] Override http request option.
1961
+ * @throws {RequiredError}
1962
+ * @memberof DeploymentsApi
1963
+ */
1964
+ deleteDeployment(requestParameters, options) {
1965
+ return DeploymentsApiFp(this.configuration).deleteDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1966
+ }
1967
+ /**
1968
+ *
1969
+ * @param {DeploymentsApiGetDeploymentRequest} requestParameters Request parameters.
1970
+ * @param {*} [options] Override http request option.
1971
+ * @throws {RequiredError}
1972
+ * @memberof DeploymentsApi
1973
+ */
1974
+ getDeployment(requestParameters, options) {
1975
+ return DeploymentsApiFp(this.configuration).getDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1976
+ }
1977
+ /**
1978
+ *
1979
+ * @param {DeploymentsApiUpdateDeploymentRequest} requestParameters Request parameters.
1980
+ * @param {*} [options] Override http request option.
1981
+ * @throws {RequiredError}
1982
+ * @memberof DeploymentsApi
1983
+ */
1984
+ updateDeployment(requestParameters, options) {
1985
+ return DeploymentsApiFp(this.configuration).updateDeployment(requestParameters.id, requestParameters.updateDeployment, options).then((request) => request(this.axios, this.basePath));
1986
+ }
1987
+ };
1988
+ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
1989
+ return {
1990
+ /**
1991
+ *
1992
+ * @param {string | null} [envId]
1993
+ * @param {number | null} [page]
1994
+ * @param {number | null} [perPage]
1995
+ * @param {*} [options] Override http request option.
1996
+ * @throws {RequiredError}
1997
+ */
1998
+ allEnvUserPermissions: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (envId, page, perPage, options = {}) {
1999
+ const localVarPath = `/api/v2/env-user-permissions`;
2000
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2001
+ let baseOptions;
2002
+ if (configuration) {
2003
+ baseOptions = configuration.baseOptions;
2004
+ }
2005
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2006
+ const localVarHeaderParameter = {};
2007
+ const localVarQueryParameter = {};
2008
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2009
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2010
+ if (envId !== void 0) {
2011
+ localVarQueryParameter["env_id"] = envId;
2012
+ }
2013
+ if (page !== void 0) {
2014
+ localVarQueryParameter["page"] = page;
2015
+ }
2016
+ if (perPage !== void 0) {
2017
+ localVarQueryParameter["per_page"] = perPage;
2018
+ }
2019
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2020
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2021
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2022
+ return {
2023
+ url: toPathString(localVarUrlObj),
2024
+ options: localVarRequestOptions
2025
+ };
2026
+ }),
2027
+ /**
2028
+ *
2029
+ * @param {NewEnvUserPermission} newEnvUserPermission
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ */
2033
+ createEnvUserPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (newEnvUserPermission, options = {}) {
2034
+ assertParamExists("createEnvUserPermission", "newEnvUserPermission", newEnvUserPermission);
2035
+ const localVarPath = `/api/v2/env-user-permissions`;
2036
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2037
+ let baseOptions;
2038
+ if (configuration) {
2039
+ baseOptions = configuration.baseOptions;
2040
+ }
2041
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
2042
+ const localVarHeaderParameter = {};
2043
+ const localVarQueryParameter = {};
2044
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2045
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2046
+ localVarHeaderParameter["Content-Type"] = "application/json";
2047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2049
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2050
+ localVarRequestOptions.data = serializeDataIfNeeded(newEnvUserPermission, localVarRequestOptions, configuration);
2051
+ return {
2052
+ url: toPathString(localVarUrlObj),
2053
+ options: localVarRequestOptions
2054
+ };
2055
+ }),
2056
+ /**
2057
+ *
2058
+ * @param {string} id
2059
+ * @param {*} [options] Override http request option.
2060
+ * @throws {RequiredError}
2061
+ */
2062
+ deleteEnvUserPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2063
+ assertParamExists("deleteEnvUserPermission", "id", id);
2064
+ const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2065
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2066
+ let baseOptions;
2067
+ if (configuration) {
2068
+ baseOptions = configuration.baseOptions;
2069
+ }
2070
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
2071
+ const localVarHeaderParameter = {};
2072
+ const localVarQueryParameter = {};
2073
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2074
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2075
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2076
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2077
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2078
+ return {
2079
+ url: toPathString(localVarUrlObj),
2080
+ options: localVarRequestOptions
2081
+ };
2082
+ }),
2083
+ /**
2084
+ *
2085
+ * @param {string} id
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ */
2089
+ getEnvUserPermission: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2090
+ assertParamExists("getEnvUserPermission", "id", id);
2091
+ const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2092
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2093
+ let baseOptions;
2094
+ if (configuration) {
2095
+ baseOptions = configuration.baseOptions;
2096
+ }
2097
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2098
+ const localVarHeaderParameter = {};
2099
+ const localVarQueryParameter = {};
2100
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2101
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2104
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2105
+ return {
2106
+ url: toPathString(localVarUrlObj),
2107
+ options: localVarRequestOptions
2108
+ };
2109
+ })
2110
+ };
2111
+ };
2112
+ var EnvUserPermissionsApiFp = function(configuration) {
2113
+ const localVarAxiosParamCreator = EnvUserPermissionsApiAxiosParamCreator(configuration);
2114
+ return {
2115
+ /**
2116
+ *
2117
+ * @param {string | null} [envId]
2118
+ * @param {number | null} [page]
2119
+ * @param {number | null} [perPage]
2120
+ * @param {*} [options] Override http request option.
2121
+ * @throws {RequiredError}
2122
+ */
2123
+ allEnvUserPermissions(envId, page, perPage, options) {
2124
+ return __async(this, null, function* () {
2125
+ var _a2, _b, _c;
2126
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId, page, perPage, options);
2127
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2128
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.allEnvUserPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2130
+ });
2131
+ },
2132
+ /**
2133
+ *
2134
+ * @param {NewEnvUserPermission} newEnvUserPermission
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ createEnvUserPermission(newEnvUserPermission, options) {
2139
+ return __async(this, null, function* () {
2140
+ var _a2, _b, _c;
2141
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvUserPermission(newEnvUserPermission, options);
2142
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2143
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.createEnvUserPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2144
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2145
+ });
2146
+ },
2147
+ /**
2148
+ *
2149
+ * @param {string} id
2150
+ * @param {*} [options] Override http request option.
2151
+ * @throws {RequiredError}
2152
+ */
2153
+ deleteEnvUserPermission(id, options) {
2154
+ return __async(this, null, function* () {
2155
+ var _a2, _b, _c;
2156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvUserPermission(id, options);
2157
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2158
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.deleteEnvUserPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2160
+ });
2161
+ },
2162
+ /**
2163
+ *
2164
+ * @param {string} id
2165
+ * @param {*} [options] Override http request option.
2166
+ * @throws {RequiredError}
2167
+ */
2168
+ getEnvUserPermission(id, options) {
2169
+ return __async(this, null, function* () {
2170
+ var _a2, _b, _c;
2171
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvUserPermission(id, options);
2172
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2173
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.getEnvUserPermission"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2174
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2175
+ });
2176
+ }
2177
+ };
2178
+ };
2179
+ var EnvUserPermissionsApiFactory = function(configuration, basePath, axios) {
2180
+ const localVarFp = EnvUserPermissionsApiFp(configuration);
2181
+ return {
2182
+ /**
2183
+ *
2184
+ * @param {EnvUserPermissionsApiAllEnvUserPermissionsRequest} requestParameters Request parameters.
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ allEnvUserPermissions(requestParameters = {}, options) {
2189
+ return localVarFp.allEnvUserPermissions(requestParameters.envId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
2190
+ },
2191
+ /**
2192
+ *
2193
+ * @param {EnvUserPermissionsApiCreateEnvUserPermissionRequest} requestParameters Request parameters.
2194
+ * @param {*} [options] Override http request option.
2195
+ * @throws {RequiredError}
2196
+ */
2197
+ createEnvUserPermission(requestParameters, options) {
2198
+ return localVarFp.createEnvUserPermission(requestParameters.newEnvUserPermission, options).then((request) => request(axios, basePath));
2199
+ },
2200
+ /**
2201
+ *
2202
+ * @param {EnvUserPermissionsApiDeleteEnvUserPermissionRequest} requestParameters Request parameters.
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ deleteEnvUserPermission(requestParameters, options) {
2207
+ return localVarFp.deleteEnvUserPermission(requestParameters.id, options).then((request) => request(axios, basePath));
2208
+ },
2209
+ /**
2210
+ *
2211
+ * @param {EnvUserPermissionsApiGetEnvUserPermissionRequest} requestParameters Request parameters.
2212
+ * @param {*} [options] Override http request option.
2213
+ * @throws {RequiredError}
2214
+ */
2215
+ getEnvUserPermission(requestParameters, options) {
2216
+ return localVarFp.getEnvUserPermission(requestParameters.id, options).then((request) => request(axios, basePath));
2217
+ }
2218
+ };
2219
+ };
2220
+ var EnvUserPermissionsApi = class extends BaseAPI {
2221
+ /**
2222
+ *
2223
+ * @param {EnvUserPermissionsApiAllEnvUserPermissionsRequest} requestParameters Request parameters.
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ * @memberof EnvUserPermissionsApi
2227
+ */
2228
+ allEnvUserPermissions(requestParameters = {}, options) {
2229
+ return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2230
+ }
2231
+ /**
2232
+ *
2233
+ * @param {EnvUserPermissionsApiCreateEnvUserPermissionRequest} requestParameters Request parameters.
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ * @memberof EnvUserPermissionsApi
2237
+ */
2238
+ createEnvUserPermission(requestParameters, options) {
2239
+ return EnvUserPermissionsApiFp(this.configuration).createEnvUserPermission(requestParameters.newEnvUserPermission, options).then((request) => request(this.axios, this.basePath));
2240
+ }
2241
+ /**
2242
+ *
2243
+ * @param {EnvUserPermissionsApiDeleteEnvUserPermissionRequest} requestParameters Request parameters.
2244
+ * @param {*} [options] Override http request option.
2245
+ * @throws {RequiredError}
2246
+ * @memberof EnvUserPermissionsApi
2247
+ */
2248
+ deleteEnvUserPermission(requestParameters, options) {
2249
+ return EnvUserPermissionsApiFp(this.configuration).deleteEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2250
+ }
2251
+ /**
2252
+ *
2253
+ * @param {EnvUserPermissionsApiGetEnvUserPermissionRequest} requestParameters Request parameters.
2254
+ * @param {*} [options] Override http request option.
2255
+ * @throws {RequiredError}
2256
+ * @memberof EnvUserPermissionsApi
2257
+ */
2258
+ getEnvUserPermission(requestParameters, options) {
2259
+ return EnvUserPermissionsApiFp(this.configuration).getEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2260
+ }
2261
+ };
2262
+ var EnvsApiAxiosParamCreator = function(configuration) {
2263
+ return {
2264
+ /**
2265
+ *
2266
+ * @param {string | null} [name]
2267
+ * @param {boolean | null} [autoAddNewUsers]
2268
+ * @param {number | null} [page]
2269
+ * @param {number | null} [perPage]
2270
+ * @param {*} [options] Override http request option.
2271
+ * @throws {RequiredError}
2272
+ */
2273
+ allEnvs: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (name, autoAddNewUsers, page, perPage, options = {}) {
2274
+ const localVarPath = `/api/v2/envs`;
2275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2276
+ let baseOptions;
2277
+ if (configuration) {
2278
+ baseOptions = configuration.baseOptions;
2279
+ }
2280
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2281
+ const localVarHeaderParameter = {};
2282
+ const localVarQueryParameter = {};
2283
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2284
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2285
+ if (name !== void 0) {
2286
+ localVarQueryParameter["name"] = name;
2287
+ }
2288
+ if (autoAddNewUsers !== void 0) {
2289
+ localVarQueryParameter["auto_add_new_users"] = autoAddNewUsers;
2290
+ }
2291
+ if (page !== void 0) {
2292
+ localVarQueryParameter["page"] = page;
2293
+ }
2294
+ if (perPage !== void 0) {
2295
+ localVarQueryParameter["per_page"] = perPage;
2296
+ }
2297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2299
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2300
+ return {
2301
+ url: toPathString(localVarUrlObj),
2302
+ options: localVarRequestOptions
2303
+ };
2304
+ }),
2305
+ /**
2306
+ *
2307
+ * @param {NewEnv} newEnv
2308
+ * @param {*} [options] Override http request option.
2309
+ * @throws {RequiredError}
2310
+ */
2311
+ createEnv: (_0, ..._1) => __async(this, [_0, ..._1], function* (newEnv, options = {}) {
2312
+ assertParamExists("createEnv", "newEnv", newEnv);
2313
+ const localVarPath = `/api/v2/envs`;
2314
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2315
+ let baseOptions;
2316
+ if (configuration) {
2317
+ baseOptions = configuration.baseOptions;
2318
+ }
2319
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
2320
+ const localVarHeaderParameter = {};
2321
+ const localVarQueryParameter = {};
2322
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2323
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2324
+ localVarHeaderParameter["Content-Type"] = "application/json";
2325
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2326
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2327
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2328
+ localVarRequestOptions.data = serializeDataIfNeeded(newEnv, localVarRequestOptions, configuration);
2329
+ return {
2330
+ url: toPathString(localVarUrlObj),
2331
+ options: localVarRequestOptions
2332
+ };
2333
+ }),
2334
+ /**
2335
+ *
2336
+ * @param {string} id
2337
+ * @param {*} [options] Override http request option.
2338
+ * @throws {RequiredError}
2339
+ */
2340
+ deleteEnv: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2341
+ assertParamExists("deleteEnv", "id", id);
2342
+ const localVarPath = `/api/v2/envs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2343
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2344
+ let baseOptions;
2345
+ if (configuration) {
2346
+ baseOptions = configuration.baseOptions;
2347
+ }
2348
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
2349
+ const localVarHeaderParameter = {};
2350
+ const localVarQueryParameter = {};
2351
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2352
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2355
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2356
+ return {
2357
+ url: toPathString(localVarUrlObj),
2358
+ options: localVarRequestOptions
2359
+ };
2360
+ }),
2361
+ /**
2362
+ *
2363
+ * @param {string} id
2364
+ * @param {*} [options] Override http request option.
2365
+ * @throws {RequiredError}
2366
+ */
2367
+ getEnv: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2368
+ assertParamExists("getEnv", "id", id);
2369
+ const localVarPath = `/api/v2/envs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2371
+ let baseOptions;
2372
+ if (configuration) {
2373
+ baseOptions = configuration.baseOptions;
2374
+ }
2375
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2376
+ const localVarHeaderParameter = {};
2377
+ const localVarQueryParameter = {};
2378
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2379
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2380
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2382
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2383
+ return {
2384
+ url: toPathString(localVarUrlObj),
2385
+ options: localVarRequestOptions
2386
+ };
2387
+ }),
2388
+ /**
2389
+ *
2390
+ * @param {string} id
2391
+ * @param {UpdateEnv} updateEnv
2392
+ * @param {*} [options] Override http request option.
2393
+ * @throws {RequiredError}
2394
+ */
2395
+ updateEnv: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateEnv, options = {}) {
2396
+ assertParamExists("updateEnv", "id", id);
2397
+ assertParamExists("updateEnv", "updateEnv", updateEnv);
2398
+ const localVarPath = `/api/v2/envs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2399
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2400
+ let baseOptions;
2401
+ if (configuration) {
2402
+ baseOptions = configuration.baseOptions;
2403
+ }
2404
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
2405
+ const localVarHeaderParameter = {};
2406
+ const localVarQueryParameter = {};
2407
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2408
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2409
+ localVarHeaderParameter["Content-Type"] = "application/json";
2410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2412
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2413
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEnv, localVarRequestOptions, configuration);
2414
+ return {
2415
+ url: toPathString(localVarUrlObj),
2416
+ options: localVarRequestOptions
2417
+ };
2418
+ })
2419
+ };
2420
+ };
2421
+ var EnvsApiFp = function(configuration) {
2422
+ const localVarAxiosParamCreator = EnvsApiAxiosParamCreator(configuration);
2423
+ return {
2424
+ /**
2425
+ *
2426
+ * @param {string | null} [name]
2427
+ * @param {boolean | null} [autoAddNewUsers]
2428
+ * @param {number | null} [page]
2429
+ * @param {number | null} [perPage]
2430
+ * @param {*} [options] Override http request option.
2431
+ * @throws {RequiredError}
2432
+ */
2433
+ allEnvs(name, autoAddNewUsers, page, perPage, options) {
2434
+ return __async(this, null, function* () {
2435
+ var _a2, _b, _c;
2436
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, page, perPage, options);
2437
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2438
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.allEnvs"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2440
+ });
2441
+ },
2442
+ /**
2443
+ *
2444
+ * @param {NewEnv} newEnv
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ createEnv(newEnv, options) {
2449
+ return __async(this, null, function* () {
2450
+ var _a2, _b, _c;
2451
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnv(newEnv, options);
2452
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2453
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.createEnv"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2454
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2455
+ });
2456
+ },
2457
+ /**
2458
+ *
2459
+ * @param {string} id
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ */
2463
+ deleteEnv(id, options) {
2464
+ return __async(this, null, function* () {
2465
+ var _a2, _b, _c;
2466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnv(id, options);
2467
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2468
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.deleteEnv"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2469
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2470
+ });
2471
+ },
2472
+ /**
2473
+ *
2474
+ * @param {string} id
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ */
2478
+ getEnv(id, options) {
2479
+ return __async(this, null, function* () {
2480
+ var _a2, _b, _c;
2481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnv(id, options);
2482
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2483
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.getEnv"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2484
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2485
+ });
2486
+ },
2487
+ /**
2488
+ *
2489
+ * @param {string} id
2490
+ * @param {UpdateEnv} updateEnv
2491
+ * @param {*} [options] Override http request option.
2492
+ * @throws {RequiredError}
2493
+ */
2494
+ updateEnv(id, updateEnv, options) {
2495
+ return __async(this, null, function* () {
2496
+ var _a2, _b, _c;
2497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnv(id, updateEnv, options);
2498
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2499
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.updateEnv"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2500
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2501
+ });
2502
+ }
2503
+ };
2504
+ };
2505
+ var EnvsApiFactory = function(configuration, basePath, axios) {
2506
+ const localVarFp = EnvsApiFp(configuration);
2507
+ return {
2508
+ /**
2509
+ *
2510
+ * @param {EnvsApiAllEnvsRequest} requestParameters Request parameters.
2511
+ * @param {*} [options] Override http request option.
2512
+ * @throws {RequiredError}
2513
+ */
2514
+ allEnvs(requestParameters = {}, options) {
2515
+ return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
2516
+ },
2517
+ /**
2518
+ *
2519
+ * @param {EnvsApiCreateEnvRequest} requestParameters Request parameters.
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ createEnv(requestParameters, options) {
2524
+ return localVarFp.createEnv(requestParameters.newEnv, options).then((request) => request(axios, basePath));
2525
+ },
2526
+ /**
2527
+ *
2528
+ * @param {EnvsApiDeleteEnvRequest} requestParameters Request parameters.
2529
+ * @param {*} [options] Override http request option.
2530
+ * @throws {RequiredError}
2531
+ */
2532
+ deleteEnv(requestParameters, options) {
2533
+ return localVarFp.deleteEnv(requestParameters.id, options).then((request) => request(axios, basePath));
2534
+ },
2535
+ /**
2536
+ *
2537
+ * @param {EnvsApiGetEnvRequest} requestParameters Request parameters.
2538
+ * @param {*} [options] Override http request option.
2539
+ * @throws {RequiredError}
2540
+ */
2541
+ getEnv(requestParameters, options) {
2542
+ return localVarFp.getEnv(requestParameters.id, options).then((request) => request(axios, basePath));
2543
+ },
2544
+ /**
2545
+ *
2546
+ * @param {EnvsApiUpdateEnvRequest} requestParameters Request parameters.
2547
+ * @param {*} [options] Override http request option.
2548
+ * @throws {RequiredError}
2549
+ */
2550
+ updateEnv(requestParameters, options) {
2551
+ return localVarFp.updateEnv(requestParameters.id, requestParameters.updateEnv, options).then((request) => request(axios, basePath));
2552
+ }
2553
+ };
2554
+ };
2555
+ var EnvsApi = class extends BaseAPI {
2556
+ /**
2557
+ *
2558
+ * @param {EnvsApiAllEnvsRequest} requestParameters Request parameters.
2559
+ * @param {*} [options] Override http request option.
2560
+ * @throws {RequiredError}
2561
+ * @memberof EnvsApi
2562
+ */
2563
+ allEnvs(requestParameters = {}, options) {
2564
+ return EnvsApiFp(this.configuration).allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2565
+ }
2566
+ /**
2567
+ *
2568
+ * @param {EnvsApiCreateEnvRequest} requestParameters Request parameters.
2569
+ * @param {*} [options] Override http request option.
2570
+ * @throws {RequiredError}
2571
+ * @memberof EnvsApi
2572
+ */
2573
+ createEnv(requestParameters, options) {
2574
+ return EnvsApiFp(this.configuration).createEnv(requestParameters.newEnv, options).then((request) => request(this.axios, this.basePath));
2575
+ }
2576
+ /**
2577
+ *
2578
+ * @param {EnvsApiDeleteEnvRequest} requestParameters Request parameters.
2579
+ * @param {*} [options] Override http request option.
2580
+ * @throws {RequiredError}
2581
+ * @memberof EnvsApi
2582
+ */
2583
+ deleteEnv(requestParameters, options) {
2584
+ return EnvsApiFp(this.configuration).deleteEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2585
+ }
2586
+ /**
2587
+ *
2588
+ * @param {EnvsApiGetEnvRequest} requestParameters Request parameters.
2589
+ * @param {*} [options] Override http request option.
2590
+ * @throws {RequiredError}
2591
+ * @memberof EnvsApi
2592
+ */
2593
+ getEnv(requestParameters, options) {
2594
+ return EnvsApiFp(this.configuration).getEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2595
+ }
2596
+ /**
2597
+ *
2598
+ * @param {EnvsApiUpdateEnvRequest} requestParameters Request parameters.
2599
+ * @param {*} [options] Override http request option.
2600
+ * @throws {RequiredError}
2601
+ * @memberof EnvsApi
2602
+ */
2603
+ updateEnv(requestParameters, options) {
2604
+ return EnvsApiFp(this.configuration).updateEnv(requestParameters.id, requestParameters.updateEnv, options).then((request) => request(this.axios, this.basePath));
2605
+ }
2606
+ };
2607
+ var HelmChartsApiAxiosParamCreator = function(configuration) {
2608
+ return {
2609
+ /**
2610
+ *
2611
+ * @param {string | null} [helmRegistryId]
2612
+ * @param {string | null} [parsedBranch]
2613
+ * @param {number | null} [page]
2614
+ * @param {number | null} [perPage]
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ allHelmCharts: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (helmRegistryId, parsedBranch, page, perPage, options = {}) {
2619
+ const localVarPath = `/api/v2/helm-charts`;
2620
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2621
+ let baseOptions;
2622
+ if (configuration) {
2623
+ baseOptions = configuration.baseOptions;
2624
+ }
2625
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2626
+ const localVarHeaderParameter = {};
2627
+ const localVarQueryParameter = {};
2628
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2629
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2630
+ if (helmRegistryId !== void 0) {
2631
+ localVarQueryParameter["helm_registry_id"] = helmRegistryId;
2632
+ }
2633
+ if (parsedBranch !== void 0) {
2634
+ localVarQueryParameter["parsed_branch"] = parsedBranch;
2635
+ }
2636
+ if (page !== void 0) {
2637
+ localVarQueryParameter["page"] = page;
2638
+ }
2639
+ if (perPage !== void 0) {
2640
+ localVarQueryParameter["per_page"] = perPage;
2641
+ }
2642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2644
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2645
+ return {
2646
+ url: toPathString(localVarUrlObj),
2647
+ options: localVarRequestOptions
2648
+ };
2649
+ }),
2650
+ /**
2651
+ *
2652
+ * @param {string} id
2653
+ * @param {*} [options] Override http request option.
2654
+ * @throws {RequiredError}
2655
+ */
2656
+ getHelmChart: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2657
+ assertParamExists("getHelmChart", "id", id);
2658
+ const localVarPath = `/api/v2/helm-charts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2659
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2660
+ let baseOptions;
2661
+ if (configuration) {
2662
+ baseOptions = configuration.baseOptions;
2663
+ }
2664
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2665
+ const localVarHeaderParameter = {};
2666
+ const localVarQueryParameter = {};
2667
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2668
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2671
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2672
+ return {
2673
+ url: toPathString(localVarUrlObj),
2674
+ options: localVarRequestOptions
2675
+ };
2676
+ })
2677
+ };
2678
+ };
2679
+ var HelmChartsApiFp = function(configuration) {
2680
+ const localVarAxiosParamCreator = HelmChartsApiAxiosParamCreator(configuration);
2681
+ return {
2682
+ /**
2683
+ *
2684
+ * @param {string | null} [helmRegistryId]
2685
+ * @param {string | null} [parsedBranch]
2686
+ * @param {number | null} [page]
2687
+ * @param {number | null} [perPage]
2688
+ * @param {*} [options] Override http request option.
2689
+ * @throws {RequiredError}
2690
+ */
2691
+ allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options) {
2692
+ return __async(this, null, function* () {
2693
+ var _a2, _b, _c;
2694
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options);
2695
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2696
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmChartsApi.allHelmCharts"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2698
+ });
2699
+ },
2700
+ /**
2701
+ *
2702
+ * @param {string} id
2703
+ * @param {*} [options] Override http request option.
2704
+ * @throws {RequiredError}
2705
+ */
2706
+ getHelmChart(id, options) {
2707
+ return __async(this, null, function* () {
2708
+ var _a2, _b, _c;
2709
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmChart(id, options);
2710
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2711
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmChartsApi.getHelmChart"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2712
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2713
+ });
2714
+ }
2715
+ };
2716
+ };
2717
+ var HelmChartsApiFactory = function(configuration, basePath, axios) {
2718
+ const localVarFp = HelmChartsApiFp(configuration);
2719
+ return {
2720
+ /**
2721
+ *
2722
+ * @param {HelmChartsApiAllHelmChartsRequest} requestParameters Request parameters.
2723
+ * @param {*} [options] Override http request option.
2724
+ * @throws {RequiredError}
2725
+ */
2726
+ allHelmCharts(requestParameters = {}, options) {
2727
+ return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
2728
+ },
2729
+ /**
2730
+ *
2731
+ * @param {HelmChartsApiGetHelmChartRequest} requestParameters Request parameters.
2732
+ * @param {*} [options] Override http request option.
2733
+ * @throws {RequiredError}
2734
+ */
2735
+ getHelmChart(requestParameters, options) {
2736
+ return localVarFp.getHelmChart(requestParameters.id, options).then((request) => request(axios, basePath));
2737
+ }
2738
+ };
2739
+ };
2740
+ var HelmChartsApi = class extends BaseAPI {
2741
+ /**
2742
+ *
2743
+ * @param {HelmChartsApiAllHelmChartsRequest} requestParameters Request parameters.
2744
+ * @param {*} [options] Override http request option.
2745
+ * @throws {RequiredError}
2746
+ * @memberof HelmChartsApi
2747
+ */
2748
+ allHelmCharts(requestParameters = {}, options) {
2749
+ return HelmChartsApiFp(this.configuration).allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2750
+ }
2751
+ /**
2752
+ *
2753
+ * @param {HelmChartsApiGetHelmChartRequest} requestParameters Request parameters.
2754
+ * @param {*} [options] Override http request option.
2755
+ * @throws {RequiredError}
2756
+ * @memberof HelmChartsApi
2757
+ */
2758
+ getHelmChart(requestParameters, options) {
2759
+ return HelmChartsApiFp(this.configuration).getHelmChart(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2760
+ }
2761
+ };
2762
+ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
2763
+ return {
2764
+ /**
2765
+ *
2766
+ * @param {string | null} [repoName]
2767
+ * @param {string | null} [kindId]
2768
+ * @param {number | null} [page]
2769
+ * @param {number | null} [perPage]
2770
+ * @param {*} [options] Override http request option.
2771
+ * @throws {RequiredError}
2772
+ */
2773
+ allHelmRegistries: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (repoName, kindId, page, perPage, options = {}) {
2774
+ const localVarPath = `/api/v2/helm-registries`;
2775
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2776
+ let baseOptions;
2777
+ if (configuration) {
2778
+ baseOptions = configuration.baseOptions;
2779
+ }
2780
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2781
+ const localVarHeaderParameter = {};
2782
+ const localVarQueryParameter = {};
2783
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2784
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2785
+ if (repoName !== void 0) {
2786
+ localVarQueryParameter["repo_name"] = repoName;
2787
+ }
2788
+ if (kindId !== void 0) {
2789
+ localVarQueryParameter["kind_id"] = kindId;
2790
+ }
2791
+ if (page !== void 0) {
2792
+ localVarQueryParameter["page"] = page;
2793
+ }
2794
+ if (perPage !== void 0) {
2795
+ localVarQueryParameter["per_page"] = perPage;
2796
+ }
2797
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2798
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2799
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2800
+ return {
2801
+ url: toPathString(localVarUrlObj),
2802
+ options: localVarRequestOptions
2803
+ };
2804
+ }),
2805
+ /**
2806
+ *
2807
+ * @param {string} id
2808
+ * @param {*} [options] Override http request option.
2809
+ * @throws {RequiredError}
2810
+ */
2811
+ getHelmRegistry: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
2812
+ assertParamExists("getHelmRegistry", "id", id);
2813
+ const localVarPath = `/api/v2/helm-registries/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2815
+ let baseOptions;
2816
+ if (configuration) {
2817
+ baseOptions = configuration.baseOptions;
2818
+ }
2819
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
2820
+ const localVarHeaderParameter = {};
2821
+ const localVarQueryParameter = {};
2822
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2823
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2824
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2825
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2826
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2827
+ return {
2828
+ url: toPathString(localVarUrlObj),
2829
+ options: localVarRequestOptions
2830
+ };
2831
+ }),
2832
+ /**
2833
+ *
2834
+ * @param {string} id
2835
+ * @param {UpdateHelmRegistry} updateHelmRegistry
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ */
2839
+ updateHelmRegistry: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateHelmRegistry, options = {}) {
2840
+ assertParamExists("updateHelmRegistry", "id", id);
2841
+ assertParamExists("updateHelmRegistry", "updateHelmRegistry", updateHelmRegistry);
2842
+ const localVarPath = `/api/v2/helm-registries/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2843
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2844
+ let baseOptions;
2845
+ if (configuration) {
2846
+ baseOptions = configuration.baseOptions;
2847
+ }
2848
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
2849
+ const localVarHeaderParameter = {};
2850
+ const localVarQueryParameter = {};
2851
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2852
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
2853
+ localVarHeaderParameter["Content-Type"] = "application/json";
2854
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2855
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2856
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2857
+ localVarRequestOptions.data = serializeDataIfNeeded(updateHelmRegistry, localVarRequestOptions, configuration);
2858
+ return {
2859
+ url: toPathString(localVarUrlObj),
2860
+ options: localVarRequestOptions
2861
+ };
2862
+ })
2863
+ };
2864
+ };
2865
+ var HelmRegistriesApiFp = function(configuration) {
2866
+ const localVarAxiosParamCreator = HelmRegistriesApiAxiosParamCreator(configuration);
2867
+ return {
2868
+ /**
2869
+ *
2870
+ * @param {string | null} [repoName]
2871
+ * @param {string | null} [kindId]
2872
+ * @param {number | null} [page]
2873
+ * @param {number | null} [perPage]
2874
+ * @param {*} [options] Override http request option.
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ allHelmRegistries(repoName, kindId, page, perPage, options) {
2878
+ return __async(this, null, function* () {
2879
+ var _a2, _b, _c;
2880
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId, page, perPage, options);
2881
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2882
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.allHelmRegistries"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2883
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2884
+ });
2885
+ },
2886
+ /**
2887
+ *
2888
+ * @param {string} id
2889
+ * @param {*} [options] Override http request option.
2890
+ * @throws {RequiredError}
2891
+ */
2892
+ getHelmRegistry(id, options) {
2893
+ return __async(this, null, function* () {
2894
+ var _a2, _b, _c;
2895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmRegistry(id, options);
2896
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2897
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.getHelmRegistry"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2898
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2899
+ });
2900
+ },
2901
+ /**
2902
+ *
2903
+ * @param {string} id
2904
+ * @param {UpdateHelmRegistry} updateHelmRegistry
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ */
2908
+ updateHelmRegistry(id, updateHelmRegistry, options) {
2909
+ return __async(this, null, function* () {
2910
+ var _a2, _b, _c;
2911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHelmRegistry(id, updateHelmRegistry, options);
2912
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
2913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.updateHelmRegistry"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
2914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2915
+ });
2916
+ }
2917
+ };
2918
+ };
2919
+ var HelmRegistriesApiFactory = function(configuration, basePath, axios) {
2920
+ const localVarFp = HelmRegistriesApiFp(configuration);
2921
+ return {
2922
+ /**
2923
+ *
2924
+ * @param {HelmRegistriesApiAllHelmRegistriesRequest} requestParameters Request parameters.
2925
+ * @param {*} [options] Override http request option.
2926
+ * @throws {RequiredError}
2927
+ */
2928
+ allHelmRegistries(requestParameters = {}, options) {
2929
+ return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
2930
+ },
2931
+ /**
2932
+ *
2933
+ * @param {HelmRegistriesApiGetHelmRegistryRequest} requestParameters Request parameters.
2934
+ * @param {*} [options] Override http request option.
2935
+ * @throws {RequiredError}
2936
+ */
2937
+ getHelmRegistry(requestParameters, options) {
2938
+ return localVarFp.getHelmRegistry(requestParameters.id, options).then((request) => request(axios, basePath));
2939
+ },
2940
+ /**
2941
+ *
2942
+ * @param {HelmRegistriesApiUpdateHelmRegistryRequest} requestParameters Request parameters.
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ */
2946
+ updateHelmRegistry(requestParameters, options) {
2947
+ return localVarFp.updateHelmRegistry(requestParameters.id, requestParameters.updateHelmRegistry, options).then((request) => request(axios, basePath));
2948
+ }
2949
+ };
2950
+ };
2951
+ var HelmRegistriesApi = class extends BaseAPI {
2952
+ /**
2953
+ *
2954
+ * @param {HelmRegistriesApiAllHelmRegistriesRequest} requestParameters Request parameters.
2955
+ * @param {*} [options] Override http request option.
2956
+ * @throws {RequiredError}
2957
+ * @memberof HelmRegistriesApi
2958
+ */
2959
+ allHelmRegistries(requestParameters = {}, options) {
2960
+ return HelmRegistriesApiFp(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2961
+ }
2962
+ /**
2963
+ *
2964
+ * @param {HelmRegistriesApiGetHelmRegistryRequest} requestParameters Request parameters.
2965
+ * @param {*} [options] Override http request option.
2966
+ * @throws {RequiredError}
2967
+ * @memberof HelmRegistriesApi
2968
+ */
2969
+ getHelmRegistry(requestParameters, options) {
2970
+ return HelmRegistriesApiFp(this.configuration).getHelmRegistry(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2971
+ }
2972
+ /**
2973
+ *
2974
+ * @param {HelmRegistriesApiUpdateHelmRegistryRequest} requestParameters Request parameters.
2975
+ * @param {*} [options] Override http request option.
2976
+ * @throws {RequiredError}
2977
+ * @memberof HelmRegistriesApi
2978
+ */
2979
+ updateHelmRegistry(requestParameters, options) {
2980
+ return HelmRegistriesApiFp(this.configuration).updateHelmRegistry(requestParameters.id, requestParameters.updateHelmRegistry, options).then((request) => request(this.axios, this.basePath));
2981
+ }
2982
+ };
2983
+ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
2984
+ return {
2985
+ /**
2986
+ *
2987
+ * @param {string | null} [pattern]
2988
+ * @param {number | null} [page]
2989
+ * @param {number | null} [perPage]
2990
+ * @param {*} [options] Override http request option.
2991
+ * @throws {RequiredError}
2992
+ */
2993
+ allHelmTagFormats: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (pattern, page, perPage, options = {}) {
2994
+ const localVarPath = `/api/v2/helm-tag-formats`;
2995
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2996
+ let baseOptions;
2997
+ if (configuration) {
2998
+ baseOptions = configuration.baseOptions;
2999
+ }
3000
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3001
+ const localVarHeaderParameter = {};
3002
+ const localVarQueryParameter = {};
3003
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3004
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3005
+ if (pattern !== void 0) {
3006
+ localVarQueryParameter["pattern"] = pattern;
3007
+ }
3008
+ if (page !== void 0) {
3009
+ localVarQueryParameter["page"] = page;
3010
+ }
3011
+ if (perPage !== void 0) {
3012
+ localVarQueryParameter["per_page"] = perPage;
3013
+ }
3014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3016
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3017
+ return {
3018
+ url: toPathString(localVarUrlObj),
3019
+ options: localVarRequestOptions
3020
+ };
3021
+ }),
3022
+ /**
3023
+ *
3024
+ * @param {NewHelmTagFormat} newHelmTagFormat
3025
+ * @param {*} [options] Override http request option.
3026
+ * @throws {RequiredError}
3027
+ */
3028
+ createHelmTagFormat: (_0, ..._1) => __async(this, [_0, ..._1], function* (newHelmTagFormat, options = {}) {
3029
+ assertParamExists("createHelmTagFormat", "newHelmTagFormat", newHelmTagFormat);
3030
+ const localVarPath = `/api/v2/helm-tag-formats`;
3031
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3032
+ let baseOptions;
3033
+ if (configuration) {
3034
+ baseOptions = configuration.baseOptions;
3035
+ }
3036
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
3037
+ const localVarHeaderParameter = {};
3038
+ const localVarQueryParameter = {};
3039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3040
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3041
+ localVarHeaderParameter["Content-Type"] = "application/json";
3042
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3043
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3044
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3045
+ localVarRequestOptions.data = serializeDataIfNeeded(newHelmTagFormat, localVarRequestOptions, configuration);
3046
+ return {
3047
+ url: toPathString(localVarUrlObj),
3048
+ options: localVarRequestOptions
3049
+ };
3050
+ }),
3051
+ /**
3052
+ *
3053
+ * @param {string} id
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ */
3057
+ deleteHelmTagFormat: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3058
+ assertParamExists("deleteHelmTagFormat", "id", id);
3059
+ const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3060
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3061
+ let baseOptions;
3062
+ if (configuration) {
3063
+ baseOptions = configuration.baseOptions;
3064
+ }
3065
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
3066
+ const localVarHeaderParameter = {};
3067
+ const localVarQueryParameter = {};
3068
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3069
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3072
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3073
+ return {
3074
+ url: toPathString(localVarUrlObj),
3075
+ options: localVarRequestOptions
3076
+ };
3077
+ }),
3078
+ /**
3079
+ *
3080
+ * @param {string} id
3081
+ * @param {*} [options] Override http request option.
3082
+ * @throws {RequiredError}
3083
+ */
3084
+ getHelmTagFormat: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3085
+ assertParamExists("getHelmTagFormat", "id", id);
3086
+ const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3087
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3088
+ let baseOptions;
3089
+ if (configuration) {
3090
+ baseOptions = configuration.baseOptions;
3091
+ }
3092
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3093
+ const localVarHeaderParameter = {};
3094
+ const localVarQueryParameter = {};
3095
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3096
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3097
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3099
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3100
+ return {
3101
+ url: toPathString(localVarUrlObj),
3102
+ options: localVarRequestOptions
3103
+ };
3104
+ })
3105
+ };
3106
+ };
3107
+ var HelmTagFormatsApiFp = function(configuration) {
3108
+ const localVarAxiosParamCreator = HelmTagFormatsApiAxiosParamCreator(configuration);
3109
+ return {
3110
+ /**
3111
+ *
3112
+ * @param {string | null} [pattern]
3113
+ * @param {number | null} [page]
3114
+ * @param {number | null} [perPage]
3115
+ * @param {*} [options] Override http request option.
3116
+ * @throws {RequiredError}
3117
+ */
3118
+ allHelmTagFormats(pattern, page, perPage, options) {
3119
+ return __async(this, null, function* () {
3120
+ var _a2, _b, _c;
3121
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern, page, perPage, options);
3122
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3123
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.allHelmTagFormats"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3125
+ });
3126
+ },
3127
+ /**
3128
+ *
3129
+ * @param {NewHelmTagFormat} newHelmTagFormat
3130
+ * @param {*} [options] Override http request option.
3131
+ * @throws {RequiredError}
3132
+ */
3133
+ createHelmTagFormat(newHelmTagFormat, options) {
3134
+ return __async(this, null, function* () {
3135
+ var _a2, _b, _c;
3136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createHelmTagFormat(newHelmTagFormat, options);
3137
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3138
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.createHelmTagFormat"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3139
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3140
+ });
3141
+ },
3142
+ /**
3143
+ *
3144
+ * @param {string} id
3145
+ * @param {*} [options] Override http request option.
3146
+ * @throws {RequiredError}
3147
+ */
3148
+ deleteHelmTagFormat(id, options) {
3149
+ return __async(this, null, function* () {
3150
+ var _a2, _b, _c;
3151
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteHelmTagFormat(id, options);
3152
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3153
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.deleteHelmTagFormat"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3154
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3155
+ });
3156
+ },
3157
+ /**
3158
+ *
3159
+ * @param {string} id
3160
+ * @param {*} [options] Override http request option.
3161
+ * @throws {RequiredError}
3162
+ */
3163
+ getHelmTagFormat(id, options) {
3164
+ return __async(this, null, function* () {
3165
+ var _a2, _b, _c;
3166
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmTagFormat(id, options);
3167
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3168
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.getHelmTagFormat"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3169
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3170
+ });
3171
+ }
3172
+ };
3173
+ };
3174
+ var HelmTagFormatsApiFactory = function(configuration, basePath, axios) {
3175
+ const localVarFp = HelmTagFormatsApiFp(configuration);
3176
+ return {
3177
+ /**
3178
+ *
3179
+ * @param {HelmTagFormatsApiAllHelmTagFormatsRequest} requestParameters Request parameters.
3180
+ * @param {*} [options] Override http request option.
3181
+ * @throws {RequiredError}
3182
+ */
3183
+ allHelmTagFormats(requestParameters = {}, options) {
3184
+ return localVarFp.allHelmTagFormats(requestParameters.pattern, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3185
+ },
3186
+ /**
3187
+ *
3188
+ * @param {HelmTagFormatsApiCreateHelmTagFormatRequest} requestParameters Request parameters.
3189
+ * @param {*} [options] Override http request option.
3190
+ * @throws {RequiredError}
3191
+ */
3192
+ createHelmTagFormat(requestParameters, options) {
3193
+ return localVarFp.createHelmTagFormat(requestParameters.newHelmTagFormat, options).then((request) => request(axios, basePath));
3194
+ },
3195
+ /**
3196
+ *
3197
+ * @param {HelmTagFormatsApiDeleteHelmTagFormatRequest} requestParameters Request parameters.
3198
+ * @param {*} [options] Override http request option.
3199
+ * @throws {RequiredError}
3200
+ */
3201
+ deleteHelmTagFormat(requestParameters, options) {
3202
+ return localVarFp.deleteHelmTagFormat(requestParameters.id, options).then((request) => request(axios, basePath));
3203
+ },
3204
+ /**
3205
+ *
3206
+ * @param {HelmTagFormatsApiGetHelmTagFormatRequest} requestParameters Request parameters.
3207
+ * @param {*} [options] Override http request option.
3208
+ * @throws {RequiredError}
3209
+ */
3210
+ getHelmTagFormat(requestParameters, options) {
3211
+ return localVarFp.getHelmTagFormat(requestParameters.id, options).then((request) => request(axios, basePath));
3212
+ }
3213
+ };
3214
+ };
3215
+ var HelmTagFormatsApi = class extends BaseAPI {
3216
+ /**
3217
+ *
3218
+ * @param {HelmTagFormatsApiAllHelmTagFormatsRequest} requestParameters Request parameters.
3219
+ * @param {*} [options] Override http request option.
3220
+ * @throws {RequiredError}
3221
+ * @memberof HelmTagFormatsApi
3222
+ */
3223
+ allHelmTagFormats(requestParameters = {}, options) {
3224
+ return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
3225
+ }
3226
+ /**
3227
+ *
3228
+ * @param {HelmTagFormatsApiCreateHelmTagFormatRequest} requestParameters Request parameters.
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ * @memberof HelmTagFormatsApi
3232
+ */
3233
+ createHelmTagFormat(requestParameters, options) {
3234
+ return HelmTagFormatsApiFp(this.configuration).createHelmTagFormat(requestParameters.newHelmTagFormat, options).then((request) => request(this.axios, this.basePath));
3235
+ }
3236
+ /**
3237
+ *
3238
+ * @param {HelmTagFormatsApiDeleteHelmTagFormatRequest} requestParameters Request parameters.
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ * @memberof HelmTagFormatsApi
3242
+ */
3243
+ deleteHelmTagFormat(requestParameters, options) {
3244
+ return HelmTagFormatsApiFp(this.configuration).deleteHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3245
+ }
3246
+ /**
3247
+ *
3248
+ * @param {HelmTagFormatsApiGetHelmTagFormatRequest} requestParameters Request parameters.
3249
+ * @param {*} [options] Override http request option.
3250
+ * @throws {RequiredError}
3251
+ * @memberof HelmTagFormatsApi
3252
+ */
3253
+ getHelmTagFormat(requestParameters, options) {
3254
+ return HelmTagFormatsApiFp(this.configuration).getHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3255
+ }
3256
+ };
3257
+ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
3258
+ return {
3259
+ /**
3260
+ *
3261
+ * @param {string | null} [envId]
3262
+ * @param {string | null} [name]
3263
+ * @param {number | null} [page]
3264
+ * @param {number | null} [perPage]
3265
+ * @param {*} [options] Override http request option.
3266
+ * @throws {RequiredError}
3267
+ */
3268
+ allK8sClusters: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (envId, name, page, perPage, options = {}) {
3269
+ const localVarPath = `/api/v2/k8s-clusters`;
3270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3271
+ let baseOptions;
3272
+ if (configuration) {
3273
+ baseOptions = configuration.baseOptions;
3274
+ }
3275
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3276
+ const localVarHeaderParameter = {};
3277
+ const localVarQueryParameter = {};
3278
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3279
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3280
+ if (envId !== void 0) {
3281
+ localVarQueryParameter["env_id"] = envId;
3282
+ }
3283
+ if (name !== void 0) {
3284
+ localVarQueryParameter["name"] = name;
3285
+ }
3286
+ if (page !== void 0) {
3287
+ localVarQueryParameter["page"] = page;
3288
+ }
3289
+ if (perPage !== void 0) {
3290
+ localVarQueryParameter["per_page"] = perPage;
3291
+ }
3292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3294
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3295
+ return {
3296
+ url: toPathString(localVarUrlObj),
3297
+ options: localVarRequestOptions
3298
+ };
3299
+ }),
3300
+ /**
3301
+ *
3302
+ * @param {string} id
3303
+ * @param {*} [options] Override http request option.
3304
+ * @throws {RequiredError}
3305
+ */
3306
+ deleteK8sCluster: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3307
+ assertParamExists("deleteK8sCluster", "id", id);
3308
+ const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3310
+ let baseOptions;
3311
+ if (configuration) {
3312
+ baseOptions = configuration.baseOptions;
3313
+ }
3314
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
3315
+ const localVarHeaderParameter = {};
3316
+ const localVarQueryParameter = {};
3317
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3318
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3321
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3322
+ return {
3323
+ url: toPathString(localVarUrlObj),
3324
+ options: localVarRequestOptions
3325
+ };
3326
+ }),
3327
+ /**
3328
+ *
3329
+ * @param {string} id
3330
+ * @param {*} [options] Override http request option.
3331
+ * @throws {RequiredError}
3332
+ */
3333
+ getK8sCluster: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3334
+ assertParamExists("getK8sCluster", "id", id);
3335
+ const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3336
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3337
+ let baseOptions;
3338
+ if (configuration) {
3339
+ baseOptions = configuration.baseOptions;
3340
+ }
3341
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3342
+ const localVarHeaderParameter = {};
3343
+ const localVarQueryParameter = {};
3344
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3345
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3346
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3348
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3349
+ return {
3350
+ url: toPathString(localVarUrlObj),
3351
+ options: localVarRequestOptions
3352
+ };
3353
+ }),
3354
+ /**
3355
+ *
3356
+ * @param {string} id
3357
+ * @param {UpdateK8sCluster} updateK8sCluster
3358
+ * @param {*} [options] Override http request option.
3359
+ * @throws {RequiredError}
3360
+ */
3361
+ updateK8sCluster: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateK8sCluster, options = {}) {
3362
+ assertParamExists("updateK8sCluster", "id", id);
3363
+ assertParamExists("updateK8sCluster", "updateK8sCluster", updateK8sCluster);
3364
+ const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3365
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3366
+ let baseOptions;
3367
+ if (configuration) {
3368
+ baseOptions = configuration.baseOptions;
3369
+ }
3370
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
3371
+ const localVarHeaderParameter = {};
3372
+ const localVarQueryParameter = {};
3373
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3374
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3375
+ localVarHeaderParameter["Content-Type"] = "application/json";
3376
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3378
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3379
+ localVarRequestOptions.data = serializeDataIfNeeded(updateK8sCluster, localVarRequestOptions, configuration);
3380
+ return {
3381
+ url: toPathString(localVarUrlObj),
3382
+ options: localVarRequestOptions
3383
+ };
3384
+ })
3385
+ };
3386
+ };
3387
+ var KubernetesClustersApiFp = function(configuration) {
3388
+ const localVarAxiosParamCreator = KubernetesClustersApiAxiosParamCreator(configuration);
3389
+ return {
3390
+ /**
3391
+ *
3392
+ * @param {string | null} [envId]
3393
+ * @param {string | null} [name]
3394
+ * @param {number | null} [page]
3395
+ * @param {number | null} [perPage]
3396
+ * @param {*} [options] Override http request option.
3397
+ * @throws {RequiredError}
3398
+ */
3399
+ allK8sClusters(envId, name, page, perPage, options) {
3400
+ return __async(this, null, function* () {
3401
+ var _a2, _b, _c;
3402
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name, page, perPage, options);
3403
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3404
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.allK8sClusters"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3405
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3406
+ });
3407
+ },
3408
+ /**
3409
+ *
3410
+ * @param {string} id
3411
+ * @param {*} [options] Override http request option.
3412
+ * @throws {RequiredError}
3413
+ */
3414
+ deleteK8sCluster(id, options) {
3415
+ return __async(this, null, function* () {
3416
+ var _a2, _b, _c;
3417
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteK8sCluster(id, options);
3418
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3419
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.deleteK8sCluster"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3421
+ });
3422
+ },
3423
+ /**
3424
+ *
3425
+ * @param {string} id
3426
+ * @param {*} [options] Override http request option.
3427
+ * @throws {RequiredError}
3428
+ */
3429
+ getK8sCluster(id, options) {
3430
+ return __async(this, null, function* () {
3431
+ var _a2, _b, _c;
3432
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getK8sCluster(id, options);
3433
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3434
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.getK8sCluster"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3435
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3436
+ });
3437
+ },
3438
+ /**
3439
+ *
3440
+ * @param {string} id
3441
+ * @param {UpdateK8sCluster} updateK8sCluster
3442
+ * @param {*} [options] Override http request option.
3443
+ * @throws {RequiredError}
3444
+ */
3445
+ updateK8sCluster(id, updateK8sCluster, options) {
3446
+ return __async(this, null, function* () {
3447
+ var _a2, _b, _c;
3448
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateK8sCluster(id, updateK8sCluster, options);
3449
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3450
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.updateK8sCluster"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3451
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3452
+ });
3453
+ }
3454
+ };
3455
+ };
3456
+ var KubernetesClustersApiFactory = function(configuration, basePath, axios) {
3457
+ const localVarFp = KubernetesClustersApiFp(configuration);
3458
+ return {
3459
+ /**
3460
+ *
3461
+ * @param {KubernetesClustersApiAllK8sClustersRequest} requestParameters Request parameters.
3462
+ * @param {*} [options] Override http request option.
3463
+ * @throws {RequiredError}
3464
+ */
3465
+ allK8sClusters(requestParameters = {}, options) {
3466
+ return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3467
+ },
3468
+ /**
3469
+ *
3470
+ * @param {KubernetesClustersApiDeleteK8sClusterRequest} requestParameters Request parameters.
3471
+ * @param {*} [options] Override http request option.
3472
+ * @throws {RequiredError}
3473
+ */
3474
+ deleteK8sCluster(requestParameters, options) {
3475
+ return localVarFp.deleteK8sCluster(requestParameters.id, options).then((request) => request(axios, basePath));
3476
+ },
3477
+ /**
3478
+ *
3479
+ * @param {KubernetesClustersApiGetK8sClusterRequest} requestParameters Request parameters.
3480
+ * @param {*} [options] Override http request option.
3481
+ * @throws {RequiredError}
3482
+ */
3483
+ getK8sCluster(requestParameters, options) {
3484
+ return localVarFp.getK8sCluster(requestParameters.id, options).then((request) => request(axios, basePath));
3485
+ },
3486
+ /**
3487
+ *
3488
+ * @param {KubernetesClustersApiUpdateK8sClusterRequest} requestParameters Request parameters.
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ updateK8sCluster(requestParameters, options) {
3493
+ return localVarFp.updateK8sCluster(requestParameters.id, requestParameters.updateK8sCluster, options).then((request) => request(axios, basePath));
3494
+ }
3495
+ };
3496
+ };
3497
+ var KubernetesClustersApi = class extends BaseAPI {
3498
+ /**
3499
+ *
3500
+ * @param {KubernetesClustersApiAllK8sClustersRequest} requestParameters Request parameters.
3501
+ * @param {*} [options] Override http request option.
3502
+ * @throws {RequiredError}
3503
+ * @memberof KubernetesClustersApi
3504
+ */
3505
+ allK8sClusters(requestParameters = {}, options) {
3506
+ return KubernetesClustersApiFp(this.configuration).allK8sClusters(requestParameters.envId, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
3507
+ }
3508
+ /**
3509
+ *
3510
+ * @param {KubernetesClustersApiDeleteK8sClusterRequest} requestParameters Request parameters.
3511
+ * @param {*} [options] Override http request option.
3512
+ * @throws {RequiredError}
3513
+ * @memberof KubernetesClustersApi
3514
+ */
3515
+ deleteK8sCluster(requestParameters, options) {
3516
+ return KubernetesClustersApiFp(this.configuration).deleteK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3517
+ }
3518
+ /**
3519
+ *
3520
+ * @param {KubernetesClustersApiGetK8sClusterRequest} requestParameters Request parameters.
3521
+ * @param {*} [options] Override http request option.
3522
+ * @throws {RequiredError}
3523
+ * @memberof KubernetesClustersApi
3524
+ */
3525
+ getK8sCluster(requestParameters, options) {
3526
+ return KubernetesClustersApiFp(this.configuration).getK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3527
+ }
3528
+ /**
3529
+ *
3530
+ * @param {KubernetesClustersApiUpdateK8sClusterRequest} requestParameters Request parameters.
3531
+ * @param {*} [options] Override http request option.
3532
+ * @throws {RequiredError}
3533
+ * @memberof KubernetesClustersApi
3534
+ */
3535
+ updateK8sCluster(requestParameters, options) {
3536
+ return KubernetesClustersApiFp(this.configuration).updateK8sCluster(requestParameters.id, requestParameters.updateK8sCluster, options).then((request) => request(this.axios, this.basePath));
3537
+ }
3538
+ };
3539
+ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
3540
+ return {
3541
+ /**
3542
+ *
3543
+ * @param {string | null} [clusterId]
3544
+ * @param {string | null} [deploymentId]
3545
+ * @param {string | null} [kind]
3546
+ * @param {string | null} [name]
3547
+ * @param {number | null} [page]
3548
+ * @param {number | null} [perPage]
3549
+ * @param {*} [options] Override http request option.
3550
+ * @throws {RequiredError}
3551
+ */
3552
+ allK8sResources: (_0, _1, _2, _3, _4, _5, ..._6) => __async(this, [_0, _1, _2, _3, _4, _5, ..._6], function* (clusterId, deploymentId, kind, name, page, perPage, options = {}) {
3553
+ const localVarPath = `/api/v2/k8s-resources`;
3554
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3555
+ let baseOptions;
3556
+ if (configuration) {
3557
+ baseOptions = configuration.baseOptions;
3558
+ }
3559
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3560
+ const localVarHeaderParameter = {};
3561
+ const localVarQueryParameter = {};
3562
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3563
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3564
+ if (clusterId !== void 0) {
3565
+ localVarQueryParameter["cluster_id"] = clusterId;
3566
+ }
3567
+ if (deploymentId !== void 0) {
3568
+ localVarQueryParameter["deployment_id"] = deploymentId;
3569
+ }
3570
+ if (kind !== void 0) {
3571
+ localVarQueryParameter["kind"] = kind;
3572
+ }
3573
+ if (name !== void 0) {
3574
+ localVarQueryParameter["name"] = name;
3575
+ }
3576
+ if (page !== void 0) {
3577
+ localVarQueryParameter["page"] = page;
3578
+ }
3579
+ if (perPage !== void 0) {
3580
+ localVarQueryParameter["per_page"] = perPage;
3581
+ }
3582
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3583
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3584
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3585
+ return {
3586
+ url: toPathString(localVarUrlObj),
3587
+ options: localVarRequestOptions
3588
+ };
3589
+ }),
3590
+ /**
3591
+ *
3592
+ * @param {string} id
3593
+ * @param {*} [options] Override http request option.
3594
+ * @throws {RequiredError}
3595
+ */
3596
+ getK8sResource: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3597
+ assertParamExists("getK8sResource", "id", id);
3598
+ const localVarPath = `/api/v2/k8s-resources/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3600
+ let baseOptions;
3601
+ if (configuration) {
3602
+ baseOptions = configuration.baseOptions;
3603
+ }
3604
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3605
+ const localVarHeaderParameter = {};
3606
+ const localVarQueryParameter = {};
3607
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3608
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3609
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3610
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3611
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3612
+ return {
3613
+ url: toPathString(localVarUrlObj),
3614
+ options: localVarRequestOptions
3615
+ };
3616
+ })
3617
+ };
3618
+ };
3619
+ var KubernetesResourcesApiFp = function(configuration) {
3620
+ const localVarAxiosParamCreator = KubernetesResourcesApiAxiosParamCreator(configuration);
3621
+ return {
3622
+ /**
3623
+ *
3624
+ * @param {string | null} [clusterId]
3625
+ * @param {string | null} [deploymentId]
3626
+ * @param {string | null} [kind]
3627
+ * @param {string | null} [name]
3628
+ * @param {number | null} [page]
3629
+ * @param {number | null} [perPage]
3630
+ * @param {*} [options] Override http request option.
3631
+ * @throws {RequiredError}
3632
+ */
3633
+ allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options) {
3634
+ return __async(this, null, function* () {
3635
+ var _a2, _b, _c;
3636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options);
3637
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3638
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesResourcesApi.allK8sResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3639
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3640
+ });
3641
+ },
3642
+ /**
3643
+ *
3644
+ * @param {string} id
3645
+ * @param {*} [options] Override http request option.
3646
+ * @throws {RequiredError}
3647
+ */
3648
+ getK8sResource(id, options) {
3649
+ return __async(this, null, function* () {
3650
+ var _a2, _b, _c;
3651
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getK8sResource(id, options);
3652
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3653
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesResourcesApi.getK8sResource"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3655
+ });
3656
+ }
3657
+ };
3658
+ };
3659
+ var KubernetesResourcesApiFactory = function(configuration, basePath, axios) {
3660
+ const localVarFp = KubernetesResourcesApiFp(configuration);
3661
+ return {
3662
+ /**
3663
+ *
3664
+ * @param {KubernetesResourcesApiAllK8sResourcesRequest} requestParameters Request parameters.
3665
+ * @param {*} [options] Override http request option.
3666
+ * @throws {RequiredError}
3667
+ */
3668
+ allK8sResources(requestParameters = {}, options) {
3669
+ return localVarFp.allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3670
+ },
3671
+ /**
3672
+ *
3673
+ * @param {KubernetesResourcesApiGetK8sResourceRequest} requestParameters Request parameters.
3674
+ * @param {*} [options] Override http request option.
3675
+ * @throws {RequiredError}
3676
+ */
3677
+ getK8sResource(requestParameters, options) {
3678
+ return localVarFp.getK8sResource(requestParameters.id, options).then((request) => request(axios, basePath));
3679
+ }
3680
+ };
3681
+ };
3682
+ var KubernetesResourcesApi = class extends BaseAPI {
3683
+ /**
3684
+ *
3685
+ * @param {KubernetesResourcesApiAllK8sResourcesRequest} requestParameters Request parameters.
3686
+ * @param {*} [options] Override http request option.
3687
+ * @throws {RequiredError}
3688
+ * @memberof KubernetesResourcesApi
3689
+ */
3690
+ allK8sResources(requestParameters = {}, options) {
3691
+ return KubernetesResourcesApiFp(this.configuration).allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
3692
+ }
3693
+ /**
3694
+ *
3695
+ * @param {KubernetesResourcesApiGetK8sResourceRequest} requestParameters Request parameters.
3696
+ * @param {*} [options] Override http request option.
3697
+ * @throws {RequiredError}
3698
+ * @memberof KubernetesResourcesApi
3699
+ */
3700
+ getK8sResource(requestParameters, options) {
3701
+ return KubernetesResourcesApiFp(this.configuration).getK8sResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3702
+ }
3703
+ };
3704
+ var SecretsApiAxiosParamCreator = function(configuration) {
3705
+ return {
3706
+ /**
3707
+ *
3708
+ * @param {string | null} [envId]
3709
+ * @param {string | null} [collection]
3710
+ * @param {string | null} [name]
3711
+ * @param {number | null} [page]
3712
+ * @param {number | null} [perPage]
3713
+ * @param {*} [options] Override http request option.
3714
+ * @throws {RequiredError}
3715
+ */
3716
+ allSecrets: (_0, _1, _2, _3, _4, ..._5) => __async(this, [_0, _1, _2, _3, _4, ..._5], function* (envId, collection, name, page, perPage, options = {}) {
3717
+ const localVarPath = `/api/v2/secrets`;
3718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3719
+ let baseOptions;
3720
+ if (configuration) {
3721
+ baseOptions = configuration.baseOptions;
3722
+ }
3723
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3724
+ const localVarHeaderParameter = {};
3725
+ const localVarQueryParameter = {};
3726
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3727
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3728
+ if (envId !== void 0) {
3729
+ localVarQueryParameter["env_id"] = envId;
3730
+ }
3731
+ if (collection !== void 0) {
3732
+ localVarQueryParameter["collection"] = collection;
3733
+ }
3734
+ if (name !== void 0) {
3735
+ localVarQueryParameter["name"] = name;
3736
+ }
3737
+ if (page !== void 0) {
3738
+ localVarQueryParameter["page"] = page;
3739
+ }
3740
+ if (perPage !== void 0) {
3741
+ localVarQueryParameter["per_page"] = perPage;
3742
+ }
3743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3745
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3746
+ return {
3747
+ url: toPathString(localVarUrlObj),
3748
+ options: localVarRequestOptions
3749
+ };
3750
+ }),
3751
+ /**
3752
+ *
3753
+ * @param {NewSecret} newSecret
3754
+ * @param {*} [options] Override http request option.
3755
+ * @throws {RequiredError}
3756
+ */
3757
+ createSecret: (_0, ..._1) => __async(this, [_0, ..._1], function* (newSecret, options = {}) {
3758
+ assertParamExists("createSecret", "newSecret", newSecret);
3759
+ const localVarPath = `/api/v2/secrets`;
3760
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3761
+ let baseOptions;
3762
+ if (configuration) {
3763
+ baseOptions = configuration.baseOptions;
3764
+ }
3765
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
3766
+ const localVarHeaderParameter = {};
3767
+ const localVarQueryParameter = {};
3768
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3769
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3770
+ localVarHeaderParameter["Content-Type"] = "application/json";
3771
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3772
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3773
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3774
+ localVarRequestOptions.data = serializeDataIfNeeded(newSecret, localVarRequestOptions, configuration);
3775
+ return {
3776
+ url: toPathString(localVarUrlObj),
3777
+ options: localVarRequestOptions
3778
+ };
3779
+ }),
3780
+ /**
3781
+ *
3782
+ * @param {string} id
3783
+ * @param {*} [options] Override http request option.
3784
+ * @throws {RequiredError}
3785
+ */
3786
+ deleteSecret: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3787
+ assertParamExists("deleteSecret", "id", id);
3788
+ const localVarPath = `/api/v2/secrets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3789
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3790
+ let baseOptions;
3791
+ if (configuration) {
3792
+ baseOptions = configuration.baseOptions;
3793
+ }
3794
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
3795
+ const localVarHeaderParameter = {};
3796
+ const localVarQueryParameter = {};
3797
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3798
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3799
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3801
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3802
+ return {
3803
+ url: toPathString(localVarUrlObj),
3804
+ options: localVarRequestOptions
3805
+ };
3806
+ }),
3807
+ /**
3808
+ *
3809
+ * @param {string} id
3810
+ * @param {*} [options] Override http request option.
3811
+ * @throws {RequiredError}
3812
+ */
3813
+ getSecret: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
3814
+ assertParamExists("getSecret", "id", id);
3815
+ const localVarPath = `/api/v2/secrets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3817
+ let baseOptions;
3818
+ if (configuration) {
3819
+ baseOptions = configuration.baseOptions;
3820
+ }
3821
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
3822
+ const localVarHeaderParameter = {};
3823
+ const localVarQueryParameter = {};
3824
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3825
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3828
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3829
+ return {
3830
+ url: toPathString(localVarUrlObj),
3831
+ options: localVarRequestOptions
3832
+ };
3833
+ }),
3834
+ /**
3835
+ *
3836
+ * @param {string} id
3837
+ * @param {UpdateSecret} updateSecret
3838
+ * @param {*} [options] Override http request option.
3839
+ * @throws {RequiredError}
3840
+ */
3841
+ updateSecret: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateSecret, options = {}) {
3842
+ assertParamExists("updateSecret", "id", id);
3843
+ assertParamExists("updateSecret", "updateSecret", updateSecret);
3844
+ const localVarPath = `/api/v2/secrets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3845
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3846
+ let baseOptions;
3847
+ if (configuration) {
3848
+ baseOptions = configuration.baseOptions;
3849
+ }
3850
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
3851
+ const localVarHeaderParameter = {};
3852
+ const localVarQueryParameter = {};
3853
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3854
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
3855
+ localVarHeaderParameter["Content-Type"] = "application/json";
3856
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3857
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3858
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3859
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSecret, localVarRequestOptions, configuration);
3860
+ return {
3861
+ url: toPathString(localVarUrlObj),
3862
+ options: localVarRequestOptions
3863
+ };
3864
+ })
3865
+ };
3866
+ };
3867
+ var SecretsApiFp = function(configuration) {
3868
+ const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration);
3869
+ return {
3870
+ /**
3871
+ *
3872
+ * @param {string | null} [envId]
3873
+ * @param {string | null} [collection]
3874
+ * @param {string | null} [name]
3875
+ * @param {number | null} [page]
3876
+ * @param {number | null} [perPage]
3877
+ * @param {*} [options] Override http request option.
3878
+ * @throws {RequiredError}
3879
+ */
3880
+ allSecrets(envId, collection, name, page, perPage, options) {
3881
+ return __async(this, null, function* () {
3882
+ var _a2, _b, _c;
3883
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name, page, perPage, options);
3884
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3885
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.allSecrets"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3887
+ });
3888
+ },
3889
+ /**
3890
+ *
3891
+ * @param {NewSecret} newSecret
3892
+ * @param {*} [options] Override http request option.
3893
+ * @throws {RequiredError}
3894
+ */
3895
+ createSecret(newSecret, options) {
3896
+ return __async(this, null, function* () {
3897
+ var _a2, _b, _c;
3898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSecret(newSecret, options);
3899
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3900
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.createSecret"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3901
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3902
+ });
3903
+ },
3904
+ /**
3905
+ *
3906
+ * @param {string} id
3907
+ * @param {*} [options] Override http request option.
3908
+ * @throws {RequiredError}
3909
+ */
3910
+ deleteSecret(id, options) {
3911
+ return __async(this, null, function* () {
3912
+ var _a2, _b, _c;
3913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSecret(id, options);
3914
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3915
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.deleteSecret"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3916
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3917
+ });
3918
+ },
3919
+ /**
3920
+ *
3921
+ * @param {string} id
3922
+ * @param {*} [options] Override http request option.
3923
+ * @throws {RequiredError}
3924
+ */
3925
+ getSecret(id, options) {
3926
+ return __async(this, null, function* () {
3927
+ var _a2, _b, _c;
3928
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSecret(id, options);
3929
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3930
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.getSecret"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3932
+ });
3933
+ },
3934
+ /**
3935
+ *
3936
+ * @param {string} id
3937
+ * @param {UpdateSecret} updateSecret
3938
+ * @param {*} [options] Override http request option.
3939
+ * @throws {RequiredError}
3940
+ */
3941
+ updateSecret(id, updateSecret, options) {
3942
+ return __async(this, null, function* () {
3943
+ var _a2, _b, _c;
3944
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSecret(id, updateSecret, options);
3945
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
3946
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.updateSecret"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
3947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3948
+ });
3949
+ }
3950
+ };
3951
+ };
3952
+ var SecretsApiFactory = function(configuration, basePath, axios) {
3953
+ const localVarFp = SecretsApiFp(configuration);
3954
+ return {
3955
+ /**
3956
+ *
3957
+ * @param {SecretsApiAllSecretsRequest} requestParameters Request parameters.
3958
+ * @param {*} [options] Override http request option.
3959
+ * @throws {RequiredError}
3960
+ */
3961
+ allSecrets(requestParameters = {}, options) {
3962
+ return localVarFp.allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3963
+ },
3964
+ /**
3965
+ *
3966
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
3967
+ * @param {*} [options] Override http request option.
3968
+ * @throws {RequiredError}
3969
+ */
3970
+ createSecret(requestParameters, options) {
3971
+ return localVarFp.createSecret(requestParameters.newSecret, options).then((request) => request(axios, basePath));
3972
+ },
3973
+ /**
3974
+ *
3975
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
3976
+ * @param {*} [options] Override http request option.
3977
+ * @throws {RequiredError}
3978
+ */
3979
+ deleteSecret(requestParameters, options) {
3980
+ return localVarFp.deleteSecret(requestParameters.id, options).then((request) => request(axios, basePath));
3981
+ },
3982
+ /**
3983
+ *
3984
+ * @param {SecretsApiGetSecretRequest} requestParameters Request parameters.
3985
+ * @param {*} [options] Override http request option.
3986
+ * @throws {RequiredError}
3987
+ */
3988
+ getSecret(requestParameters, options) {
3989
+ return localVarFp.getSecret(requestParameters.id, options).then((request) => request(axios, basePath));
3990
+ },
3991
+ /**
3992
+ *
3993
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
3994
+ * @param {*} [options] Override http request option.
3995
+ * @throws {RequiredError}
3996
+ */
3997
+ updateSecret(requestParameters, options) {
3998
+ return localVarFp.updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(axios, basePath));
3999
+ }
4000
+ };
4001
+ };
4002
+ var SecretsApi = class extends BaseAPI {
4003
+ /**
4004
+ *
4005
+ * @param {SecretsApiAllSecretsRequest} requestParameters Request parameters.
4006
+ * @param {*} [options] Override http request option.
4007
+ * @throws {RequiredError}
4008
+ * @memberof SecretsApi
4009
+ */
4010
+ allSecrets(requestParameters = {}, options) {
4011
+ return SecretsApiFp(this.configuration).allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
4012
+ }
4013
+ /**
4014
+ *
4015
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ * @memberof SecretsApi
4019
+ */
4020
+ createSecret(requestParameters, options) {
4021
+ return SecretsApiFp(this.configuration).createSecret(requestParameters.newSecret, options).then((request) => request(this.axios, this.basePath));
4022
+ }
4023
+ /**
4024
+ *
4025
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
4026
+ * @param {*} [options] Override http request option.
4027
+ * @throws {RequiredError}
4028
+ * @memberof SecretsApi
4029
+ */
4030
+ deleteSecret(requestParameters, options) {
4031
+ return SecretsApiFp(this.configuration).deleteSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4032
+ }
4033
+ /**
4034
+ *
4035
+ * @param {SecretsApiGetSecretRequest} requestParameters Request parameters.
4036
+ * @param {*} [options] Override http request option.
4037
+ * @throws {RequiredError}
4038
+ * @memberof SecretsApi
4039
+ */
4040
+ getSecret(requestParameters, options) {
4041
+ return SecretsApiFp(this.configuration).getSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4042
+ }
4043
+ /**
4044
+ *
4045
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
4046
+ * @param {*} [options] Override http request option.
4047
+ * @throws {RequiredError}
4048
+ * @memberof SecretsApi
4049
+ */
4050
+ updateSecret(requestParameters, options) {
4051
+ return SecretsApiFp(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(this.axios, this.basePath));
4052
+ }
4053
+ };
4054
+ var ServerApiAxiosParamCreator = function(configuration) {
4055
+ return {
4056
+ /**
4057
+ *
4058
+ * @param {*} [options] Override http request option.
4059
+ * @throws {RequiredError}
4060
+ */
4061
+ getServerInfo: (..._0) => __async(this, [..._0], function* (options = {}) {
4062
+ const localVarPath = `/api/v2/server`;
4063
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4064
+ let baseOptions;
4065
+ if (configuration) {
4066
+ baseOptions = configuration.baseOptions;
4067
+ }
4068
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
4069
+ const localVarHeaderParameter = {};
4070
+ const localVarQueryParameter = {};
4071
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4072
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4075
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4076
+ return {
4077
+ url: toPathString(localVarUrlObj),
4078
+ options: localVarRequestOptions
4079
+ };
4080
+ })
4081
+ };
4082
+ };
4083
+ var ServerApiFp = function(configuration) {
4084
+ const localVarAxiosParamCreator = ServerApiAxiosParamCreator(configuration);
4085
+ return {
4086
+ /**
4087
+ *
4088
+ * @param {*} [options] Override http request option.
4089
+ * @throws {RequiredError}
4090
+ */
4091
+ getServerInfo(options) {
4092
+ return __async(this, null, function* () {
4093
+ var _a2, _b, _c;
4094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getServerInfo(options);
4095
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4096
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["ServerApi.getServerInfo"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4098
+ });
4099
+ }
4100
+ };
4101
+ };
4102
+ var ServerApiFactory = function(configuration, basePath, axios) {
4103
+ const localVarFp = ServerApiFp(configuration);
4104
+ return {
4105
+ /**
4106
+ *
4107
+ * @param {*} [options] Override http request option.
4108
+ * @throws {RequiredError}
4109
+ */
4110
+ getServerInfo(options) {
4111
+ return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
4112
+ }
4113
+ };
4114
+ };
4115
+ var ServerApi = class extends BaseAPI {
4116
+ /**
4117
+ *
4118
+ * @param {*} [options] Override http request option.
4119
+ * @throws {RequiredError}
4120
+ * @memberof ServerApi
4121
+ */
4122
+ getServerInfo(options) {
4123
+ return ServerApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
4124
+ }
4125
+ };
4126
+ var UserTokensApiAxiosParamCreator = function(configuration) {
4127
+ return {
4128
+ /**
4129
+ *
4130
+ * @param {string | null} [userId]
4131
+ * @param {number | null} [page]
4132
+ * @param {number | null} [perPage]
4133
+ * @param {*} [options] Override http request option.
4134
+ * @throws {RequiredError}
4135
+ */
4136
+ allUserTokens: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (userId, page, perPage, options = {}) {
4137
+ const localVarPath = `/api/v2/user-tokens`;
4138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4139
+ let baseOptions;
4140
+ if (configuration) {
4141
+ baseOptions = configuration.baseOptions;
4142
+ }
4143
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
4144
+ const localVarHeaderParameter = {};
4145
+ const localVarQueryParameter = {};
4146
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4147
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4148
+ if (userId !== void 0) {
4149
+ localVarQueryParameter["user_id"] = userId;
4150
+ }
4151
+ if (page !== void 0) {
4152
+ localVarQueryParameter["page"] = page;
4153
+ }
4154
+ if (perPage !== void 0) {
4155
+ localVarQueryParameter["per_page"] = perPage;
4156
+ }
4157
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4159
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4160
+ return {
4161
+ url: toPathString(localVarUrlObj),
4162
+ options: localVarRequestOptions
4163
+ };
4164
+ }),
4165
+ /**
4166
+ *
4167
+ * @param {CreateUserToken} createUserToken
4168
+ * @param {*} [options] Override http request option.
4169
+ * @throws {RequiredError}
4170
+ */
4171
+ createUserToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (createUserToken, options = {}) {
4172
+ assertParamExists("createUserToken", "createUserToken", createUserToken);
4173
+ const localVarPath = `/api/v2/user-tokens`;
4174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4175
+ let baseOptions;
4176
+ if (configuration) {
4177
+ baseOptions = configuration.baseOptions;
4178
+ }
4179
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
4180
+ const localVarHeaderParameter = {};
4181
+ const localVarQueryParameter = {};
4182
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4183
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4184
+ localVarHeaderParameter["Content-Type"] = "application/json";
4185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4187
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4188
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserToken, localVarRequestOptions, configuration);
4189
+ return {
4190
+ url: toPathString(localVarUrlObj),
4191
+ options: localVarRequestOptions
4192
+ };
4193
+ }),
4194
+ /**
4195
+ *
4196
+ * @param {string} id
4197
+ * @param {*} [options] Override http request option.
4198
+ * @throws {RequiredError}
4199
+ */
4200
+ deleteUserToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
4201
+ assertParamExists("deleteUserToken", "id", id);
4202
+ const localVarPath = `/api/v2/user-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
4203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4204
+ let baseOptions;
4205
+ if (configuration) {
4206
+ baseOptions = configuration.baseOptions;
4207
+ }
4208
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
4209
+ const localVarHeaderParameter = {};
4210
+ const localVarQueryParameter = {};
4211
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4212
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4215
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4216
+ return {
4217
+ url: toPathString(localVarUrlObj),
4218
+ options: localVarRequestOptions
4219
+ };
4220
+ }),
4221
+ /**
4222
+ *
4223
+ * @param {string} id
4224
+ * @param {*} [options] Override http request option.
4225
+ * @throws {RequiredError}
4226
+ */
4227
+ getUserToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
4228
+ assertParamExists("getUserToken", "id", id);
4229
+ const localVarPath = `/api/v2/user-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
4230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4231
+ let baseOptions;
4232
+ if (configuration) {
4233
+ baseOptions = configuration.baseOptions;
4234
+ }
4235
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
4236
+ const localVarHeaderParameter = {};
4237
+ const localVarQueryParameter = {};
4238
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4239
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4242
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4243
+ return {
4244
+ url: toPathString(localVarUrlObj),
4245
+ options: localVarRequestOptions
4246
+ };
4247
+ })
4248
+ };
4249
+ };
4250
+ var UserTokensApiFp = function(configuration) {
4251
+ const localVarAxiosParamCreator = UserTokensApiAxiosParamCreator(configuration);
4252
+ return {
4253
+ /**
4254
+ *
4255
+ * @param {string | null} [userId]
4256
+ * @param {number | null} [page]
4257
+ * @param {number | null} [perPage]
4258
+ * @param {*} [options] Override http request option.
4259
+ * @throws {RequiredError}
4260
+ */
4261
+ allUserTokens(userId, page, perPage, options) {
4262
+ return __async(this, null, function* () {
4263
+ var _a2, _b, _c;
4264
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId, page, perPage, options);
4265
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4266
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.allUserTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4267
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4268
+ });
4269
+ },
4270
+ /**
4271
+ *
4272
+ * @param {CreateUserToken} createUserToken
4273
+ * @param {*} [options] Override http request option.
4274
+ * @throws {RequiredError}
4275
+ */
4276
+ createUserToken(createUserToken, options) {
4277
+ return __async(this, null, function* () {
4278
+ var _a2, _b, _c;
4279
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserToken(createUserToken, options);
4280
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4281
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.createUserToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4283
+ });
4284
+ },
4285
+ /**
4286
+ *
4287
+ * @param {string} id
4288
+ * @param {*} [options] Override http request option.
4289
+ * @throws {RequiredError}
4290
+ */
4291
+ deleteUserToken(id, options) {
4292
+ return __async(this, null, function* () {
4293
+ var _a2, _b, _c;
4294
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserToken(id, options);
4295
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4296
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.deleteUserToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4298
+ });
4299
+ },
4300
+ /**
4301
+ *
4302
+ * @param {string} id
4303
+ * @param {*} [options] Override http request option.
4304
+ * @throws {RequiredError}
4305
+ */
4306
+ getUserToken(id, options) {
4307
+ return __async(this, null, function* () {
4308
+ var _a2, _b, _c;
4309
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserToken(id, options);
4310
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4311
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.getUserToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4312
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4313
+ });
4314
+ }
4315
+ };
4316
+ };
4317
+ var UserTokensApiFactory = function(configuration, basePath, axios) {
4318
+ const localVarFp = UserTokensApiFp(configuration);
4319
+ return {
4320
+ /**
4321
+ *
4322
+ * @param {UserTokensApiAllUserTokensRequest} requestParameters Request parameters.
4323
+ * @param {*} [options] Override http request option.
4324
+ * @throws {RequiredError}
4325
+ */
4326
+ allUserTokens(requestParameters = {}, options) {
4327
+ return localVarFp.allUserTokens(requestParameters.userId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
4328
+ },
4329
+ /**
4330
+ *
4331
+ * @param {UserTokensApiCreateUserTokenRequest} requestParameters Request parameters.
4332
+ * @param {*} [options] Override http request option.
4333
+ * @throws {RequiredError}
4334
+ */
4335
+ createUserToken(requestParameters, options) {
4336
+ return localVarFp.createUserToken(requestParameters.createUserToken, options).then((request) => request(axios, basePath));
4337
+ },
4338
+ /**
4339
+ *
4340
+ * @param {UserTokensApiDeleteUserTokenRequest} requestParameters Request parameters.
4341
+ * @param {*} [options] Override http request option.
4342
+ * @throws {RequiredError}
4343
+ */
4344
+ deleteUserToken(requestParameters, options) {
4345
+ return localVarFp.deleteUserToken(requestParameters.id, options).then((request) => request(axios, basePath));
4346
+ },
4347
+ /**
4348
+ *
4349
+ * @param {UserTokensApiGetUserTokenRequest} requestParameters Request parameters.
4350
+ * @param {*} [options] Override http request option.
4351
+ * @throws {RequiredError}
4352
+ */
4353
+ getUserToken(requestParameters, options) {
4354
+ return localVarFp.getUserToken(requestParameters.id, options).then((request) => request(axios, basePath));
4355
+ }
4356
+ };
4357
+ };
4358
+ var UserTokensApi = class extends BaseAPI {
4359
+ /**
4360
+ *
4361
+ * @param {UserTokensApiAllUserTokensRequest} requestParameters Request parameters.
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ * @memberof UserTokensApi
4365
+ */
4366
+ allUserTokens(requestParameters = {}, options) {
4367
+ return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
4368
+ }
4369
+ /**
4370
+ *
4371
+ * @param {UserTokensApiCreateUserTokenRequest} requestParameters Request parameters.
4372
+ * @param {*} [options] Override http request option.
4373
+ * @throws {RequiredError}
4374
+ * @memberof UserTokensApi
4375
+ */
4376
+ createUserToken(requestParameters, options) {
4377
+ return UserTokensApiFp(this.configuration).createUserToken(requestParameters.createUserToken, options).then((request) => request(this.axios, this.basePath));
4378
+ }
4379
+ /**
4380
+ *
4381
+ * @param {UserTokensApiDeleteUserTokenRequest} requestParameters Request parameters.
4382
+ * @param {*} [options] Override http request option.
4383
+ * @throws {RequiredError}
4384
+ * @memberof UserTokensApi
4385
+ */
4386
+ deleteUserToken(requestParameters, options) {
4387
+ return UserTokensApiFp(this.configuration).deleteUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4388
+ }
4389
+ /**
4390
+ *
4391
+ * @param {UserTokensApiGetUserTokenRequest} requestParameters Request parameters.
4392
+ * @param {*} [options] Override http request option.
4393
+ * @throws {RequiredError}
4394
+ * @memberof UserTokensApi
4395
+ */
4396
+ getUserToken(requestParameters, options) {
4397
+ return UserTokensApiFp(this.configuration).getUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4398
+ }
4399
+ };
4400
+ var UsersApiAxiosParamCreator = function(configuration) {
4401
+ return {
4402
+ /**
4403
+ *
4404
+ * @param {string | null} [displayName]
4405
+ * @param {string | null} [email]
4406
+ * @param {boolean | null} [isActive]
4407
+ * @param {number | null} [page]
4408
+ * @param {number | null} [perPage]
4409
+ * @param {*} [options] Override http request option.
4410
+ * @throws {RequiredError}
4411
+ */
4412
+ allUsers: (_0, _1, _2, _3, _4, ..._5) => __async(this, [_0, _1, _2, _3, _4, ..._5], function* (displayName, email, isActive, page, perPage, options = {}) {
4413
+ const localVarPath = `/api/v2/users`;
4414
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4415
+ let baseOptions;
4416
+ if (configuration) {
4417
+ baseOptions = configuration.baseOptions;
4418
+ }
4419
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
4420
+ const localVarHeaderParameter = {};
4421
+ const localVarQueryParameter = {};
4422
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4423
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4424
+ if (displayName !== void 0) {
4425
+ localVarQueryParameter["display_name"] = displayName;
4426
+ }
4427
+ if (email !== void 0) {
4428
+ localVarQueryParameter["email"] = email;
4429
+ }
4430
+ if (isActive !== void 0) {
4431
+ localVarQueryParameter["is_active"] = isActive;
4432
+ }
4433
+ if (page !== void 0) {
4434
+ localVarQueryParameter["page"] = page;
4435
+ }
4436
+ if (perPage !== void 0) {
4437
+ localVarQueryParameter["per_page"] = perPage;
4438
+ }
4439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4441
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4442
+ return {
4443
+ url: toPathString(localVarUrlObj),
4444
+ options: localVarRequestOptions
4445
+ };
4446
+ }),
4447
+ /**
4448
+ *
4449
+ * @param {string} id
4450
+ * @param {*} [options] Override http request option.
4451
+ * @throws {RequiredError}
4452
+ */
4453
+ getUser: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
4454
+ assertParamExists("getUser", "id", id);
4455
+ const localVarPath = `/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
4456
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4457
+ let baseOptions;
4458
+ if (configuration) {
4459
+ baseOptions = configuration.baseOptions;
4460
+ }
4461
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
4462
+ const localVarHeaderParameter = {};
4463
+ const localVarQueryParameter = {};
4464
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4465
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4468
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4469
+ return {
4470
+ url: toPathString(localVarUrlObj),
4471
+ options: localVarRequestOptions
4472
+ };
4473
+ }),
4474
+ /**
4475
+ *
4476
+ * @param {string} id
4477
+ * @param {UpdateUser} updateUser
4478
+ * @param {*} [options] Override http request option.
4479
+ * @throws {RequiredError}
4480
+ */
4481
+ updateUser: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateUser, options = {}) {
4482
+ assertParamExists("updateUser", "id", id);
4483
+ assertParamExists("updateUser", "updateUser", updateUser);
4484
+ const localVarPath = `/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
4485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4486
+ let baseOptions;
4487
+ if (configuration) {
4488
+ baseOptions = configuration.baseOptions;
4489
+ }
4490
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
4491
+ const localVarHeaderParameter = {};
4492
+ const localVarQueryParameter = {};
4493
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4494
+ yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
4495
+ localVarHeaderParameter["Content-Type"] = "application/json";
4496
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4497
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4498
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4499
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUser, localVarRequestOptions, configuration);
4500
+ return {
4501
+ url: toPathString(localVarUrlObj),
4502
+ options: localVarRequestOptions
4503
+ };
4504
+ })
4505
+ };
4506
+ };
4507
+ var UsersApiFp = function(configuration) {
4508
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
4509
+ return {
4510
+ /**
4511
+ *
4512
+ * @param {string | null} [displayName]
4513
+ * @param {string | null} [email]
4514
+ * @param {boolean | null} [isActive]
4515
+ * @param {number | null} [page]
4516
+ * @param {number | null} [perPage]
4517
+ * @param {*} [options] Override http request option.
4518
+ * @throws {RequiredError}
4519
+ */
4520
+ allUsers(displayName, email, isActive, page, perPage, options) {
4521
+ return __async(this, null, function* () {
4522
+ var _a2, _b, _c;
4523
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive, page, perPage, options);
4524
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4525
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.allUsers"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4526
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4527
+ });
4528
+ },
4529
+ /**
4530
+ *
4531
+ * @param {string} id
4532
+ * @param {*} [options] Override http request option.
4533
+ * @throws {RequiredError}
4534
+ */
4535
+ getUser(id, options) {
4536
+ return __async(this, null, function* () {
4537
+ var _a2, _b, _c;
4538
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
4539
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4540
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.getUser"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4541
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4542
+ });
4543
+ },
4544
+ /**
4545
+ *
4546
+ * @param {string} id
4547
+ * @param {UpdateUser} updateUser
4548
+ * @param {*} [options] Override http request option.
4549
+ * @throws {RequiredError}
4550
+ */
4551
+ updateUser(id, updateUser, options) {
4552
+ return __async(this, null, function* () {
4553
+ var _a2, _b, _c;
4554
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(id, updateUser, options);
4555
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
4556
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.updateUser"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
4557
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4558
+ });
4559
+ }
4560
+ };
4561
+ };
4562
+ var UsersApiFactory = function(configuration, basePath, axios) {
4563
+ const localVarFp = UsersApiFp(configuration);
4564
+ return {
4565
+ /**
4566
+ *
4567
+ * @param {UsersApiAllUsersRequest} requestParameters Request parameters.
4568
+ * @param {*} [options] Override http request option.
4569
+ * @throws {RequiredError}
4570
+ */
4571
+ allUsers(requestParameters = {}, options) {
4572
+ return localVarFp.allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
4573
+ },
4574
+ /**
4575
+ *
4576
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
4577
+ * @param {*} [options] Override http request option.
4578
+ * @throws {RequiredError}
4579
+ */
4580
+ getUser(requestParameters, options) {
4581
+ return localVarFp.getUser(requestParameters.id, options).then((request) => request(axios, basePath));
4582
+ },
4583
+ /**
4584
+ *
4585
+ * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
4586
+ * @param {*} [options] Override http request option.
4587
+ * @throws {RequiredError}
4588
+ */
4589
+ updateUser(requestParameters, options) {
4590
+ return localVarFp.updateUser(requestParameters.id, requestParameters.updateUser, options).then((request) => request(axios, basePath));
4591
+ }
4592
+ };
4593
+ };
4594
+ var UsersApi = class extends BaseAPI {
4595
+ /**
4596
+ *
4597
+ * @param {UsersApiAllUsersRequest} requestParameters Request parameters.
4598
+ * @param {*} [options] Override http request option.
4599
+ * @throws {RequiredError}
4600
+ * @memberof UsersApi
4601
+ */
4602
+ allUsers(requestParameters = {}, options) {
4603
+ return UsersApiFp(this.configuration).allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
4604
+ }
4605
+ /**
4606
+ *
4607
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
4608
+ * @param {*} [options] Override http request option.
4609
+ * @throws {RequiredError}
4610
+ * @memberof UsersApi
4611
+ */
4612
+ getUser(requestParameters, options) {
4613
+ return UsersApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4614
+ }
4615
+ /**
4616
+ *
4617
+ * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
4618
+ * @param {*} [options] Override http request option.
4619
+ * @throws {RequiredError}
4620
+ * @memberof UsersApi
4621
+ */
4622
+ updateUser(requestParameters, options) {
4623
+ return UsersApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUser, options).then((request) => request(this.axios, this.basePath));
4624
+ }
4625
+ };
4626
+
4627
+ // src/configuration.ts
4628
+ var Configuration = class {
4629
+ constructor(param = {}) {
4630
+ this.apiKey = param.apiKey;
4631
+ this.username = param.username;
4632
+ this.password = param.password;
4633
+ this.accessToken = param.accessToken;
4634
+ this.basePath = param.basePath;
4635
+ this.serverIndex = param.serverIndex;
4636
+ this.baseOptions = param.baseOptions;
4637
+ this.formDataCtor = param.formDataCtor;
4638
+ }
4639
+ /**
4640
+ * Check if the given MIME is a JSON MIME.
4641
+ * JSON MIME examples:
4642
+ * application/json
4643
+ * application/json; charset=UTF8
4644
+ * APPLICATION/JSON
4645
+ * application/vnd.company+json
4646
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
4647
+ * @return True if the given MIME is JSON, false otherwise.
4648
+ */
4649
+ isJsonMime(mime) {
4650
+ const jsonMime = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
4651
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json");
4652
+ }
4653
+ };
4654
+ export {
4655
+ AuthenticationApi,
4656
+ AuthenticationApiAxiosParamCreator,
4657
+ AuthenticationApiFactory,
4658
+ AuthenticationApiFp,
4659
+ ChartExtActionEndpoint,
4660
+ ChartExtActionMethod,
4661
+ ChartExtActionUserDeploymentRole,
4662
+ ChartExtCardinality,
4663
+ ChartExtIngressHostnameFormat,
4664
+ ChartExtKindAction,
4665
+ ChartExtKindFeatures,
4666
+ ChartExtKindResourceType,
4667
+ ChartExtKindValuesUi,
4668
+ ChartExtVersionV1Beta1,
4669
+ ChartExtVersionV1Beta2,
4670
+ Configuration,
4671
+ DbEventOperation,
4672
+ DbTable,
4673
+ DeploymentKindsApi,
4674
+ DeploymentKindsApiAxiosParamCreator,
4675
+ DeploymentKindsApiFactory,
4676
+ DeploymentKindsApiFp,
4677
+ DeploymentPermissionsApi,
4678
+ DeploymentPermissionsApiAxiosParamCreator,
4679
+ DeploymentPermissionsApiFactory,
4680
+ DeploymentPermissionsApiFp,
4681
+ DeploymentReportedNoticeLevel,
4682
+ DeploymentReportedStatusColor,
4683
+ DeploymentResourceSyncStatus,
4684
+ DeploymentResourceTypesApi,
4685
+ DeploymentResourceTypesApiAxiosParamCreator,
4686
+ DeploymentResourceTypesApiFactory,
4687
+ DeploymentResourceTypesApiFp,
4688
+ DeploymentResourcesApi,
4689
+ DeploymentResourcesApiAxiosParamCreator,
4690
+ DeploymentResourcesApiFactory,
4691
+ DeploymentResourcesApiFp,
4692
+ DeploymentStatus,
4693
+ DeploymentTaskStatus,
4694
+ DeploymentTasksApi,
4695
+ DeploymentTasksApiAxiosParamCreator,
4696
+ DeploymentTasksApiFactory,
4697
+ DeploymentTasksApiFp,
4698
+ DeploymentsApi,
4699
+ DeploymentsApiAxiosParamCreator,
4700
+ DeploymentsApiFactory,
4701
+ DeploymentsApiFp,
4702
+ EnvUserPermissionsApi,
4703
+ EnvUserPermissionsApiAxiosParamCreator,
4704
+ EnvUserPermissionsApiFactory,
4705
+ EnvUserPermissionsApiFp,
4706
+ EnvUserRole,
4707
+ EnvsApi,
4708
+ EnvsApiAxiosParamCreator,
4709
+ EnvsApiFactory,
4710
+ EnvsApiFp,
4711
+ HelmChartsApi,
4712
+ HelmChartsApiAxiosParamCreator,
4713
+ HelmChartsApiFactory,
4714
+ HelmChartsApiFp,
4715
+ HelmRegistriesApi,
4716
+ HelmRegistriesApiAxiosParamCreator,
4717
+ HelmRegistriesApiFactory,
4718
+ HelmRegistriesApiFp,
4719
+ HelmTagFormatsApi,
4720
+ HelmTagFormatsApiAxiosParamCreator,
4721
+ HelmTagFormatsApiFactory,
4722
+ HelmTagFormatsApiFp,
4723
+ KubernetesClustersApi,
4724
+ KubernetesClustersApiAxiosParamCreator,
4725
+ KubernetesClustersApiFactory,
4726
+ KubernetesClustersApiFp,
4727
+ KubernetesResourcesApi,
4728
+ KubernetesResourcesApiAxiosParamCreator,
4729
+ KubernetesResourcesApiFactory,
4730
+ KubernetesResourcesApiFp,
4731
+ SecretsApi,
4732
+ SecretsApiAxiosParamCreator,
4733
+ SecretsApiFactory,
4734
+ SecretsApiFp,
4735
+ ServerApi,
4736
+ ServerApiAxiosParamCreator,
4737
+ ServerApiFactory,
4738
+ ServerApiFp,
4739
+ UserDeploymentRole,
4740
+ UserTokensApi,
4741
+ UserTokensApiAxiosParamCreator,
4742
+ UserTokensApiFactory,
4743
+ UserTokensApiFp,
4744
+ UsersApi,
4745
+ UsersApiAxiosParamCreator,
4746
+ UsersApiFactory,
4747
+ UsersApiFp
4748
+ };