kb-cloud-client-typescript 2.3.0-alpha.86 → 2.3.0-alpha.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/adminapi/apis/dms-api.d.ts +111 -8
  2. package/dist/adminapi/apis/dms-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/dms-api.js +116 -20
  4. package/dist/adminapi/apis/dms-api.js.map +1 -1
  5. package/dist/adminapi/apis/engine-api.d.ts +399 -0
  6. package/dist/adminapi/apis/engine-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/engine-api.js +442 -0
  8. package/dist/adminapi/apis/engine-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +111 -8
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +116 -20
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/engine-network-mode-options-inner.d.ts +38 -0
  14. package/dist/adminapi/models/engine-network-mode-options-inner.d.ts.map +1 -0
  15. package/dist/adminapi/models/engine-network-mode-options-inner.js +16 -0
  16. package/dist/adminapi/models/engine-network-mode-options-inner.js.map +1 -0
  17. package/dist/adminapi/models/engine-network-mode-supported.d.ts +34 -0
  18. package/dist/adminapi/models/engine-network-mode-supported.d.ts.map +1 -0
  19. package/dist/adminapi/models/engine-network-mode-supported.js +16 -0
  20. package/dist/adminapi/models/engine-network-mode-supported.js.map +1 -0
  21. package/dist/adminapi/models/environment-engine-option-create.d.ts +37 -0
  22. package/dist/adminapi/models/environment-engine-option-create.d.ts.map +1 -0
  23. package/dist/adminapi/models/environment-engine-option-create.js +16 -0
  24. package/dist/adminapi/models/environment-engine-option-create.js.map +1 -0
  25. package/dist/adminapi/models/environment-engine-option-update.d.ts +25 -0
  26. package/dist/adminapi/models/environment-engine-option-update.d.ts.map +1 -0
  27. package/dist/adminapi/models/environment-engine-option-update.js +16 -0
  28. package/dist/adminapi/models/environment-engine-option-update.js.map +1 -0
  29. package/dist/adminapi/models/environment-engine-option.d.ts +67 -0
  30. package/dist/adminapi/models/environment-engine-option.d.ts.map +1 -0
  31. package/dist/adminapi/models/environment-engine-option.js +16 -0
  32. package/dist/adminapi/models/environment-engine-option.js.map +1 -0
  33. package/dist/adminapi/models/index.d.ts +5 -0
  34. package/dist/adminapi/models/index.d.ts.map +1 -1
  35. package/dist/adminapi/models/index.js +5 -0
  36. package/dist/adminapi/models/index.js.map +1 -1
  37. package/dist/openapi/apis/dms-api.d.ts +111 -8
  38. package/dist/openapi/apis/dms-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/dms-api.js +116 -20
  40. package/dist/openapi/apis/dms-api.js.map +1 -1
  41. package/dist/openapi/apis/engine-api.d.ts +72 -0
  42. package/dist/openapi/apis/engine-api.d.ts.map +1 -1
  43. package/dist/openapi/apis/engine-api.js +80 -0
  44. package/dist/openapi/apis/engine-api.js.map +1 -1
  45. package/dist/openapi/apis/shared-api.d.ts +111 -8
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +116 -20
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/engine-network-mode-supported.d.ts +34 -0
  50. package/dist/openapi/models/engine-network-mode-supported.d.ts.map +1 -0
  51. package/dist/openapi/models/engine-network-mode-supported.js +16 -0
  52. package/dist/openapi/models/engine-network-mode-supported.js.map +1 -0
  53. package/dist/openapi/models/index.d.ts +1 -0
  54. package/dist/openapi/models/index.d.ts.map +1 -1
  55. package/dist/openapi/models/index.js +1 -0
  56. package/dist/openapi/models/index.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/sdk/adminapi/.openapi-generator/FILES +5 -0
  59. package/src/sdk/adminapi/apis/dms-api.ts +192 -20
  60. package/src/sdk/adminapi/apis/engine-api.ts +694 -0
  61. package/src/sdk/adminapi/apis/shared-api.ts +192 -20
  62. package/src/sdk/adminapi/models/engine-network-mode-options-inner.ts +45 -0
  63. package/src/sdk/adminapi/models/engine-network-mode-supported.ts +39 -0
  64. package/src/sdk/adminapi/models/environment-engine-option-create.ts +42 -0
  65. package/src/sdk/adminapi/models/environment-engine-option-update.ts +30 -0
  66. package/src/sdk/adminapi/models/environment-engine-option.ts +72 -0
  67. package/src/sdk/adminapi/models/index.ts +5 -0
  68. package/src/sdk/adminapi.yaml +363 -0
  69. package/src/sdk/openapi/.openapi-generator/FILES +1 -0
  70. package/src/sdk/openapi/apis/dms-api.ts +192 -20
  71. package/src/sdk/openapi/apis/engine-api.ts +128 -0
  72. package/src/sdk/openapi/apis/shared-api.ts +192 -20
  73. package/src/sdk/openapi/models/engine-network-mode-supported.ts +39 -0
  74. package/src/sdk/openapi/models/index.ts +1 -0
  75. package/src/sdk/openapi.yaml +110 -0
@@ -198,6 +198,42 @@ const EngineApiAxiosParamCreator = function (configuration) {
198
198
  options: localVarRequestOptions,
199
199
  };
200
200
  },
201
+ /**
202
+ *
203
+ * @summary Create environment engine option
204
+ * @param {string} environmentName environment name
205
+ * @param {EnvironmentEngineOptionCreate} body
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ createEnvironmentEngineOption: async (environmentName, body, options = {}) => {
210
+ // verify required parameter 'environmentName' is not null or undefined
211
+ (0, common_1.assertParamExists)('createEnvironmentEngineOption', 'environmentName', environmentName);
212
+ // verify required parameter 'body' is not null or undefined
213
+ (0, common_1.assertParamExists)('createEnvironmentEngineOption', 'body', body);
214
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineOptions`
215
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ let baseOptions;
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ }
222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
223
+ const localVarHeaderParameter = {};
224
+ const localVarQueryParameter = {};
225
+ // authentication BearerToken required
226
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
227
+ localVarHeaderParameter['Content-Type'] = 'application/json';
228
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
231
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
232
+ return {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ },
201
237
  /**
202
238
  * delete an engine license entity by ID
203
239
  * @summary Delete an engine license entity by ID
@@ -327,6 +363,41 @@ const EngineApiAxiosParamCreator = function (configuration) {
327
363
  options: localVarRequestOptions,
328
364
  };
329
365
  },
366
+ /**
367
+ *
368
+ * @summary Delete environment engine option
369
+ * @param {string} environmentName environment name
370
+ * @param {string} id engine environment engine option id
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ deleteEnvironmentEngineOption: async (environmentName, id, options = {}) => {
375
+ // verify required parameter 'environmentName' is not null or undefined
376
+ (0, common_1.assertParamExists)('deleteEnvironmentEngineOption', 'environmentName', environmentName);
377
+ // verify required parameter 'id' is not null or undefined
378
+ (0, common_1.assertParamExists)('deleteEnvironmentEngineOption', 'id', id);
379
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineOption/{id}`
380
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
381
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
383
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
384
+ let baseOptions;
385
+ if (configuration) {
386
+ baseOptions = configuration.baseOptions;
387
+ }
388
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
389
+ const localVarHeaderParameter = {};
390
+ const localVarQueryParameter = {};
391
+ // authentication BearerToken required
392
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
396
+ return {
397
+ url: (0, common_1.toPathString)(localVarUrlObj),
398
+ options: localVarRequestOptions,
399
+ };
400
+ },
330
401
  /**
331
402
  * Remove a service version from the engine version\'s service_versions list if no running clusters are using it
332
403
  * @summary Disable service version
@@ -473,6 +544,80 @@ const EngineApiAxiosParamCreator = function (configuration) {
473
544
  options: localVarRequestOptions,
474
545
  };
475
546
  },
547
+ /**
548
+ *
549
+ * @summary Get available network modes for all engines from engineOption config
550
+ * @param {string} environmentName environment name
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ getEngineNetworkModeOptions: async (environmentName, options = {}) => {
555
+ // verify required parameter 'environmentName' is not null or undefined
556
+ (0, common_1.assertParamExists)('getEngineNetworkModeOptions', 'environmentName', environmentName);
557
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineNetworkModes/options`
558
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
559
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
560
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
561
+ let baseOptions;
562
+ if (configuration) {
563
+ baseOptions = configuration.baseOptions;
564
+ }
565
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
566
+ const localVarHeaderParameter = {};
567
+ const localVarQueryParameter = {};
568
+ // authentication BearerToken required
569
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
570
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
571
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
573
+ return {
574
+ url: (0, common_1.toPathString)(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ };
577
+ },
578
+ /**
579
+ *
580
+ * @summary Get supported network modes for engine+mode from engineOption config
581
+ * @param {string} environmentName environment name
582
+ * @param {string} engineName engine name
583
+ * @param {string} mode engine mode
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ getEngineNetworkModeSupported: async (environmentName, engineName, mode, options = {}) => {
588
+ // verify required parameter 'environmentName' is not null or undefined
589
+ (0, common_1.assertParamExists)('getEngineNetworkModeSupported', 'environmentName', environmentName);
590
+ // verify required parameter 'engineName' is not null or undefined
591
+ (0, common_1.assertParamExists)('getEngineNetworkModeSupported', 'engineName', engineName);
592
+ // verify required parameter 'mode' is not null or undefined
593
+ (0, common_1.assertParamExists)('getEngineNetworkModeSupported', 'mode', mode);
594
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineNetworkModes/supported`
595
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
597
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
598
+ let baseOptions;
599
+ if (configuration) {
600
+ baseOptions = configuration.baseOptions;
601
+ }
602
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
603
+ const localVarHeaderParameter = {};
604
+ const localVarQueryParameter = {};
605
+ // authentication BearerToken required
606
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
607
+ if (engineName !== undefined) {
608
+ localVarQueryParameter['engineName'] = engineName;
609
+ }
610
+ if (mode !== undefined) {
611
+ localVarQueryParameter['mode'] = mode;
612
+ }
613
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
615
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
616
+ return {
617
+ url: (0, common_1.toPathString)(localVarUrlObj),
618
+ options: localVarRequestOptions,
619
+ };
620
+ },
476
621
  /**
477
622
  * get the progress of uploading image task
478
623
  * @summary get the progress of uploading image task
@@ -820,6 +965,45 @@ const EngineApiAxiosParamCreator = function (configuration) {
820
965
  options: localVarRequestOptions,
821
966
  };
822
967
  },
968
+ /**
969
+ *
970
+ * @summary List environment engine options
971
+ * @param {string} environmentName environment name
972
+ * @param {string} [engineName] filter by engine name
973
+ * @param {string} [mode] filter by engine mode
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ listEnvironmentEngineOptions: async (environmentName, engineName, mode, options = {}) => {
978
+ // verify required parameter 'environmentName' is not null or undefined
979
+ (0, common_1.assertParamExists)('listEnvironmentEngineOptions', 'environmentName', environmentName);
980
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineOptions`
981
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
983
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
984
+ let baseOptions;
985
+ if (configuration) {
986
+ baseOptions = configuration.baseOptions;
987
+ }
988
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
989
+ const localVarHeaderParameter = {};
990
+ const localVarQueryParameter = {};
991
+ // authentication BearerToken required
992
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
993
+ if (engineName !== undefined) {
994
+ localVarQueryParameter['engineName'] = engineName;
995
+ }
996
+ if (mode !== undefined) {
997
+ localVarQueryParameter['mode'] = mode;
998
+ }
999
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1000
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1001
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1002
+ return {
1003
+ url: (0, common_1.toPathString)(localVarUrlObj),
1004
+ options: localVarRequestOptions,
1005
+ };
1006
+ },
823
1007
  /**
824
1008
  * list the service version of the engine
825
1009
  * @summary list the service version of the engine
@@ -1058,6 +1242,46 @@ const EngineApiAxiosParamCreator = function (configuration) {
1058
1242
  options: localVarRequestOptions,
1059
1243
  };
1060
1244
  },
1245
+ /**
1246
+ *
1247
+ * @summary Update environment engine option
1248
+ * @param {string} environmentName environment name
1249
+ * @param {string} id engine environment engine option record id
1250
+ * @param {EnvironmentEngineOptionUpdate} body
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ */
1254
+ updateEnvironmentEngineOption: async (environmentName, id, body, options = {}) => {
1255
+ // verify required parameter 'environmentName' is not null or undefined
1256
+ (0, common_1.assertParamExists)('updateEnvironmentEngineOption', 'environmentName', environmentName);
1257
+ // verify required parameter 'id' is not null or undefined
1258
+ (0, common_1.assertParamExists)('updateEnvironmentEngineOption', 'id', id);
1259
+ // verify required parameter 'body' is not null or undefined
1260
+ (0, common_1.assertParamExists)('updateEnvironmentEngineOption', 'body', body);
1261
+ const localVarPath = `/admin/v1/environments/{environmentName}/engineOption/{id}`
1262
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
1263
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1264
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1265
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1266
+ let baseOptions;
1267
+ if (configuration) {
1268
+ baseOptions = configuration.baseOptions;
1269
+ }
1270
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1271
+ const localVarHeaderParameter = {};
1272
+ const localVarQueryParameter = {};
1273
+ // authentication BearerToken required
1274
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
1275
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1276
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1277
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1278
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1279
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1280
+ return {
1281
+ url: (0, common_1.toPathString)(localVarUrlObj),
1282
+ options: localVarRequestOptions,
1283
+ };
1284
+ },
1061
1285
  };
1062
1286
  };
1063
1287
  exports.EngineApiAxiosParamCreator = EngineApiAxiosParamCreator;
@@ -1141,6 +1365,21 @@ const EngineApiFp = function (configuration) {
1141
1365
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.createEngineVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1142
1366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
1367
  },
1368
+ /**
1369
+ *
1370
+ * @summary Create environment engine option
1371
+ * @param {string} environmentName environment name
1372
+ * @param {EnvironmentEngineOptionCreate} body
1373
+ * @param {*} [options] Override http request option.
1374
+ * @throws {RequiredError}
1375
+ */
1376
+ async createEnvironmentEngineOption(environmentName, body, options) {
1377
+ var _a, _b, _c;
1378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironmentEngineOption(environmentName, body, options);
1379
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1380
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.createEnvironmentEngineOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1381
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1382
+ },
1144
1383
  /**
1145
1384
  * delete an engine license entity by ID
1146
1385
  * @summary Delete an engine license entity by ID
@@ -1198,6 +1437,21 @@ const EngineApiFp = function (configuration) {
1198
1437
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.deleteEngineVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1199
1438
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1200
1439
  },
1440
+ /**
1441
+ *
1442
+ * @summary Delete environment engine option
1443
+ * @param {string} environmentName environment name
1444
+ * @param {string} id engine environment engine option id
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ */
1448
+ async deleteEnvironmentEngineOption(environmentName, id, options) {
1449
+ var _a, _b, _c;
1450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentEngineOption(environmentName, id, options);
1451
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1452
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.deleteEnvironmentEngineOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1453
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1454
+ },
1201
1455
  /**
1202
1456
  * Remove a service version from the engine version\'s service_versions list if no running clusters are using it
1203
1457
  * @summary Disable service version
@@ -1258,6 +1512,36 @@ const EngineApiFp = function (configuration) {
1258
1512
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.getEngineLicenseEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1259
1513
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1260
1514
  },
1515
+ /**
1516
+ *
1517
+ * @summary Get available network modes for all engines from engineOption config
1518
+ * @param {string} environmentName environment name
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ */
1522
+ async getEngineNetworkModeOptions(environmentName, options) {
1523
+ var _a, _b, _c;
1524
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEngineNetworkModeOptions(environmentName, options);
1525
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1526
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.getEngineNetworkModeOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1527
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1528
+ },
1529
+ /**
1530
+ *
1531
+ * @summary Get supported network modes for engine+mode from engineOption config
1532
+ * @param {string} environmentName environment name
1533
+ * @param {string} engineName engine name
1534
+ * @param {string} mode engine mode
1535
+ * @param {*} [options] Override http request option.
1536
+ * @throws {RequiredError}
1537
+ */
1538
+ async getEngineNetworkModeSupported(environmentName, engineName, mode, options) {
1539
+ var _a, _b, _c;
1540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEngineNetworkModeSupported(environmentName, engineName, mode, options);
1541
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1542
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.getEngineNetworkModeSupported']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1543
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1544
+ },
1261
1545
  /**
1262
1546
  * get the progress of uploading image task
1263
1547
  * @summary get the progress of uploading image task
@@ -1400,6 +1684,22 @@ const EngineApiFp = function (configuration) {
1400
1684
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.listEnginesInEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1401
1685
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1402
1686
  },
1687
+ /**
1688
+ *
1689
+ * @summary List environment engine options
1690
+ * @param {string} environmentName environment name
1691
+ * @param {string} [engineName] filter by engine name
1692
+ * @param {string} [mode] filter by engine mode
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ async listEnvironmentEngineOptions(environmentName, engineName, mode, options) {
1697
+ var _a, _b, _c;
1698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentEngineOptions(environmentName, engineName, mode, options);
1699
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1700
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.listEnvironmentEngineOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1701
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1702
+ },
1403
1703
  /**
1404
1704
  * list the service version of the engine
1405
1705
  * @summary list the service version of the engine
@@ -1495,6 +1795,22 @@ const EngineApiFp = function (configuration) {
1495
1795
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.updateEngineResourceConstraint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1496
1796
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1497
1797
  },
1798
+ /**
1799
+ *
1800
+ * @summary Update environment engine option
1801
+ * @param {string} environmentName environment name
1802
+ * @param {string} id engine environment engine option record id
1803
+ * @param {EnvironmentEngineOptionUpdate} body
1804
+ * @param {*} [options] Override http request option.
1805
+ * @throws {RequiredError}
1806
+ */
1807
+ async updateEnvironmentEngineOption(environmentName, id, body, options) {
1808
+ var _a, _b, _c;
1809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnvironmentEngineOption(environmentName, id, body, options);
1810
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1811
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EngineApi.updateEnvironmentEngineOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1812
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1813
+ },
1498
1814
  };
1499
1815
  };
1500
1816
  exports.EngineApiFp = EngineApiFp;
@@ -1555,6 +1871,16 @@ const EngineApiFactory = function (configuration, basePath, axios) {
1555
1871
  createEngineVersion(requestParameters, options) {
1556
1872
  return localVarFp.createEngineVersion(requestParameters.engineVersionCreate, options).then((request) => request(axios, basePath));
1557
1873
  },
1874
+ /**
1875
+ *
1876
+ * @summary Create environment engine option
1877
+ * @param {EngineApiCreateEnvironmentEngineOptionRequest} requestParameters Request parameters.
1878
+ * @param {*} [options] Override http request option.
1879
+ * @throws {RequiredError}
1880
+ */
1881
+ createEnvironmentEngineOption(requestParameters, options) {
1882
+ return localVarFp.createEnvironmentEngineOption(requestParameters.environmentName, requestParameters.body, options).then((request) => request(axios, basePath));
1883
+ },
1558
1884
  /**
1559
1885
  * delete an engine license entity by ID
1560
1886
  * @summary Delete an engine license entity by ID
@@ -1595,6 +1921,16 @@ const EngineApiFactory = function (configuration, basePath, axios) {
1595
1921
  deleteEngineVersion(requestParameters = {}, options) {
1596
1922
  return localVarFp.deleteEngineVersion(requestParameters.engineVersionDelete, options).then((request) => request(axios, basePath));
1597
1923
  },
1924
+ /**
1925
+ *
1926
+ * @summary Delete environment engine option
1927
+ * @param {EngineApiDeleteEnvironmentEngineOptionRequest} requestParameters Request parameters.
1928
+ * @param {*} [options] Override http request option.
1929
+ * @throws {RequiredError}
1930
+ */
1931
+ deleteEnvironmentEngineOption(requestParameters, options) {
1932
+ return localVarFp.deleteEnvironmentEngineOption(requestParameters.environmentName, requestParameters.id, options).then((request) => request(axios, basePath));
1933
+ },
1598
1934
  /**
1599
1935
  * Remove a service version from the engine version\'s service_versions list if no running clusters are using it
1600
1936
  * @summary Disable service version
@@ -1635,6 +1971,26 @@ const EngineApiFactory = function (configuration, basePath, axios) {
1635
1971
  getEngineLicenseEntity(requestParameters, options) {
1636
1972
  return localVarFp.getEngineLicenseEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
1637
1973
  },
1974
+ /**
1975
+ *
1976
+ * @summary Get available network modes for all engines from engineOption config
1977
+ * @param {EngineApiGetEngineNetworkModeOptionsRequest} requestParameters Request parameters.
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ getEngineNetworkModeOptions(requestParameters, options) {
1982
+ return localVarFp.getEngineNetworkModeOptions(requestParameters.environmentName, options).then((request) => request(axios, basePath));
1983
+ },
1984
+ /**
1985
+ *
1986
+ * @summary Get supported network modes for engine+mode from engineOption config
1987
+ * @param {EngineApiGetEngineNetworkModeSupportedRequest} requestParameters Request parameters.
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ getEngineNetworkModeSupported(requestParameters, options) {
1992
+ return localVarFp.getEngineNetworkModeSupported(requestParameters.environmentName, requestParameters.engineName, requestParameters.mode, options).then((request) => request(axios, basePath));
1993
+ },
1638
1994
  /**
1639
1995
  * get the progress of uploading image task
1640
1996
  * @summary get the progress of uploading image task
@@ -1724,6 +2080,16 @@ const EngineApiFactory = function (configuration, basePath, axios) {
1724
2080
  listEnginesInEnv(requestParameters, options) {
1725
2081
  return localVarFp.listEnginesInEnv(requestParameters.environmentName, requestParameters.name, requestParameters.type, requestParameters.version, requestParameters.provider, requestParameters.all, options).then((request) => request(axios, basePath));
1726
2082
  },
2083
+ /**
2084
+ *
2085
+ * @summary List environment engine options
2086
+ * @param {EngineApiListEnvironmentEngineOptionsRequest} requestParameters Request parameters.
2087
+ * @param {*} [options] Override http request option.
2088
+ * @throws {RequiredError}
2089
+ */
2090
+ listEnvironmentEngineOptions(requestParameters, options) {
2091
+ return localVarFp.listEnvironmentEngineOptions(requestParameters.environmentName, requestParameters.engineName, requestParameters.mode, options).then((request) => request(axios, basePath));
2092
+ },
1727
2093
  /**
1728
2094
  * list the service version of the engine
1729
2095
  * @summary list the service version of the engine
@@ -1784,6 +2150,16 @@ const EngineApiFactory = function (configuration, basePath, axios) {
1784
2150
  updateEngineResourceConstraint(requestParameters, options) {
1785
2151
  return localVarFp.updateEngineResourceConstraint(requestParameters.id, requestParameters.resourceConstraintUpdate, options).then((request) => request(axios, basePath));
1786
2152
  },
2153
+ /**
2154
+ *
2155
+ * @summary Update environment engine option
2156
+ * @param {EngineApiUpdateEnvironmentEngineOptionRequest} requestParameters Request parameters.
2157
+ * @param {*} [options] Override http request option.
2158
+ * @throws {RequiredError}
2159
+ */
2160
+ updateEnvironmentEngineOption(requestParameters, options) {
2161
+ return localVarFp.updateEnvironmentEngineOption(requestParameters.environmentName, requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
2162
+ },
1787
2163
  };
1788
2164
  };
1789
2165
  exports.EngineApiFactory = EngineApiFactory;
@@ -1849,6 +2225,17 @@ class EngineApi extends base_1.BaseAPI {
1849
2225
  createEngineVersion(requestParameters, options) {
1850
2226
  return (0, exports.EngineApiFp)(this.configuration).createEngineVersion(requestParameters.engineVersionCreate, options).then((request) => request(this.axios, this.basePath));
1851
2227
  }
2228
+ /**
2229
+ *
2230
+ * @summary Create environment engine option
2231
+ * @param {EngineApiCreateEnvironmentEngineOptionRequest} requestParameters Request parameters.
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ * @memberof EngineApi
2235
+ */
2236
+ createEnvironmentEngineOption(requestParameters, options) {
2237
+ return (0, exports.EngineApiFp)(this.configuration).createEnvironmentEngineOption(requestParameters.environmentName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2238
+ }
1852
2239
  /**
1853
2240
  * delete an engine license entity by ID
1854
2241
  * @summary Delete an engine license entity by ID
@@ -1893,6 +2280,17 @@ class EngineApi extends base_1.BaseAPI {
1893
2280
  deleteEngineVersion(requestParameters = {}, options) {
1894
2281
  return (0, exports.EngineApiFp)(this.configuration).deleteEngineVersion(requestParameters.engineVersionDelete, options).then((request) => request(this.axios, this.basePath));
1895
2282
  }
2283
+ /**
2284
+ *
2285
+ * @summary Delete environment engine option
2286
+ * @param {EngineApiDeleteEnvironmentEngineOptionRequest} requestParameters Request parameters.
2287
+ * @param {*} [options] Override http request option.
2288
+ * @throws {RequiredError}
2289
+ * @memberof EngineApi
2290
+ */
2291
+ deleteEnvironmentEngineOption(requestParameters, options) {
2292
+ return (0, exports.EngineApiFp)(this.configuration).deleteEnvironmentEngineOption(requestParameters.environmentName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2293
+ }
1896
2294
  /**
1897
2295
  * Remove a service version from the engine version\'s service_versions list if no running clusters are using it
1898
2296
  * @summary Disable service version
@@ -1937,6 +2335,28 @@ class EngineApi extends base_1.BaseAPI {
1937
2335
  getEngineLicenseEntity(requestParameters, options) {
1938
2336
  return (0, exports.EngineApiFp)(this.configuration).getEngineLicenseEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
1939
2337
  }
2338
+ /**
2339
+ *
2340
+ * @summary Get available network modes for all engines from engineOption config
2341
+ * @param {EngineApiGetEngineNetworkModeOptionsRequest} requestParameters Request parameters.
2342
+ * @param {*} [options] Override http request option.
2343
+ * @throws {RequiredError}
2344
+ * @memberof EngineApi
2345
+ */
2346
+ getEngineNetworkModeOptions(requestParameters, options) {
2347
+ return (0, exports.EngineApiFp)(this.configuration).getEngineNetworkModeOptions(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
2348
+ }
2349
+ /**
2350
+ *
2351
+ * @summary Get supported network modes for engine+mode from engineOption config
2352
+ * @param {EngineApiGetEngineNetworkModeSupportedRequest} requestParameters Request parameters.
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ * @memberof EngineApi
2356
+ */
2357
+ getEngineNetworkModeSupported(requestParameters, options) {
2358
+ return (0, exports.EngineApiFp)(this.configuration).getEngineNetworkModeSupported(requestParameters.environmentName, requestParameters.engineName, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
2359
+ }
1940
2360
  /**
1941
2361
  * get the progress of uploading image task
1942
2362
  * @summary get the progress of uploading image task
@@ -2035,6 +2455,17 @@ class EngineApi extends base_1.BaseAPI {
2035
2455
  listEnginesInEnv(requestParameters, options) {
2036
2456
  return (0, exports.EngineApiFp)(this.configuration).listEnginesInEnv(requestParameters.environmentName, requestParameters.name, requestParameters.type, requestParameters.version, requestParameters.provider, requestParameters.all, options).then((request) => request(this.axios, this.basePath));
2037
2457
  }
2458
+ /**
2459
+ *
2460
+ * @summary List environment engine options
2461
+ * @param {EngineApiListEnvironmentEngineOptionsRequest} requestParameters Request parameters.
2462
+ * @param {*} [options] Override http request option.
2463
+ * @throws {RequiredError}
2464
+ * @memberof EngineApi
2465
+ */
2466
+ listEnvironmentEngineOptions(requestParameters, options) {
2467
+ return (0, exports.EngineApiFp)(this.configuration).listEnvironmentEngineOptions(requestParameters.environmentName, requestParameters.engineName, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
2468
+ }
2038
2469
  /**
2039
2470
  * list the service version of the engine
2040
2471
  * @summary list the service version of the engine
@@ -2101,6 +2532,17 @@ class EngineApi extends base_1.BaseAPI {
2101
2532
  updateEngineResourceConstraint(requestParameters, options) {
2102
2533
  return (0, exports.EngineApiFp)(this.configuration).updateEngineResourceConstraint(requestParameters.id, requestParameters.resourceConstraintUpdate, options).then((request) => request(this.axios, this.basePath));
2103
2534
  }
2535
+ /**
2536
+ *
2537
+ * @summary Update environment engine option
2538
+ * @param {EngineApiUpdateEnvironmentEngineOptionRequest} requestParameters Request parameters.
2539
+ * @param {*} [options] Override http request option.
2540
+ * @throws {RequiredError}
2541
+ * @memberof EngineApi
2542
+ */
2543
+ updateEnvironmentEngineOption(requestParameters, options) {
2544
+ return (0, exports.EngineApiFp)(this.configuration).updateEnvironmentEngineOption(requestParameters.environmentName, requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2545
+ }
2104
2546
  }
2105
2547
  exports.EngineApi = EngineApi;
2106
2548
  //# sourceMappingURL=engine-api.js.map