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.
@@ -4785,10 +4785,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4785
4785
  * @param {string} schema schema or database name
4786
4786
  * @param {string} type object type
4787
4787
  * @param {string} objectName object name
4788
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
4788
4789
  * @param {*} [options] Override http request option.
4789
4790
  * @throws {RequiredError}
4790
4791
  */
4791
- getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4792
+ getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4792
4793
  // verify required parameter 'orgName' is not null or undefined
4793
4794
  assertParamExists('getObjectInfo', 'orgName', orgName)
4794
4795
  // verify required parameter 'clusterName' is not null or undefined
@@ -4822,6 +4823,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4822
4823
  // authentication BearerToken required
4823
4824
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
4824
4825
 
4826
+ if (database !== undefined) {
4827
+ localVarQueryParameter['database'] = database;
4828
+ }
4829
+
4825
4830
 
4826
4831
 
4827
4832
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5145,10 +5150,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5145
5150
  * @param {string} orgName name of the Org
5146
5151
  * @param {string} clusterName name of the cluster
5147
5152
  * @param {string} id id of the datasource
5153
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
5148
5154
  * @param {*} [options] Override http request option.
5149
5155
  * @throws {RequiredError}
5150
5156
  */
5151
- getSchemaList: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5157
+ getSchemaList: async (orgName: string, clusterName: string, id: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5152
5158
  // verify required parameter 'orgName' is not null or undefined
5153
5159
  assertParamExists('getSchemaList', 'orgName', orgName)
5154
5160
  // verify required parameter 'clusterName' is not null or undefined
@@ -5173,6 +5179,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5173
5179
  // authentication BearerToken required
5174
5180
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
5175
5181
 
5182
+ if (database !== undefined) {
5183
+ localVarQueryParameter['database'] = database;
5184
+ }
5185
+
5176
5186
 
5177
5187
 
5178
5188
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6375,6 +6385,51 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6375
6385
 
6376
6386
 
6377
6387
 
6388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6390
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6391
+
6392
+ return {
6393
+ url: toPathString(localVarUrlObj),
6394
+ options: localVarRequestOptions,
6395
+ };
6396
+ },
6397
+ /**
6398
+ *
6399
+ * @summary list all databases of the datasource
6400
+ * @param {string} orgName name of the Org
6401
+ * @param {string} clusterName name of the cluster
6402
+ * @param {string} id id of the datasource
6403
+ * @param {*} [options] Override http request option.
6404
+ * @throws {RequiredError}
6405
+ */
6406
+ listDmsDatabases: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6407
+ // verify required parameter 'orgName' is not null or undefined
6408
+ assertParamExists('listDmsDatabases', 'orgName', orgName)
6409
+ // verify required parameter 'clusterName' is not null or undefined
6410
+ assertParamExists('listDmsDatabases', 'clusterName', clusterName)
6411
+ // verify required parameter 'id' is not null or undefined
6412
+ assertParamExists('listDmsDatabases', 'id', id)
6413
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases`
6414
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6415
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6416
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6419
+ let baseOptions;
6420
+ if (configuration) {
6421
+ baseOptions = configuration.baseOptions;
6422
+ }
6423
+
6424
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6425
+ const localVarHeaderParameter = {} as any;
6426
+ const localVarQueryParameter = {} as any;
6427
+
6428
+ // authentication BearerToken required
6429
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
6430
+
6431
+
6432
+
6378
6433
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6379
6434
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6380
6435
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7198,10 +7253,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7198
7253
  * @param {string} id id of the datasource
7199
7254
  * @param {string} schema schema or database name
7200
7255
  * @param {string} type object type
7256
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
7201
7257
  * @param {*} [options] Override http request option.
7202
7258
  * @throws {RequiredError}
7203
7259
  */
7204
- listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7260
+ listObjectNamesByType: async (orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7205
7261
  // verify required parameter 'orgName' is not null or undefined
7206
7262
  assertParamExists('listObjectNamesByType', 'orgName', orgName)
7207
7263
  // verify required parameter 'clusterName' is not null or undefined
@@ -7232,6 +7288,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7232
7288
  // authentication BearerToken required
7233
7289
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
7234
7290
 
7291
+ if (database !== undefined) {
7292
+ localVarQueryParameter['database'] = database;
7293
+ }
7294
+
7235
7295
 
7236
7296
 
7237
7297
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7250,10 +7310,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7250
7310
  * @param {string} clusterName name of the cluster
7251
7311
  * @param {string} id id of the datasource
7252
7312
  * @param {string} schema schema or database name
7313
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
7253
7314
  * @param {*} [options] Override http request option.
7254
7315
  * @throws {RequiredError}
7255
7316
  */
7256
- listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7317
+ listObjectTypesInSchema: async (orgName: string, clusterName: string, id: string, schema: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7257
7318
  // verify required parameter 'orgName' is not null or undefined
7258
7319
  assertParamExists('listObjectTypesInSchema', 'orgName', orgName)
7259
7320
  // verify required parameter 'clusterName' is not null or undefined
@@ -7281,6 +7342,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
7281
7342
  // authentication BearerToken required
7282
7343
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
7283
7344
 
7345
+ if (database !== undefined) {
7346
+ localVarQueryParameter['database'] = database;
7347
+ }
7348
+
7284
7349
 
7285
7350
 
7286
7351
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13308,11 +13373,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
13308
13373
  * @param {string} schema schema or database name
13309
13374
  * @param {string} type object type
13310
13375
  * @param {string} objectName object name
13376
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
13311
13377
  * @param {*} [options] Override http request option.
13312
13378
  * @throws {RequiredError}
13313
13379
  */
13314
- async getObjectInfo(orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsObjectResponse>> {
13315
- const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, options);
13380
+ 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>> {
13381
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectInfo(orgName, clusterName, id, schema, type, objectName, database, options);
13316
13382
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13317
13383
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getObjectInfo']?.[localVarOperationServerIndex]?.url;
13318
13384
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13424,11 +13490,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
13424
13490
  * @param {string} orgName name of the Org
13425
13491
  * @param {string} clusterName name of the cluster
13426
13492
  * @param {string} id id of the datasource
13493
+ * @param {string} [database] database name, used by engines such as MSSQL when listing schemas inside a database
13427
13494
  * @param {*} [options] Override http request option.
13428
13495
  * @throws {RequiredError}
13429
13496
  */
13430
- async getSchemaList(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
13431
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, options);
13497
+ async getSchemaList(orgName: string, clusterName: string, id: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
13498
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaList(orgName, clusterName, id, database, options);
13432
13499
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13433
13500
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getSchemaList']?.[localVarOperationServerIndex]?.url;
13434
13501
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13802,6 +13869,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
13802
13869
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listDatabases']?.[localVarOperationServerIndex]?.url;
13803
13870
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13804
13871
  },
13872
+ /**
13873
+ *
13874
+ * @summary list all databases of the datasource
13875
+ * @param {string} orgName name of the Org
13876
+ * @param {string} clusterName name of the cluster
13877
+ * @param {string} id id of the datasource
13878
+ * @param {*} [options] Override http request option.
13879
+ * @throws {RequiredError}
13880
+ */
13881
+ async listDmsDatabases(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
13882
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDmsDatabases(orgName, clusterName, id, options);
13883
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13884
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.listDmsDatabases']?.[localVarOperationServerIndex]?.url;
13885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13886
+ },
13805
13887
  /**
13806
13888
  *
13807
13889
  * @summary List cluster endpoints
@@ -14073,11 +14155,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
14073
14155
  * @param {string} id id of the datasource
14074
14156
  * @param {string} schema schema or database name
14075
14157
  * @param {string} type object type
14158
+ * @param {string} [database] database name, used by engines such as MSSQL when listing object names inside a schema
14076
14159
  * @param {*} [options] Override http request option.
14077
14160
  * @throws {RequiredError}
14078
14161
  */
14079
- async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14080
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, options);
14162
+ async listObjectNamesByType(orgName: string, clusterName: string, id: string, schema: string, type: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
14163
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectNamesByType(orgName, clusterName, id, schema, type, database, options);
14081
14164
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14082
14165
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listObjectNamesByType']?.[localVarOperationServerIndex]?.url;
14083
14166
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14089,11 +14172,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
14089
14172
  * @param {string} clusterName name of the cluster
14090
14173
  * @param {string} id id of the datasource
14091
14174
  * @param {string} schema schema or database name
14175
+ * @param {string} [database] database name, used by engines such as MSSQL when listing objects inside a schema
14092
14176
  * @param {*} [options] Override http request option.
14093
14177
  * @throws {RequiredError}
14094
14178
  */
14095
- async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
14096
- const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, options);
14179
+ async listObjectTypesInSchema(orgName: string, clusterName: string, id: string, schema: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsObject>>> {
14180
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectTypesInSchema(orgName, clusterName, id, schema, database, options);
14097
14181
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14098
14182
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listObjectTypesInSchema']?.[localVarOperationServerIndex]?.url;
14099
14183
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16472,7 +16556,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16472
16556
  * @throws {RequiredError}
16473
16557
  */
16474
16558
  getObjectInfo(requestParameters: SharedApiGetObjectInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsObjectResponse> {
16475
- return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, options).then((request) => request(axios, basePath));
16559
+ return localVarFp.getObjectInfo(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.objectName, requestParameters.database, options).then((request) => request(axios, basePath));
16476
16560
  },
16477
16561
  /**
16478
16562
  *
@@ -16552,7 +16636,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16552
16636
  * @throws {RequiredError}
16553
16637
  */
16554
16638
  getSchemaList(requestParameters: SharedApiGetSchemaListRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16555
- return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
16639
+ return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(axios, basePath));
16556
16640
  },
16557
16641
  /**
16558
16642
  * Get statistics summary for slow logs of a cluster
@@ -16783,6 +16867,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16783
16867
  listDatabases(requestParameters: SharedApiListDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DatabaseList> {
16784
16868
  return localVarFp.listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
16785
16869
  },
16870
+ /**
16871
+ *
16872
+ * @summary list all databases of the datasource
16873
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
16874
+ * @param {*} [options] Override http request option.
16875
+ * @throws {RequiredError}
16876
+ */
16877
+ listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16878
+ return localVarFp.listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
16879
+ },
16786
16880
  /**
16787
16881
  *
16788
16882
  * @summary List cluster endpoints
@@ -16969,7 +17063,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16969
17063
  * @throws {RequiredError}
16970
17064
  */
16971
17065
  listObjectNamesByType(requestParameters: SharedApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16972
- return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(axios, basePath));
17066
+ return localVarFp.listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, requestParameters.database, options).then((request) => request(axios, basePath));
16973
17067
  },
16974
17068
  /**
16975
17069
  *
@@ -16979,7 +17073,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16979
17073
  * @throws {RequiredError}
16980
17074
  */
16981
17075
  listObjectTypesInSchema(requestParameters: SharedApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsObject>> {
16982
- return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(axios, basePath));
17076
+ return localVarFp.listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(axios, basePath));
16983
17077
  },
16984
17078
  /**
16985
17079
  *
@@ -19136,6 +19230,16 @@ export interface SharedApiInterface {
19136
19230
  */
19137
19231
  listDatabases(requestParameters: SharedApiListDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DatabaseList>;
19138
19232
 
19233
+ /**
19234
+ *
19235
+ * @summary list all databases of the datasource
19236
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
19237
+ * @param {*} [options] Override http request option.
19238
+ * @throws {RequiredError}
19239
+ * @memberof SharedApiInterface
19240
+ */
19241
+ listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
19242
+
19139
19243
  /**
19140
19244
  *
19141
19245
  * @summary List cluster endpoints
@@ -22951,6 +23055,13 @@ export interface SharedApiGetObjectInfoRequest {
22951
23055
  * @memberof SharedApiGetObjectInfo
22952
23056
  */
22953
23057
  readonly objectName: string
23058
+
23059
+ /**
23060
+ * database name, used by engines such as MSSQL when reading object metadata inside a schema
23061
+ * @type {string}
23062
+ * @memberof SharedApiGetObjectInfo
23063
+ */
23064
+ readonly database?: string
22954
23065
  }
22955
23066
 
22956
23067
  /**
@@ -23147,6 +23258,13 @@ export interface SharedApiGetSchemaListRequest {
23147
23258
  * @memberof SharedApiGetSchemaList
23148
23259
  */
23149
23260
  readonly id: string
23261
+
23262
+ /**
23263
+ * database name, used by engines such as MSSQL when listing schemas inside a database
23264
+ * @type {string}
23265
+ * @memberof SharedApiGetSchemaList
23266
+ */
23267
+ readonly database?: string
23150
23268
  }
23151
23269
 
23152
23270
  /**
@@ -23954,6 +24072,34 @@ export interface SharedApiListDatabasesRequest {
23954
24072
  readonly clusterName: string
23955
24073
  }
23956
24074
 
24075
+ /**
24076
+ * Request parameters for listDmsDatabases operation in SharedApi.
24077
+ * @export
24078
+ * @interface SharedApiListDmsDatabasesRequest
24079
+ */
24080
+ export interface SharedApiListDmsDatabasesRequest {
24081
+ /**
24082
+ * name of the Org
24083
+ * @type {string}
24084
+ * @memberof SharedApiListDmsDatabases
24085
+ */
24086
+ readonly orgName: string
24087
+
24088
+ /**
24089
+ * name of the cluster
24090
+ * @type {string}
24091
+ * @memberof SharedApiListDmsDatabases
24092
+ */
24093
+ readonly clusterName: string
24094
+
24095
+ /**
24096
+ * id of the datasource
24097
+ * @type {string}
24098
+ * @memberof SharedApiListDmsDatabases
24099
+ */
24100
+ readonly id: string
24101
+ }
24102
+
23957
24103
  /**
23958
24104
  * Request parameters for listEndpoints operation in SharedApi.
23959
24105
  * @export
@@ -24435,6 +24581,13 @@ export interface SharedApiListObjectNamesByTypeRequest {
24435
24581
  * @memberof SharedApiListObjectNamesByType
24436
24582
  */
24437
24583
  readonly type: string
24584
+
24585
+ /**
24586
+ * database name, used by engines such as MSSQL when listing object names inside a schema
24587
+ * @type {string}
24588
+ * @memberof SharedApiListObjectNamesByType
24589
+ */
24590
+ readonly database?: string
24438
24591
  }
24439
24592
 
24440
24593
  /**
@@ -24470,6 +24623,13 @@ export interface SharedApiListObjectTypesInSchemaRequest {
24470
24623
  * @memberof SharedApiListObjectTypesInSchema
24471
24624
  */
24472
24625
  readonly schema: string
24626
+
24627
+ /**
24628
+ * database name, used by engines such as MSSQL when listing objects inside a schema
24629
+ * @type {string}
24630
+ * @memberof SharedApiListObjectTypesInSchema
24631
+ */
24632
+ readonly database?: string
24473
24633
  }
24474
24634
 
24475
24635
  /**
@@ -28654,7 +28814,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
28654
28814
  * @memberof SharedApi
28655
28815
  */
28656
28816
  public getObjectInfo(requestParameters: SharedApiGetObjectInfoRequest, options?: RawAxiosRequestConfig) {
28657
- 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));
28817
+ 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));
28658
28818
  }
28659
28819
 
28660
28820
  /**
@@ -28750,7 +28910,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
28750
28910
  * @memberof SharedApi
28751
28911
  */
28752
28912
  public getSchemaList(requestParameters: SharedApiGetSchemaListRequest, options?: RawAxiosRequestConfig) {
28753
- return SharedApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
28913
+ return SharedApiFp(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
28754
28914
  }
28755
28915
 
28756
28916
  /**
@@ -29028,6 +29188,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
29028
29188
  return SharedApiFp(this.configuration).listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
29029
29189
  }
29030
29190
 
29191
+ /**
29192
+ *
29193
+ * @summary list all databases of the datasource
29194
+ * @param {SharedApiListDmsDatabasesRequest} requestParameters Request parameters.
29195
+ * @param {*} [options] Override http request option.
29196
+ * @throws {RequiredError}
29197
+ * @memberof SharedApi
29198
+ */
29199
+ public listDmsDatabases(requestParameters: SharedApiListDmsDatabasesRequest, options?: RawAxiosRequestConfig) {
29200
+ return SharedApiFp(this.configuration).listDmsDatabases(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
29201
+ }
29202
+
29031
29203
  /**
29032
29204
  *
29033
29205
  * @summary List cluster endpoints
@@ -29251,7 +29423,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
29251
29423
  * @memberof SharedApi
29252
29424
  */
29253
29425
  public listObjectNamesByType(requestParameters: SharedApiListObjectNamesByTypeRequest, options?: RawAxiosRequestConfig) {
29254
- return SharedApiFp(this.configuration).listObjectNamesByType(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
29426
+ 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));
29255
29427
  }
29256
29428
 
29257
29429
  /**
@@ -29263,7 +29435,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
29263
29435
  * @memberof SharedApi
29264
29436
  */
29265
29437
  public listObjectTypesInSchema(requestParameters: SharedApiListObjectTypesInSchemaRequest, options?: RawAxiosRequestConfig) {
29266
- return SharedApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, options).then((request) => request(this.axios, this.basePath));
29438
+ return SharedApiFp(this.configuration).listObjectTypesInSchema(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, requestParameters.schema, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
29267
29439
  }
29268
29440
 
29269
29441
  /**
@@ -4776,6 +4776,39 @@ paths:
4776
4776
  $ref: '#/components/responses/403'
4777
4777
  '500':
4778
4778
  $ref: '#/components/responses/500'
4779
+ /admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases:
4780
+ get:
4781
+ tags:
4782
+ - dms
4783
+ - shared
4784
+ operationId: listDmsDatabases
4785
+ summary: list all databases of the datasource
4786
+ parameters:
4787
+ - name: orgName
4788
+ in: path
4789
+ description: name of the Org
4790
+ required: true
4791
+ schema:
4792
+ type: string
4793
+ - name: clusterName
4794
+ in: path
4795
+ description: name of the cluster
4796
+ required: true
4797
+ schema:
4798
+ type: string
4799
+ - name: id
4800
+ in: path
4801
+ description: id of the datasource
4802
+ required: true
4803
+ schema:
4804
+ type: string
4805
+ responses:
4806
+ '200':
4807
+ description: A successful response.
4808
+ content:
4809
+ application/json:
4810
+ schema:
4811
+ $ref: '#/components/schemas/DmsSchemaList'
4779
4812
  /admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/schemas:
4780
4813
  get:
4781
4814
  tags:
@@ -4802,6 +4835,12 @@ paths:
4802
4835
  required: true
4803
4836
  schema:
4804
4837
  type: string
4838
+ - name: database
4839
+ in: query
4840
+ description: database name, used by engines such as MSSQL when listing schemas inside a database
4841
+ required: false
4842
+ schema:
4843
+ type: string
4805
4844
  responses:
4806
4845
  '200':
4807
4846
  description: A successful response.
@@ -4841,6 +4880,12 @@ paths:
4841
4880
  required: true
4842
4881
  schema:
4843
4882
  type: string
4883
+ - name: database
4884
+ in: query
4885
+ description: database name, used by engines such as MSSQL when listing objects inside a schema
4886
+ required: false
4887
+ schema:
4888
+ type: string
4844
4889
  responses:
4845
4890
  '200':
4846
4891
  description: A successful response.
@@ -4886,6 +4931,12 @@ paths:
4886
4931
  required: true
4887
4932
  schema:
4888
4933
  type: string
4934
+ - name: database
4935
+ in: query
4936
+ description: database name, used by engines such as MSSQL when listing object names inside a schema
4937
+ required: false
4938
+ schema:
4939
+ type: string
4889
4940
  responses:
4890
4941
  '200':
4891
4942
  description: A successful response.
@@ -4937,6 +4988,12 @@ paths:
4937
4988
  required: true
4938
4989
  schema:
4939
4990
  type: string
4991
+ - name: database
4992
+ in: query
4993
+ description: database name, used by engines such as MSSQL when reading object metadata inside a schema
4994
+ required: false
4995
+ schema:
4996
+ type: string
4940
4997
  responses:
4941
4998
  '200':
4942
4999
  description: A successful response.