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.
@@ -5262,10 +5262,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5262
5262
  * @param {string} schema schema or database name
5263
5263
  * @param {string} type object type
5264
5264
  * @param {string} objectName object name
5265
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
5265
5266
  * @param {*} [options] Override http request option.
5266
5267
  * @throws {RequiredError}
5267
5268
  */
5268
- getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5269
+ getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5269
5270
  // verify required parameter 'orgName' is not null or undefined
5270
5271
  assertParamExists('getObjectInfo', 'orgName', orgName)
5271
5272
  // verify required parameter 'clusterName' is not null or undefined
@@ -5299,6 +5300,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5299
5300
  // authentication BearerToken required
5300
5301
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
5301
5302
 
5303
+ if (database !== undefined) {
5304
+ localVarQueryParameter['database'] = database;
5305
+ }
5306
+
5302
5307
 
5303
5308
 
5304
5309
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5622,10 +5627,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5622
5627
  * @param {string} orgName name of the Org
5623
5628
  * @param {string} clusterName name of the cluster
5624
5629
  * @param {string} id id of the datasource
5630
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
5625
5631
  * @param {*} [options] Override http request option.
5626
5632
  * @throws {RequiredError}
5627
5633
  */
5628
- getSchemaList: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5634
+ getSchemaList: async (orgName: string, clusterName: string, id: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5629
5635
  // verify required parameter 'orgName' is not null or undefined
5630
5636
  assertParamExists('getSchemaList', 'orgName', orgName)
5631
5637
  // verify required parameter 'clusterName' is not null or undefined
@@ -5650,6 +5656,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5650
5656
  // authentication BearerToken required
5651
5657
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
5652
5658
 
5659
+ if (database !== undefined) {
5660
+ localVarQueryParameter['database'] = database;
5661
+ }
5662
+
5653
5663
 
5654
5664
 
5655
5665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6733,6 +6743,51 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6733
6743
 
6734
6744
 
6735
6745
 
6746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6748
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6749
+
6750
+ return {
6751
+ url: toPathString(localVarUrlObj),
6752
+ options: localVarRequestOptions,
6753
+ };
6754
+ },
6755
+ /**
6756
+ *
6757
+ * @summary list all databases of the datasource
6758
+ * @param {string} orgName name of the Org
6759
+ * @param {string} clusterName name of the cluster
6760
+ * @param {string} id id of the datasource
6761
+ * @param {*} [options] Override http request option.
6762
+ * @throws {RequiredError}
6763
+ */
6764
+ listDmsDatabases: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6765
+ // verify required parameter 'orgName' is not null or undefined
6766
+ assertParamExists('listDmsDatabases', 'orgName', orgName)
6767
+ // verify required parameter 'clusterName' is not null or undefined
6768
+ assertParamExists('listDmsDatabases', 'clusterName', clusterName)
6769
+ // verify required parameter 'id' is not null or undefined
6770
+ assertParamExists('listDmsDatabases', 'id', id)
6771
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases`
6772
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6773
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6774
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6776
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6777
+ let baseOptions;
6778
+ if (configuration) {
6779
+ baseOptions = configuration.baseOptions;
6780
+ }
6781
+
6782
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6783
+ const localVarHeaderParameter = {} as any;
6784
+ const localVarQueryParameter = {} as any;
6785
+
6786
+ // authentication BearerToken required
6787
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
6788
+
6789
+
6790
+
6736
6791
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6737
6792
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6738
6793
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7435,10 +7490,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7435
7490
  * @param {string} id id of the datasource
7436
7491
  * @param {string} schema schema or database name
7437
7492
  * @param {string} type object type
7493
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
7438
7494
  * @param {*} [options] Override http request option.
7439
7495
  * @throws {RequiredError}
7440
7496
  */
7441
- listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7497
+ listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7442
7498
  // verify required parameter 'orgName' is not null or undefined
7443
7499
  assertParamExists('listObjectNamesByType', 'orgName', orgName)
7444
7500
  // verify required parameter 'clusterName' is not null or undefined
@@ -7469,6 +7525,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7469
7525
  // authentication BearerToken required
7470
7526
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
7471
7527
 
7528
+ if (database !== undefined) {
7529
+ localVarQueryParameter['database'] = database;
7530
+ }
7531
+
7472
7532
 
7473
7533
 
7474
7534
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7487,10 +7547,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7487
7547
  * @param {string} clusterName name of the cluster
7488
7548
  * @param {string} id id of the datasource
7489
7549
  * @param {string} schema schema or database name
7550
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
7490
7551
  * @param {*} [options] Override http request option.
7491
7552
  * @throws {RequiredError}
7492
7553
  */
7493
- listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7554
+ listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7494
7555
  // verify required parameter 'orgName' is not null or undefined
7495
7556
  assertParamExists('listObjectTypesInSchema', 'orgName', orgName)
7496
7557
  // verify required parameter 'clusterName' is not null or undefined
@@ -7518,6 +7579,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7518
7579
  // authentication BearerToken required
7519
7580
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
7520
7581
 
7582
+ if (database !== undefined) {
7583
+ localVarQueryParameter['database'] = database;
7584
+ }
7585
+
7521
7586
 
7522
7587
 
7523
7588
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13973,11 +14038,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
13973
14038
  * @param {string} schema schema or database name
13974
14039
  * @param {string} type object type
13975
14040
  * @param {string} objectName object name
14041
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
13976
14042
  * @param {*} [options] Override http request option.
13977
14043
  * @throws {RequiredError}
13978
14044
  */
13979
- async getObjectInfo(orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsObjectResponse>> {
13980
- const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, options);
14045
+ 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>> {
14046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, database, options);
13981
14047
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13982
14048
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getObjectInfo']?.[localVarOperationServerIndex]?.url;
13983
14049
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14089,11 +14155,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
14089
14155
  * @param {string} orgName name of the Org
14090
14156
  * @param {string} clusterName name of the cluster
14091
14157
  * @param {string} id id of the datasource
14158
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
14092
14159
  * @param {*} [options] Override http request option.
14093
14160
  * @throws {RequiredError}
14094
14161
  */
14095
- async getSchemaList(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14096
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, options);
14162
+ async getSchemaList(orgName: string, clusterName: string, id: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14163
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, database, options);
14097
14164
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14098
14165
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getSchemaList']?.[localVarOperationServerIndex]?.url;
14099
14166
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14427,6 +14494,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
14427
14494
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listDatabases']?.[localVarOperationServerIndex]?.url;
14428
14495
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14429
14496
  },
14497
+ /**
14498
+ *
14499
+ * @summary list all databases of the datasource
14500
+ * @param {string} orgName name of the Org
14501
+ * @param {string} clusterName name of the cluster
14502
+ * @param {string} id id of the datasource
14503
+ * @param {*} [options] Override http request option.
14504
+ * @throws {RequiredError}
14505
+ */
14506
+ async listDmsDatabases(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDmsDatabases(orgName, clusterName, id, options);
14508
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14509
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.listDmsDatabases']?.[localVarOperationServerIndex]?.url;
14510
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14511
+ },
14430
14512
  /**
14431
14513
  *
14432
14514
  * @summary List cluster endpoints
@@ -14658,11 +14740,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
14658
14740
  * @param {string} id id of the datasource
14659
14741
  * @param {string} schema schema or database name
14660
14742
  * @param {string} type object type
14743
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
14661
14744
  * @param {*} [options] Override http request option.
14662
14745
  * @throws {RequiredError}
14663
14746
  */
14664
- async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14665
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, options);
14747
+ async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14748
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, database, options);
14666
14749
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14667
14750
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listObjectNamesByType']?.[localVarOperationServerIndex]?.url;
14668
14751
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14674,11 +14757,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
14674
14757
  * @param {string} clusterName name of the cluster
14675
14758
  * @param {string} id id of the datasource
14676
14759
  * @param {string} schema schema or database name
14760
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
14677
14761
  * @param {*} [options] Override http request option.
14678
14762
  * @throws {RequiredError}
14679
14763
  */
14680
- async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
14681
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, options);
14764
+ async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
14765
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, database, options);
14682
14766
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14683
14767
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listObjectTypesInSchema']?.[localVarOperationServerIndex]?.url;
14684
14768
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17228,7 +17312,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17228
17312
  * @throws {RequiredError}
17229
17313
  */
17230
17314
  getObjectInfo(requestParameters: SharedApiGetObjectInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsObjectResponse> {
17231
- return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, options).then((request) => request(axios, basePath));
17315
+ return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, requestParameters.database, options).then((request) => request(axios, basePath));
17232
17316
  },
17233
17317
  /**
17234
17318
  *
@@ -17308,7 +17392,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17308
17392
  * @throws {RequiredError}
17309
17393
  */
17310
17394
  getSchemaList(requestParameters: SharedApiGetSchemaListRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
17311
- return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
17395
+ return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(axios, basePath));
17312
17396
  },
17313
17397
  /**
17314
17398
  * Get statistics summary for slow logs of a cluster
@@ -17510,6 +17594,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17510
17594
  listDatabases(requestParameters: SharedApiListDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DatabaseList> {
17511
17595
  return localVarFp.listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
17512
17596
  },
17597
+ /**
17598
+ *
17599
+ * @summary list all databases of the datasource
17600
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
17601
+ * @param {*} [options] Override http request option.
17602
+ * @throws {RequiredError}
17603
+ */
17604
+ listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
17605
+ return localVarFp.listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
17606
+ },
17513
17607
  /**
17514
17608
  *
17515
17609
  * @summary List cluster endpoints
@@ -17667,7 +17761,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17667
17761
  * @throws {RequiredError}
17668
17762
  */
17669
17763
  listObjectNamesByType(requestParameters: SharedApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
17670
- return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(axios, basePath));
17764
+ return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.database, options).then((request) => request(axios, basePath));
17671
17765
  },
17672
17766
  /**
17673
17767
  *
@@ -17677,7 +17771,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17677
17771
  * @throws {RequiredError}
17678
17772
  */
17679
17773
  listObjectTypesInSchema(requestParameters: SharedApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsObject>> {
17680
- return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(axios, basePath));
17774
+ return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(axios, basePath));
17681
17775
  },
17682
17776
  /**
17683
17777
  *
@@ -19945,6 +20039,16 @@ export interface SharedApiInterface {
19945
20039
  */
19946
20040
  listDatabases(requestParameters: SharedApiListDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DatabaseList>;
19947
20041
 
20042
+ /**
20043
+ *
20044
+ * @summary list all databases of the datasource
20045
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
20046
+ * @param {*} [options] Override http request option.
20047
+ * @throws {RequiredError}
20048
+ * @memberof SharedApiInterface
20049
+ */
20050
+ listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
20051
+
19948
20052
  /**
19949
20053
  *
19950
20054
  * @summary List cluster endpoints
@@ -24190,6 +24294,13 @@ export interface SharedApiGetObjectInfoRequest {
24190
24294
  * @memberof SharedApiGetObjectInfo
24191
24295
  */
24192
24296
  readonly objectName: string
24297
+
24298
+ /**
24299
+ * database name, used by engines such as MSSQL when reading object metadata inside a schema
24300
+ * @type {string}
24301
+ * @memberof SharedApiGetObjectInfo
24302
+ */
24303
+ readonly database?: string
24193
24304
  }
24194
24305
 
24195
24306
  /**
@@ -24386,6 +24497,13 @@ export interface SharedApiGetSchemaListRequest {
24386
24497
  * @memberof SharedApiGetSchemaList
24387
24498
  */
24388
24499
  readonly id: string
24500
+
24501
+ /**
24502
+ * database name, used by engines such as MSSQL when listing schemas inside a database
24503
+ * @type {string}
24504
+ * @memberof SharedApiGetSchemaList
24505
+ */
24506
+ readonly database?: string
24389
24507
  }
24390
24508
 
24391
24509
  /**
@@ -25151,6 +25269,34 @@ export interface SharedApiListDatabasesRequest {
25151
25269
  readonly clusterName: string
25152
25270
  }
25153
25271
 
25272
+ /**
25273
+ * Request parameters for listDmsDatabases operation in SharedApi.
25274
+ * @export
25275
+ * @interface SharedApiListDmsDatabasesRequest
25276
+ */
25277
+ export interface SharedApiListDmsDatabasesRequest {
25278
+ /**
25279
+ * name of the Org
25280
+ * @type {string}
25281
+ * @memberof SharedApiListDmsDatabases
25282
+ */
25283
+ readonly orgName: string
25284
+
25285
+ /**
25286
+ * name of the cluster
25287
+ * @type {string}
25288
+ * @memberof SharedApiListDmsDatabases
25289
+ */
25290
+ readonly clusterName: string
25291
+
25292
+ /**
25293
+ * id of the datasource
25294
+ * @type {string}
25295
+ * @memberof SharedApiListDmsDatabases
25296
+ */
25297
+ readonly id: string
25298
+ }
25299
+
25154
25300
  /**
25155
25301
  * Request parameters for listEndpoints operation in SharedApi.
25156
25302
  * @export
@@ -25590,6 +25736,13 @@ export interface SharedApiListObjectNamesByTypeRequest {
25590
25736
  * @memberof SharedApiListObjectNamesByType
25591
25737
  */
25592
25738
  readonly type: string
25739
+
25740
+ /**
25741
+ * database name, used by engines such as MSSQL when listing object names inside a schema
25742
+ * @type {string}
25743
+ * @memberof SharedApiListObjectNamesByType
25744
+ */
25745
+ readonly database?: string
25593
25746
  }
25594
25747
 
25595
25748
  /**
@@ -25625,6 +25778,13 @@ export interface SharedApiListObjectTypesInSchemaRequest {
25625
25778
  * @memberof SharedApiListObjectTypesInSchema
25626
25779
  */
25627
25780
  readonly schema: string
25781
+
25782
+ /**
25783
+ * database name, used by engines such as MSSQL when listing objects inside a schema
25784
+ * @type {string}
25785
+ * @memberof SharedApiListObjectTypesInSchema
25786
+ */
25787
+ readonly database?: string
25628
25788
  }
25629
25789
 
25630
25790
  /**
@@ -30080,7 +30240,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30080
30240
  * @memberof SharedApi
30081
30241
  */
30082
30242
  public getObjectInfo(requestParameters: SharedApiGetObjectInfoRequest, options?: RawAxiosRequestConfig) {
30083
- return SharedApiFp(this.configuration).getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
30243
+ return SharedApiFp(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));
30084
30244
  }
30085
30245
 
30086
30246
  /**
@@ -30176,7 +30336,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30176
30336
  * @memberof SharedApi
30177
30337
  */
30178
30338
  public getSchemaList(requestParameters: SharedApiGetSchemaListRequest, options?: RawAxiosRequestConfig) {
30179
- return SharedApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
30339
+ return SharedApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
30180
30340
  }
30181
30341
 
30182
30342
  /**
@@ -30419,6 +30579,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30419
30579
  return SharedApiFp(this.configuration).listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
30420
30580
  }
30421
30581
 
30582
+ /**
30583
+ *
30584
+ * @summary list all databases of the datasource
30585
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
30586
+ * @param {*} [options] Override http request option.
30587
+ * @throws {RequiredError}
30588
+ * @memberof SharedApi
30589
+ */
30590
+ public listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig) {
30591
+ return SharedApiFp(this.configuration).listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
30592
+ }
30593
+
30422
30594
  /**
30423
30595
  *
30424
30596
  * @summary List cluster endpoints
@@ -30607,7 +30779,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30607
30779
  * @memberof SharedApi
30608
30780
  */
30609
30781
  public listObjectNamesByType(requestParameters: SharedApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig) {
30610
- return SharedApiFp(this.configuration).listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
30782
+ return SharedApiFp(this.configuration).listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
30611
30783
  }
30612
30784
 
30613
30785
  /**
@@ -30619,7 +30791,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30619
30791
  * @memberof SharedApi
30620
30792
  */
30621
30793
  public listObjectTypesInSchema(requestParameters: SharedApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig) {
30622
- return SharedApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(this.axios, this.basePath));
30794
+ return SharedApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
30623
30795
  }
30624
30796
 
30625
30797
  /**
@@ -7851,6 +7851,39 @@ paths:
7851
7851
  $ref: '#/components/responses/403'
7852
7852
  '500':
7853
7853
  $ref: '#/components/responses/500'
7854
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases:
7855
+ get:
7856
+ tags:
7857
+ - dms
7858
+ - shared
7859
+ operationId: listDmsDatabases
7860
+ summary: list all databases of the datasource
7861
+ parameters:
7862
+ - name: orgName
7863
+ in: path
7864
+ description: name of the Org
7865
+ required: true
7866
+ schema:
7867
+ type: string
7868
+ - name: clusterName
7869
+ in: path
7870
+ description: name of the cluster
7871
+ required: true
7872
+ schema:
7873
+ type: string
7874
+ - name: id
7875
+ in: path
7876
+ description: id of the datasource
7877
+ required: true
7878
+ schema:
7879
+ type: string
7880
+ responses:
7881
+ '200':
7882
+ description: A successful response.
7883
+ content:
7884
+ application/json:
7885
+ schema:
7886
+ $ref: '#/components/schemas/DmsSchemaList'
7854
7887
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/schemas:
7855
7888
  get:
7856
7889
  tags:
@@ -7877,6 +7910,12 @@ paths:
7877
7910
  required: true
7878
7911
  schema:
7879
7912
  type: string
7913
+ - name: database
7914
+ in: query
7915
+ description: database name, used by engines such as MSSQL when listing schemas inside a database
7916
+ required: false
7917
+ schema:
7918
+ type: string
7880
7919
  responses:
7881
7920
  '200':
7882
7921
  description: A successful response.
@@ -7916,6 +7955,12 @@ paths:
7916
7955
  required: true
7917
7956
  schema:
7918
7957
  type: string
7958
+ - name: database
7959
+ in: query
7960
+ description: database name, used by engines such as MSSQL when listing objects inside a schema
7961
+ required: false
7962
+ schema:
7963
+ type: string
7919
7964
  responses:
7920
7965
  '200':
7921
7966
  description: A successful response.
@@ -7961,6 +8006,12 @@ paths:
7961
8006
  required: true
7962
8007
  schema:
7963
8008
  type: string
8009
+ - name: database
8010
+ in: query
8011
+ description: database name, used by engines such as MSSQL when listing object names inside a schema
8012
+ required: false
8013
+ schema:
8014
+ type: string
7964
8015
  responses:
7965
8016
  '200':
7966
8017
  description: A successful response.
@@ -8012,6 +8063,12 @@ paths:
8012
8063
  required: true
8013
8064
  schema:
8014
8065
  type: string
8066
+ - name: database
8067
+ in: query
8068
+ description: database name, used by engines such as MSSQL when reading object metadata inside a schema
8069
+ required: false
8070
+ schema:
8071
+ type: string
8015
8072
  responses:
8016
8073
  '200':
8017
8074
  description: A successful response.