kb-cloud-client-typescript 2.3.0-alpha.98 → 2.3.0-alpha.99

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 (29) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +18 -2
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +15 -5
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/shared-api.d.ts +18 -2
  6. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/shared-api.js +15 -5
  8. package/dist/adminapi/apis/shared-api.js.map +1 -1
  9. package/dist/adminapi/models/database-parameter-item.d.ts +6 -0
  10. package/dist/adminapi/models/database-parameter-item.d.ts.map +1 -1
  11. package/dist/adminapi/models/database-parameter-list-item.d.ts +6 -0
  12. package/dist/adminapi/models/database-parameter-list-item.d.ts.map +1 -1
  13. package/dist/openapi/apis/cluster-api.d.ts +18 -2
  14. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  15. package/dist/openapi/apis/cluster-api.js +15 -5
  16. package/dist/openapi/apis/cluster-api.js.map +1 -1
  17. package/dist/openapi/apis/shared-api.d.ts +18 -2
  18. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  19. package/dist/openapi/apis/shared-api.js +15 -5
  20. package/dist/openapi/apis/shared-api.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/adminapi/apis/cluster-api.ts +31 -5
  23. package/src/adminapi/apis/shared-api.ts +31 -5
  24. package/src/adminapi/models/database-parameter-item.ts +6 -0
  25. package/src/adminapi/models/database-parameter-list-item.ts +6 -0
  26. package/src/adminapi.yaml +20 -0
  27. package/src/openapi/apis/cluster-api.ts +31 -5
  28. package/src/openapi/apis/shared-api.ts +31 -5
  29. package/src/openapi.yaml +12 -0
@@ -3004,10 +3004,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
3004
3004
  * @summary Get cluster details by ID
3005
3005
  * @param {string} orgName name of the Org
3006
3006
  * @param {string} clusterID ID of the KubeBlocks cluster
3007
+ * @param {string} [backupName] Backup name to override cluster components from its snapshot
3008
+ * @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
3007
3009
  * @param {*} [options] Override http request option.
3008
3010
  * @throws {RequiredError}
3009
3011
  */
3010
- getClusterByID: async (orgName, clusterID, options = {}) => {
3012
+ getClusterByID: async (orgName, clusterID, backupName, restoreTime, options = {}) => {
3011
3013
  // verify required parameter 'orgName' is not null or undefined
3012
3014
  (0, common_1.assertParamExists)('getClusterByID', 'orgName', orgName);
3013
3015
  // verify required parameter 'clusterID' is not null or undefined
@@ -3026,6 +3028,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
3026
3028
  const localVarQueryParameter = {};
3027
3029
  // authentication BearerToken required
3028
3030
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
3031
+ if (backupName !== undefined) {
3032
+ localVarQueryParameter['backupName'] = backupName;
3033
+ }
3034
+ if (restoreTime !== undefined) {
3035
+ localVarQueryParameter['restoreTime'] = restoreTime;
3036
+ }
3029
3037
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3030
3038
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3031
3039
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -11221,12 +11229,14 @@ const SharedApiFp = function (configuration) {
11221
11229
  * @summary Get cluster details by ID
11222
11230
  * @param {string} orgName name of the Org
11223
11231
  * @param {string} clusterID ID of the KubeBlocks cluster
11232
+ * @param {string} [backupName] Backup name to override cluster components from its snapshot
11233
+ * @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
11224
11234
  * @param {*} [options] Override http request option.
11225
11235
  * @throws {RequiredError}
11226
11236
  */
11227
- async getClusterByID(orgName, clusterID, options) {
11237
+ async getClusterByID(orgName, clusterID, backupName, restoreTime, options) {
11228
11238
  var _a, _b, _c;
11229
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
11239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
11230
11240
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11231
11241
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11232
11242
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14718,7 +14728,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
14718
14728
  * @throws {RequiredError}
14719
14729
  */
14720
14730
  getClusterByID(requestParameters, options) {
14721
- return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
14731
+ return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
14722
14732
  },
14723
14733
  /**
14724
14734
  * read log of the specified cluster instance
@@ -17168,7 +17178,7 @@ class SharedApi extends base_1.BaseAPI {
17168
17178
  * @memberof SharedApi
17169
17179
  */
17170
17180
  getClusterByID(requestParameters, options) {
17171
- return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
17181
+ return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
17172
17182
  }
17173
17183
  /**
17174
17184
  * read log of the specified cluster instance