kb-cloud-client-typescript 2.3.0-alpha.118 → 2.3.0-alpha.119

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 (126) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +72 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +79 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.d.ts +5 -5
  6. package/dist/adminapi/apis/diagnostics-api.js +4 -4
  7. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +79 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
  12. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  13. package/dist/adminapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history-point.js} +1 -1
  14. package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
  15. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
  16. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  17. package/dist/adminapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history.js} +1 -1
  18. package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
  19. package/dist/adminapi/models/index.d.ts +3 -3
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +3 -3
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/postgresql-database-space.d.ts +0 -12
  24. package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -1
  25. package/dist/adminapi/models/postgresql-index-space.d.ts +0 -12
  26. package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -1
  27. package/dist/adminapi/models/postgresql-space-analysis.d.ts +3 -17
  28. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
  29. package/dist/adminapi/models/postgresql-space-summary.d.ts +0 -12
  30. package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -1
  31. package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
  32. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
  33. package/dist/adminapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  34. package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
  35. package/dist/adminapi/models/postgresql-table-space.d.ts +0 -12
  36. package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -1
  37. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +0 -12
  38. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  39. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  40. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  41. package/dist/openapi/apis/cluster-api.js +79 -0
  42. package/dist/openapi/apis/cluster-api.js.map +1 -1
  43. package/dist/openapi/apis/diagnostics-api.d.ts +5 -5
  44. package/dist/openapi/apis/diagnostics-api.js +4 -4
  45. package/dist/openapi/apis/shared-api.d.ts +72 -0
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +79 -0
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/{postgresql-space-pvc.d.ts → cluster-storage-usage-history-point.d.ts} +16 -16
  50. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  51. package/dist/openapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history-point.js} +1 -1
  52. package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
  53. package/dist/openapi/models/{postgresql-space-risk-hint.d.ts → cluster-storage-usage-history.d.ts} +23 -28
  54. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  55. package/dist/openapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history.js} +1 -1
  56. package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
  57. package/dist/openapi/models/index.d.ts +3 -3
  58. package/dist/openapi/models/index.d.ts.map +1 -1
  59. package/dist/openapi/models/index.js +3 -3
  60. package/dist/openapi/models/index.js.map +1 -1
  61. package/dist/openapi/models/postgresql-database-space.d.ts +0 -12
  62. package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -1
  63. package/dist/openapi/models/postgresql-index-space.d.ts +0 -12
  64. package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -1
  65. package/dist/openapi/models/postgresql-space-analysis.d.ts +3 -17
  66. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
  67. package/dist/openapi/models/postgresql-space-summary.d.ts +0 -12
  68. package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -1
  69. package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
  70. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
  71. package/dist/openapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  72. package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
  73. package/dist/openapi/models/postgresql-table-space.d.ts +0 -12
  74. package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -1
  75. package/dist/openapi/models/postgresql-toast-relation-space.d.ts +0 -12
  76. package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  77. package/package.json +1 -1
  78. package/src/adminapi/.openapi-generator/FILES +3 -3
  79. package/src/adminapi/apis/cluster-api.ts +127 -0
  80. package/src/adminapi/apis/diagnostics-api.ts +5 -5
  81. package/src/adminapi/apis/shared-api.ts +127 -0
  82. package/src/adminapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  83. package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
  84. package/src/adminapi/models/index.ts +3 -3
  85. package/src/adminapi/models/postgresql-database-space.ts +0 -12
  86. package/src/adminapi/models/postgresql-index-space.ts +0 -12
  87. package/src/adminapi/models/postgresql-space-analysis.ts +5 -23
  88. package/src/adminapi/models/postgresql-space-summary.ts +0 -12
  89. package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
  90. package/src/adminapi/models/postgresql-table-space.ts +0 -12
  91. package/src/adminapi/models/postgresql-toast-relation-space.ts +0 -12
  92. package/src/adminapi.yaml +112 -94
  93. package/src/openapi/.openapi-generator/FILES +3 -3
  94. package/src/openapi/apis/cluster-api.ts +127 -0
  95. package/src/openapi/apis/diagnostics-api.ts +5 -5
  96. package/src/openapi/apis/shared-api.ts +127 -0
  97. package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  98. package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
  99. package/src/openapi/models/index.ts +3 -3
  100. package/src/openapi/models/postgresql-database-space.ts +0 -12
  101. package/src/openapi/models/postgresql-index-space.ts +0 -12
  102. package/src/openapi/models/postgresql-space-analysis.ts +5 -23
  103. package/src/openapi/models/postgresql-space-summary.ts +0 -12
  104. package/src/openapi/models/{postgresql-space-risk-hint.ts → postgresql-storage-overview.ts} +23 -29
  105. package/src/openapi/models/postgresql-table-space.ts +0 -12
  106. package/src/openapi/models/postgresql-toast-relation-space.ts +0 -12
  107. package/src/openapi.yaml +112 -94
  108. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  109. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  110. package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +0 -1
  111. package/dist/adminapi/models/postgresql-space-pvc.d.ts +0 -43
  112. package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +0 -1
  113. package/dist/adminapi/models/postgresql-space-pvc.js.map +0 -1
  114. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +0 -61
  115. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  116. package/dist/adminapi/models/postgresql-space-risk-hint.js.map +0 -1
  117. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  118. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  119. package/dist/openapi/models/postgresql-space-cannot-prove.js.map +0 -1
  120. package/dist/openapi/models/postgresql-space-pvc.d.ts.map +0 -1
  121. package/dist/openapi/models/postgresql-space-pvc.js.map +0 -1
  122. package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  123. package/dist/openapi/models/postgresql-space-risk-hint.js.map +0 -1
  124. package/src/adminapi/models/postgresql-space-cannot-prove.ts +0 -48
  125. package/src/adminapi/models/postgresql-space-risk-hint.ts +0 -66
  126. package/src/openapi/models/postgresql-space-cannot-prove.ts +0 -48
@@ -3560,6 +3560,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
3560
3560
  options: localVarRequestOptions,
3561
3561
  };
3562
3562
  },
3563
+ /**
3564
+ * Get cluster storage usage history from backend-owned fixed metrics.
3565
+ * @summary Get cluster storage usage history
3566
+ * @param {string} orgName name of the Org
3567
+ * @param {string} clusterName name of the cluster
3568
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
3569
+ * @param {*} [options] Override http request option.
3570
+ * @throws {RequiredError}
3571
+ */
3572
+ getClusterStorageUsageHistory: async (orgName, clusterName, timeRange, options = {}) => {
3573
+ // verify required parameter 'orgName' is not null or undefined
3574
+ (0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'orgName', orgName);
3575
+ // verify required parameter 'clusterName' is not null or undefined
3576
+ (0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'clusterName', clusterName);
3577
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
3578
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3579
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
3580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3581
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3582
+ let baseOptions;
3583
+ if (configuration) {
3584
+ baseOptions = configuration.baseOptions;
3585
+ }
3586
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3587
+ const localVarHeaderParameter = {};
3588
+ const localVarQueryParameter = {};
3589
+ // authentication BearerToken required
3590
+ // http bearer authentication required
3591
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3592
+ // authentication DigestAuth required
3593
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3594
+ if (timeRange !== undefined) {
3595
+ localVarQueryParameter['timeRange'] = timeRange;
3596
+ }
3597
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3599
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3600
+ return {
3601
+ url: (0, common_1.toPathString)(localVarUrlObj),
3602
+ options: localVarRequestOptions,
3603
+ };
3604
+ },
3563
3605
  /**
3564
3606
  *
3565
3607
  * @summary get the datasource
@@ -12358,6 +12400,22 @@ const SharedApiFp = function (configuration) {
12358
12400
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterParameterTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12359
12401
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12360
12402
  },
12403
+ /**
12404
+ * Get cluster storage usage history from backend-owned fixed metrics.
12405
+ * @summary Get cluster storage usage history
12406
+ * @param {string} orgName name of the Org
12407
+ * @param {string} clusterName name of the cluster
12408
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
12409
+ * @param {*} [options] Override http request option.
12410
+ * @throws {RequiredError}
12411
+ */
12412
+ async getClusterStorageUsageHistory(orgName, clusterName, timeRange, options) {
12413
+ var _a, _b, _c;
12414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
12415
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12416
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterStorageUsageHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12417
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12418
+ },
12361
12419
  /**
12362
12420
  *
12363
12421
  * @summary get the datasource
@@ -15884,6 +15942,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15884
15942
  getClusterParameterTemplate(requestParameters, options) {
15885
15943
  return localVarFp.getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(axios, basePath));
15886
15944
  },
15945
+ /**
15946
+ * Get cluster storage usage history from backend-owned fixed metrics.
15947
+ * @summary Get cluster storage usage history
15948
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
15949
+ * @param {*} [options] Override http request option.
15950
+ * @throws {RequiredError}
15951
+ */
15952
+ getClusterStorageUsageHistory(requestParameters, options) {
15953
+ return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
15954
+ },
15887
15955
  /**
15888
15956
  *
15889
15957
  * @summary get the datasource
@@ -18367,6 +18435,17 @@ class SharedApi extends base_1.BaseAPI {
18367
18435
  getClusterParameterTemplate(requestParameters, options) {
18368
18436
  return (0, exports.SharedApiFp)(this.configuration).getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
18369
18437
  }
18438
+ /**
18439
+ * Get cluster storage usage history from backend-owned fixed metrics.
18440
+ * @summary Get cluster storage usage history
18441
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
18442
+ * @param {*} [options] Override http request option.
18443
+ * @throws {RequiredError}
18444
+ * @memberof SharedApi
18445
+ */
18446
+ getClusterStorageUsageHistory(requestParameters, options) {
18447
+ return (0, exports.SharedApiFp)(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
18448
+ }
18370
18449
  /**
18371
18450
  *
18372
18451
  * @summary get the datasource