kb-cloud-client-typescript 2.3.0-alpha.87 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.3.0-alpha.87",
3
+ "version": "2.3.0-alpha.88",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -773,10 +773,11 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
773
773
  * @param {string} schema schema or database name
774
774
  * @param {string} type object type
775
775
  * @param {string} objectName object name
776
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
776
777
  * @param {*} [options] Override http request option.
777
778
  * @throws {RequiredError}
778
779
  */
779
- getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
780
+ getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
780
781
  // verify required parameter 'orgName' is not null or undefined
781
782
  assertParamExists('getObjectInfo', 'orgName', orgName)
782
783
  // verify required parameter 'clusterName' is not null or undefined
@@ -810,6 +811,10 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
810
811
  // authentication BearerToken required
811
812
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
812
813
 
814
+ if (database !== undefined) {
815
+ localVarQueryParameter['database'] = database;
816
+ }
817
+
813
818
 
814
819
 
815
820
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -827,10 +832,11 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
827
832
  * @param {string} orgName name of the Org
828
833
  * @param {string} clusterName name of the cluster
829
834
  * @param {string} id id of the datasource
835
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
830
836
  * @param {*} [options] Override http request option.
831
837
  * @throws {RequiredError}
832
838
  */
833
- getSchemaList: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
839
+ getSchemaList: async (orgName: string, clusterName: string, id: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
834
840
  // verify required parameter 'orgName' is not null or undefined
835
841
  assertParamExists('getSchemaList', 'orgName', orgName)
836
842
  // verify required parameter 'clusterName' is not null or undefined
@@ -855,6 +861,10 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
855
861
  // authentication BearerToken required
856
862
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
857
863
 
864
+ if (database !== undefined) {
865
+ localVarQueryParameter['database'] = database;
866
+ }
867
+
858
868
 
859
869
 
860
870
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -995,6 +1005,51 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
995
1005
 
996
1006
 
997
1007
 
1008
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1009
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1010
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1011
+
1012
+ return {
1013
+ url: toPathString(localVarUrlObj),
1014
+ options: localVarRequestOptions,
1015
+ };
1016
+ },
1017
+ /**
1018
+ *
1019
+ * @summary list all databases of the datasource
1020
+ * @param {string} orgName name of the Org
1021
+ * @param {string} clusterName name of the cluster
1022
+ * @param {string} id id of the datasource
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ listDmsDatabases: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1027
+ // verify required parameter 'orgName' is not null or undefined
1028
+ assertParamExists('listDmsDatabases', 'orgName', orgName)
1029
+ // verify required parameter 'clusterName' is not null or undefined
1030
+ assertParamExists('listDmsDatabases', 'clusterName', clusterName)
1031
+ // verify required parameter 'id' is not null or undefined
1032
+ assertParamExists('listDmsDatabases', 'id', id)
1033
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases`
1034
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1035
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1036
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1038
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1039
+ let baseOptions;
1040
+ if (configuration) {
1041
+ baseOptions = configuration.baseOptions;
1042
+ }
1043
+
1044
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1045
+ const localVarHeaderParameter = {} as any;
1046
+ const localVarQueryParameter = {} as any;
1047
+
1048
+ // authentication BearerToken required
1049
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
1050
+
1051
+
1052
+
998
1053
  setSearchParams(localVarUrlObj, localVarQueryParameter);
999
1054
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1000
1055
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1151,10 +1206,11 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
1151
1206
  * @param {string} id id of the datasource
1152
1207
  * @param {string} schema schema or database name
1153
1208
  * @param {string} type object type
1209
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
1154
1210
  * @param {*} [options] Override http request option.
1155
1211
  * @throws {RequiredError}
1156
1212
  */
1157
- listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1213
+ listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1158
1214
  // verify required parameter 'orgName' is not null or undefined
1159
1215
  assertParamExists('listObjectNamesByType', 'orgName', orgName)
1160
1216
  // verify required parameter 'clusterName' is not null or undefined
@@ -1185,6 +1241,10 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
1185
1241
  // authentication BearerToken required
1186
1242
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
1187
1243
 
1244
+ if (database !== undefined) {
1245
+ localVarQueryParameter['database'] = database;
1246
+ }
1247
+
1188
1248
 
1189
1249
 
1190
1250
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1203,10 +1263,11 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
1203
1263
  * @param {string} clusterName name of the cluster
1204
1264
  * @param {string} id id of the datasource
1205
1265
  * @param {string} schema schema or database name
1266
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
1206
1267
  * @param {*} [options] Override http request option.
1207
1268
  * @throws {RequiredError}
1208
1269
  */
1209
- listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1270
+ listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1210
1271
  // verify required parameter 'orgName' is not null or undefined
1211
1272
  assertParamExists('listObjectTypesInSchema', 'orgName', orgName)
1212
1273
  // verify required parameter 'clusterName' is not null or undefined
@@ -1234,6 +1295,10 @@ export const DmsApiAxiosParamCreator = function (configuration?: Configuration)
1234
1295
  // authentication BearerToken required
1235
1296
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
1236
1297
 
1298
+ if (database !== undefined) {
1299
+ localVarQueryParameter['database'] = database;
1300
+ }
1301
+
1237
1302
 
1238
1303
 
1239
1304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3078,11 +3143,12 @@ export const DmsApiFp = function(configuration?: Configuration) {
3078
3143
  * @param {string} schema schema or database name
3079
3144
  * @param {string} type object type
3080
3145
  * @param {string} objectName object name
3146
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
3081
3147
  * @param {*} [options] Override http request option.
3082
3148
  * @throws {RequiredError}
3083
3149
  */
3084
- async getObjectInfo(orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsObjectResponse>> {
3085
- const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, options);
3150
+ async getObjectInfo(orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsObjectResponse>> {
3151
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, database, options);
3086
3152
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3087
3153
  const localVarOperationServerBasePath = operationServerMap['DmsApi.getObjectInfo']?.[localVarOperationServerIndex]?.url;
3088
3154
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3093,11 +3159,12 @@ export const DmsApiFp = function(configuration?: Configuration) {
3093
3159
  * @param {string} orgName name of the Org
3094
3160
  * @param {string} clusterName name of the cluster
3095
3161
  * @param {string} id id of the datasource
3162
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
3096
3163
  * @param {*} [options] Override http request option.
3097
3164
  * @throws {RequiredError}
3098
3165
  */
3099
- async getSchemaList(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
3100
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, options);
3166
+ async getSchemaList(orgName: string, clusterName: string, id: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
3167
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, database, options);
3101
3168
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3102
3169
  const localVarOperationServerBasePath = operationServerMap['DmsApi.getSchemaList']?.[localVarOperationServerIndex]?.url;
3103
3170
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3147,6 +3214,21 @@ export const DmsApiFp = function(configuration?: Configuration) {
3147
3214
  const localVarOperationServerBasePath = operationServerMap['DmsApi.listDataSourceV2']?.[localVarOperationServerIndex]?.url;
3148
3215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3149
3216
  },
3217
+ /**
3218
+ *
3219
+ * @summary list all databases of the datasource
3220
+ * @param {string} orgName name of the Org
3221
+ * @param {string} clusterName name of the cluster
3222
+ * @param {string} id id of the datasource
3223
+ * @param {*} [options] Override http request option.
3224
+ * @throws {RequiredError}
3225
+ */
3226
+ async listDmsDatabases(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
3227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDmsDatabases(orgName, clusterName, id, options);
3228
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3229
+ const localVarOperationServerBasePath = operationServerMap['DmsApi.listDmsDatabases']?.[localVarOperationServerIndex]?.url;
3230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3231
+ },
3150
3232
  /**
3151
3233
  *
3152
3234
  * @summary list collections in a MongoDB database
@@ -3201,11 +3283,12 @@ export const DmsApiFp = function(configuration?: Configuration) {
3201
3283
  * @param {string} id id of the datasource
3202
3284
  * @param {string} schema schema or database name
3203
3285
  * @param {string} type object type
3286
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
3204
3287
  * @param {*} [options] Override http request option.
3205
3288
  * @throws {RequiredError}
3206
3289
  */
3207
- async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
3208
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, options);
3290
+ async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
3291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, database, options);
3209
3292
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3210
3293
  const localVarOperationServerBasePath = operationServerMap['DmsApi.listObjectNamesByType']?.[localVarOperationServerIndex]?.url;
3211
3294
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3217,11 +3300,12 @@ export const DmsApiFp = function(configuration?: Configuration) {
3217
3300
  * @param {string} clusterName name of the cluster
3218
3301
  * @param {string} id id of the datasource
3219
3302
  * @param {string} schema schema or database name
3303
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
3220
3304
  * @param {*} [options] Override http request option.
3221
3305
  * @throws {RequiredError}
3222
3306
  */
3223
- async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
3224
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, options);
3307
+ async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
3308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, database, options);
3225
3309
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3226
3310
  const localVarOperationServerBasePath = operationServerMap['DmsApi.listObjectTypesInSchema']?.[localVarOperationServerIndex]?.url;
3227
3311
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3880,7 +3964,7 @@ export const DmsApiFactory = function (configuration?: Configuration, basePath?:
3880
3964
  * @throws {RequiredError}
3881
3965
  */
3882
3966
  getObjectInfo(requestParameters: DmsApiGetObjectInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsObjectResponse> {
3883
- return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, options).then((request) => request(axios, basePath));
3967
+ return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, requestParameters.database, options).then((request) => request(axios, basePath));
3884
3968
  },
3885
3969
  /**
3886
3970
  *
@@ -3890,7 +3974,7 @@ export const DmsApiFactory = function (configuration?: Configuration, basePath?:
3890
3974
  * @throws {RequiredError}
3891
3975
  */
3892
3976
  getSchemaList(requestParameters: DmsApiGetSchemaListRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
3893
- return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
3977
+ return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(axios, basePath));
3894
3978
  },
3895
3979
  /**
3896
3980
  *
@@ -3922,6 +4006,16 @@ export const DmsApiFactory = function (configuration?: Configuration, basePath?:
3922
4006
  listDataSourceV2(requestParameters: DmsApiListDataSourceV2Request, options?: RawAxiosRequestConfig): AxiosPromise<Array<Datasource>> {
3923
4007
  return localVarFp.listDataSourceV2(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
3924
4008
  },
4009
+ /**
4010
+ *
4011
+ * @summary list all databases of the datasource
4012
+ * @param {DmsApiListDmsDatabasesRequest} requestParameters Request parameters.
4013
+ * @param {*} [options] Override http request option.
4014
+ * @throws {RequiredError}
4015
+ */
4016
+ listDmsDatabases(requestParameters: DmsApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
4017
+ return localVarFp.listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
4018
+ },
3925
4019
  /**
3926
4020
  *
3927
4021
  * @summary list collections in a MongoDB database
@@ -3960,7 +4054,7 @@ export const DmsApiFactory = function (configuration?: Configuration, basePath?:
3960
4054
  * @throws {RequiredError}
3961
4055
  */
3962
4056
  listObjectNamesByType(requestParameters: DmsApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
3963
- return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(axios, basePath));
4057
+ return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.database, options).then((request) => request(axios, basePath));
3964
4058
  },
3965
4059
  /**
3966
4060
  *
@@ -3970,7 +4064,7 @@ export const DmsApiFactory = function (configuration?: Configuration, basePath?:
3970
4064
  * @throws {RequiredError}
3971
4065
  */
3972
4066
  listObjectTypesInSchema(requestParameters: DmsApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsObject>> {
3973
- return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(axios, basePath));
4067
+ return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(axios, basePath));
3974
4068
  },
3975
4069
  /**
3976
4070
  *
@@ -4463,6 +4557,16 @@ export interface DmsApiInterface {
4463
4557
  */
4464
4558
  listDataSourceV2(requestParameters: DmsApiListDataSourceV2Request, options?: RawAxiosRequestConfig): AxiosPromise<Array<Datasource>>;
4465
4559
 
4560
+ /**
4561
+ *
4562
+ * @summary list all databases of the datasource
4563
+ * @param {DmsApiListDmsDatabasesRequest} requestParameters Request parameters.
4564
+ * @param {*} [options] Override http request option.
4565
+ * @throws {RequiredError}
4566
+ * @memberof DmsApiInterface
4567
+ */
4568
+ listDmsDatabases(requestParameters: DmsApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
4569
+
4466
4570
  /**
4467
4571
  *
4468
4572
  * @summary list collections in a MongoDB database
@@ -5297,6 +5401,13 @@ export interface DmsApiGetObjectInfoRequest {
5297
5401
  * @memberof DmsApiGetObjectInfo
5298
5402
  */
5299
5403
  readonly objectName: string
5404
+
5405
+ /**
5406
+ * database name, used by engines such as MSSQL when reading object metadata inside a schema
5407
+ * @type {string}
5408
+ * @memberof DmsApiGetObjectInfo
5409
+ */
5410
+ readonly database?: string
5300
5411
  }
5301
5412
 
5302
5413
  /**
@@ -5325,6 +5436,13 @@ export interface DmsApiGetSchemaListRequest {
5325
5436
  * @memberof DmsApiGetSchemaList
5326
5437
  */
5327
5438
  readonly id: string
5439
+
5440
+ /**
5441
+ * database name, used by engines such as MSSQL when listing schemas inside a database
5442
+ * @type {string}
5443
+ * @memberof DmsApiGetSchemaList
5444
+ */
5445
+ readonly database?: string
5328
5446
  }
5329
5447
 
5330
5448
  /**
@@ -5411,6 +5529,34 @@ export interface DmsApiListDataSourceV2Request {
5411
5529
  readonly clusterName: string
5412
5530
  }
5413
5531
 
5532
+ /**
5533
+ * Request parameters for listDmsDatabases operation in DmsApi.
5534
+ * @export
5535
+ * @interface DmsApiListDmsDatabasesRequest
5536
+ */
5537
+ export interface DmsApiListDmsDatabasesRequest {
5538
+ /**
5539
+ * name of the Org
5540
+ * @type {string}
5541
+ * @memberof DmsApiListDmsDatabases
5542
+ */
5543
+ readonly orgName: string
5544
+
5545
+ /**
5546
+ * name of the cluster
5547
+ * @type {string}
5548
+ * @memberof DmsApiListDmsDatabases
5549
+ */
5550
+ readonly clusterName: string
5551
+
5552
+ /**
5553
+ * id of the datasource
5554
+ * @type {string}
5555
+ * @memberof DmsApiListDmsDatabases
5556
+ */
5557
+ readonly id: string
5558
+ }
5559
+
5414
5560
  /**
5415
5561
  * Request parameters for listMongoCollections operation in DmsApi.
5416
5562
  * @export
@@ -5542,6 +5688,13 @@ export interface DmsApiListObjectNamesByTypeRequest {
5542
5688
  * @memberof DmsApiListObjectNamesByType
5543
5689
  */
5544
5690
  readonly type: string
5691
+
5692
+ /**
5693
+ * database name, used by engines such as MSSQL when listing object names inside a schema
5694
+ * @type {string}
5695
+ * @memberof DmsApiListObjectNamesByType
5696
+ */
5697
+ readonly database?: string
5545
5698
  }
5546
5699
 
5547
5700
  /**
@@ -5577,6 +5730,13 @@ export interface DmsApiListObjectTypesInSchemaRequest {
5577
5730
  * @memberof DmsApiListObjectTypesInSchema
5578
5731
  */
5579
5732
  readonly schema: string
5733
+
5734
+ /**
5735
+ * database name, used by engines such as MSSQL when listing objects inside a schema
5736
+ * @type {string}
5737
+ * @memberof DmsApiListObjectTypesInSchema
5738
+ */
5739
+ readonly database?: string
5580
5740
  }
5581
5741
 
5582
5742
  /**
@@ -6970,7 +7130,7 @@ export class DmsApi extends BaseAPI implements DmsApiInterface {
6970
7130
  * @memberof DmsApi
6971
7131
  */
6972
7132
  public getObjectInfo(requestParameters: DmsApiGetObjectInfoRequest, options?: RawAxiosRequestConfig) {
6973
- return DmsApiFp(this.configuration).getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
7133
+ return DmsApiFp(this.configuration).getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
6974
7134
  }
6975
7135
 
6976
7136
  /**
@@ -6982,7 +7142,7 @@ export class DmsApi extends BaseAPI implements DmsApiInterface {
6982
7142
  * @memberof DmsApi
6983
7143
  */
6984
7144
  public getSchemaList(requestParameters: DmsApiGetSchemaListRequest, options?: RawAxiosRequestConfig) {
6985
- return DmsApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7145
+ return DmsApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
6986
7146
  }
6987
7147
 
6988
7148
  /**
@@ -7021,6 +7181,18 @@ export class DmsApi extends BaseAPI implements DmsApiInterface {
7021
7181
  return DmsApiFp(this.configuration).listDataSourceV2(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
7022
7182
  }
7023
7183
 
7184
+ /**
7185
+ *
7186
+ * @summary list all databases of the datasource
7187
+ * @param {DmsApiListDmsDatabasesRequest} requestParameters Request parameters.
7188
+ * @param {*} [options] Override http request option.
7189
+ * @throws {RequiredError}
7190
+ * @memberof DmsApi
7191
+ */
7192
+ public listDmsDatabases(requestParameters: DmsApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig) {
7193
+ return DmsApiFp(this.configuration).listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7194
+ }
7195
+
7024
7196
  /**
7025
7197
  *
7026
7198
  * @summary list collections in a MongoDB database
@@ -7066,7 +7238,7 @@ export class DmsApi extends BaseAPI implements DmsApiInterface {
7066
7238
  * @memberof DmsApi
7067
7239
  */
7068
7240
  public listObjectNamesByType(requestParameters: DmsApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig) {
7069
- return DmsApiFp(this.configuration).listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
7241
+ return DmsApiFp(this.configuration).listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
7070
7242
  }
7071
7243
 
7072
7244
  /**
@@ -7078,7 +7250,7 @@ export class DmsApi extends BaseAPI implements DmsApiInterface {
7078
7250
  * @memberof DmsApi
7079
7251
  */
7080
7252
  public listObjectTypesInSchema(requestParameters: DmsApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig) {
7081
- return DmsApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(this.axios, this.basePath));
7253
+ return DmsApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
7082
7254
  }
7083
7255
 
7084
7256
  /**