kb-cloud-client-typescript 2.4.0-alpha.52 → 2.4.0-alpha.53

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.
@@ -367,6 +367,7 @@ models/data-channel-parameter-key-value.ts
367
367
  models/data-channel-parameter.ts
368
368
  models/data-channel-progress.ts
369
369
  models/data-channel-response.ts
370
+ models/data-check-create.ts
370
371
  models/data-check-detail-item.ts
371
372
  models/data-check-detail-type.ts
372
373
  models/data-check-details.ts
@@ -374,6 +375,7 @@ models/data-check-diff-value.ts
374
375
  models/data-check-item.ts
375
376
  models/data-check-list-item.ts
376
377
  models/data-check-list-summary.ts
378
+ models/data-check-response.ts
377
379
  models/data-check-status.ts
378
380
  models/data-check-summary.ts
379
381
  models/data-check-table-summary.ts
@@ -30,6 +30,8 @@ import type { DataChannelItem } from '../models';
30
30
  // @ts-ignore
31
31
  import type { DataChannelResponse } from '../models';
32
32
  // @ts-ignore
33
+ import type { DataCheckCreate } from '../models';
34
+ // @ts-ignore
33
35
  import type { DataCheckDetailType } from '../models';
34
36
  // @ts-ignore
35
37
  import type { DataCheckDetails } from '../models';
@@ -38,8 +40,12 @@ import type { DataCheckItem } from '../models';
38
40
  // @ts-ignore
39
41
  import type { DataCheckListItem } from '../models';
40
42
  // @ts-ignore
43
+ import type { DataCheckResponse } from '../models';
44
+ // @ts-ignore
41
45
  import type { DataReplicationChannelContainer } from '../models';
42
46
  // @ts-ignore
47
+ import type { DataReplicationCreate } from '../models';
48
+ // @ts-ignore
43
49
  import type { DataReplicationOpsType } from '../models';
44
50
  // @ts-ignore
45
51
  import type { DataReplicationParametersResponseDetail } from '../models';
@@ -63,6 +69,100 @@ import type { ReplicationObjectTree } from '../models';
63
69
  */
64
70
  export const DataReplicationApiAxiosParamCreator = function (configuration?: Configuration) {
65
71
  return {
72
+ /**
73
+ * Create a new data channel.
74
+ * @summary Create a new data channel
75
+ * @param {string} orgName The Name of the organization
76
+ * @param {DataReplicationCreate} body
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ createAdminDataChannel: async (orgName: string, body: DataReplicationCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
81
+ // verify required parameter 'orgName' is not null or undefined
82
+ assertParamExists('createAdminDataChannel', 'orgName', orgName)
83
+ // verify required parameter 'body' is not null or undefined
84
+ assertParamExists('createAdminDataChannel', 'body', body)
85
+ const localVarPath = `/admin/v1/organizations/{orgName}/replication/channel`
86
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+
94
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
95
+ const localVarHeaderParameter = {} as any;
96
+ const localVarQueryParameter = {} as any;
97
+
98
+ // authentication BearerToken required
99
+ // http bearer authentication required
100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
101
+
102
+ // authentication DigestAuth required
103
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
104
+
105
+
106
+
107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
108
+
109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
112
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
113
+
114
+ return {
115
+ url: toPathString(localVarUrlObj),
116
+ options: localVarRequestOptions,
117
+ };
118
+ },
119
+ /**
120
+ * Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.
121
+ * @summary Create a data check
122
+ * @param {string} orgName The Name of the organization
123
+ * @param {DataCheckCreate} body
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ createAdminDataCheck: async (orgName: string, body: DataCheckCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
128
+ // verify required parameter 'orgName' is not null or undefined
129
+ assertParamExists('createAdminDataCheck', 'orgName', orgName)
130
+ // verify required parameter 'body' is not null or undefined
131
+ assertParamExists('createAdminDataCheck', 'body', body)
132
+ const localVarPath = `/admin/v1/organizations/{orgName}/checks`
133
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+
141
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
142
+ const localVarHeaderParameter = {} as any;
143
+ const localVarQueryParameter = {} as any;
144
+
145
+ // authentication BearerToken required
146
+ // http bearer authentication required
147
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
148
+
149
+ // authentication DigestAuth required
150
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
151
+
152
+
153
+
154
+ localVarHeaderParameter['Content-Type'] = 'application/json';
155
+
156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
159
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
160
+
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
66
166
  /**
67
167
  * Create a new data channel ops.
68
168
  * @summary Create a new data channel ops
@@ -985,6 +1085,34 @@ export const DataReplicationApiAxiosParamCreator = function (configuration?: Con
985
1085
  export const DataReplicationApiFp = function(configuration?: Configuration) {
986
1086
  const localVarAxiosParamCreator = DataReplicationApiAxiosParamCreator(configuration)
987
1087
  return {
1088
+ /**
1089
+ * Create a new data channel.
1090
+ * @summary Create a new data channel
1091
+ * @param {string} orgName The Name of the organization
1092
+ * @param {DataReplicationCreate} body
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ async createAdminDataChannel(orgName: string, body: DataReplicationCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataChannelResponse>> {
1097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminDataChannel(orgName, body, options);
1098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1099
+ const localVarOperationServerBasePath = operationServerMap['DataReplicationApi.createAdminDataChannel']?.[localVarOperationServerIndex]?.url;
1100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1101
+ },
1102
+ /**
1103
+ * Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.
1104
+ * @summary Create a data check
1105
+ * @param {string} orgName The Name of the organization
1106
+ * @param {DataCheckCreate} body
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ async createAdminDataCheck(orgName: string, body: DataCheckCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataCheckResponse>> {
1111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminDataCheck(orgName, body, options);
1112
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1113
+ const localVarOperationServerBasePath = operationServerMap['DataReplicationApi.createAdminDataCheck']?.[localVarOperationServerIndex]?.url;
1114
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1115
+ },
988
1116
  /**
989
1117
  * Create a new data channel ops.
990
1118
  * @summary Create a new data channel ops
@@ -1266,6 +1394,26 @@ export const DataReplicationApiFp = function(configuration?: Configuration) {
1266
1394
  export const DataReplicationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1267
1395
  const localVarFp = DataReplicationApiFp(configuration)
1268
1396
  return {
1397
+ /**
1398
+ * Create a new data channel.
1399
+ * @summary Create a new data channel
1400
+ * @param {DataReplicationApiCreateAdminDataChannelRequest} requestParameters Request parameters.
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ createAdminDataChannel(requestParameters: DataReplicationApiCreateAdminDataChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataChannelResponse> {
1405
+ return localVarFp.createAdminDataChannel(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
1406
+ },
1407
+ /**
1408
+ * Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.
1409
+ * @summary Create a data check
1410
+ * @param {DataReplicationApiCreateAdminDataCheckRequest} requestParameters Request parameters.
1411
+ * @param {*} [options] Override http request option.
1412
+ * @throws {RequiredError}
1413
+ */
1414
+ createAdminDataCheck(requestParameters: DataReplicationApiCreateAdminDataCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataCheckResponse> {
1415
+ return localVarFp.createAdminDataCheck(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
1416
+ },
1269
1417
  /**
1270
1418
  * Create a new data channel ops.
1271
1419
  * @summary Create a new data channel ops
@@ -1456,6 +1604,26 @@ export const DataReplicationApiFactory = function (configuration?: Configuration
1456
1604
  * @interface DataReplicationApi
1457
1605
  */
1458
1606
  export interface DataReplicationApiInterface {
1607
+ /**
1608
+ * Create a new data channel.
1609
+ * @summary Create a new data channel
1610
+ * @param {DataReplicationApiCreateAdminDataChannelRequest} requestParameters Request parameters.
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ * @memberof DataReplicationApiInterface
1614
+ */
1615
+ createAdminDataChannel(requestParameters: DataReplicationApiCreateAdminDataChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataChannelResponse>;
1616
+
1617
+ /**
1618
+ * Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.
1619
+ * @summary Create a data check
1620
+ * @param {DataReplicationApiCreateAdminDataCheckRequest} requestParameters Request parameters.
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ * @memberof DataReplicationApiInterface
1624
+ */
1625
+ createAdminDataCheck(requestParameters: DataReplicationApiCreateAdminDataCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataCheckResponse>;
1626
+
1459
1627
  /**
1460
1628
  * Create a new data channel ops.
1461
1629
  * @summary Create a new data channel ops
@@ -1639,6 +1807,48 @@ export interface DataReplicationApiInterface {
1639
1807
 
1640
1808
  }
1641
1809
 
1810
+ /**
1811
+ * Request parameters for createAdminDataChannel operation in DataReplicationApi.
1812
+ * @export
1813
+ * @interface DataReplicationApiCreateAdminDataChannelRequest
1814
+ */
1815
+ export interface DataReplicationApiCreateAdminDataChannelRequest {
1816
+ /**
1817
+ * The Name of the organization
1818
+ * @type {string}
1819
+ * @memberof DataReplicationApiCreateAdminDataChannel
1820
+ */
1821
+ readonly orgName: string
1822
+
1823
+ /**
1824
+ *
1825
+ * @type {DataReplicationCreate}
1826
+ * @memberof DataReplicationApiCreateAdminDataChannel
1827
+ */
1828
+ readonly body: DataReplicationCreate
1829
+ }
1830
+
1831
+ /**
1832
+ * Request parameters for createAdminDataCheck operation in DataReplicationApi.
1833
+ * @export
1834
+ * @interface DataReplicationApiCreateAdminDataCheckRequest
1835
+ */
1836
+ export interface DataReplicationApiCreateAdminDataCheckRequest {
1837
+ /**
1838
+ * The Name of the organization
1839
+ * @type {string}
1840
+ * @memberof DataReplicationApiCreateAdminDataCheck
1841
+ */
1842
+ readonly orgName: string
1843
+
1844
+ /**
1845
+ *
1846
+ * @type {DataCheckCreate}
1847
+ * @memberof DataReplicationApiCreateAdminDataCheck
1848
+ */
1849
+ readonly body: DataCheckCreate
1850
+ }
1851
+
1642
1852
  /**
1643
1853
  * Request parameters for createDataChannelOps operation in DataReplicationApi.
1644
1854
  * @export
@@ -2150,6 +2360,30 @@ export interface DataReplicationApiUpdateDataChannelRequest {
2150
2360
  * @extends {BaseAPI}
2151
2361
  */
2152
2362
  export class DataReplicationApi extends BaseAPI implements DataReplicationApiInterface {
2363
+ /**
2364
+ * Create a new data channel.
2365
+ * @summary Create a new data channel
2366
+ * @param {DataReplicationApiCreateAdminDataChannelRequest} requestParameters Request parameters.
2367
+ * @param {*} [options] Override http request option.
2368
+ * @throws {RequiredError}
2369
+ * @memberof DataReplicationApi
2370
+ */
2371
+ public createAdminDataChannel(requestParameters: DataReplicationApiCreateAdminDataChannelRequest, options?: RawAxiosRequestConfig) {
2372
+ return DataReplicationApiFp(this.configuration).createAdminDataChannel(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2373
+ }
2374
+
2375
+ /**
2376
+ * Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.
2377
+ * @summary Create a data check
2378
+ * @param {DataReplicationApiCreateAdminDataCheckRequest} requestParameters Request parameters.
2379
+ * @param {*} [options] Override http request option.
2380
+ * @throws {RequiredError}
2381
+ * @memberof DataReplicationApi
2382
+ */
2383
+ public createAdminDataCheck(requestParameters: DataReplicationApiCreateAdminDataCheckRequest, options?: RawAxiosRequestConfig) {
2384
+ return DataReplicationApiFp(this.configuration).createAdminDataCheck(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2385
+ }
2386
+
2153
2387
  /**
2154
2388
  * Create a new data channel ops.
2155
2389
  * @summary Create a new data channel ops
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { DataChannelEndpointCreate } from './data-channel-endpoint-create';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { DataChannelObject } from './data-channel-object';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { DataCheckType } from './data-check-type';
25
+
26
+ /**
27
+ * Exactly one entry point must be used. Provide channelID with checkType to create from an existing channel, or provide environmentID, project, source, target, replicationObjects, and checkType for direct creation.
28
+ * @export
29
+ * @interface DataCheckCreate
30
+ */
31
+ export interface DataCheckCreate {
32
+ /**
33
+ *
34
+ * @type {DataCheckType}
35
+ * @memberof DataCheckCreate
36
+ */
37
+ 'checkType': DataCheckType;
38
+ /**
39
+ * Existing data replication channel ID used only as a create-time shortcut.
40
+ * @type {string}
41
+ * @memberof DataCheckCreate
42
+ */
43
+ 'channelID'?: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof DataCheckCreate
48
+ */
49
+ 'checkName'?: string | null;
50
+ /**
51
+ * Environment UUID for direct check creation.
52
+ * @type {string}
53
+ * @memberof DataCheckCreate
54
+ */
55
+ 'environmentID'?: string;
56
+ /**
57
+ * Kubernetes namespace for direct check creation.
58
+ * @type {string}
59
+ * @memberof DataCheckCreate
60
+ */
61
+ 'project'?: string;
62
+ /**
63
+ *
64
+ * @type {DataChannelEndpointCreate}
65
+ * @memberof DataCheckCreate
66
+ */
67
+ 'source'?: DataChannelEndpointCreate;
68
+ /**
69
+ *
70
+ * @type {DataChannelEndpointCreate}
71
+ * @memberof DataCheckCreate
72
+ */
73
+ 'target'?: DataChannelEndpointCreate;
74
+ /**
75
+ *
76
+ * @type {DataChannelObject}
77
+ * @memberof DataCheckCreate
78
+ */
79
+ 'replicationObjects'?: DataChannelObject;
80
+ }
81
+
82
+
83
+
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DataCheckResponse
21
+ */
22
+ export interface DataCheckResponse {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DataCheckResponse
27
+ */
28
+ 'checkID'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DataCheckResponse
33
+ */
34
+ 'checkName'?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof DataCheckResponse
39
+ */
40
+ 'createdAt'?: string;
41
+ }
42
+
@@ -266,6 +266,7 @@ export * from './data-channel-parameter';
266
266
  export * from './data-channel-parameter-key-value';
267
267
  export * from './data-channel-progress';
268
268
  export * from './data-channel-response';
269
+ export * from './data-check-create';
269
270
  export * from './data-check-detail-item';
270
271
  export * from './data-check-detail-type';
271
272
  export * from './data-check-details';
@@ -273,6 +274,7 @@ export * from './data-check-diff-value';
273
274
  export * from './data-check-item';
274
275
  export * from './data-check-list-item';
275
276
  export * from './data-check-list-summary';
277
+ export * from './data-check-response';
276
278
  export * from './data-check-status';
277
279
  export * from './data-check-summary';
278
280
  export * from './data-check-table-summary';