kb-cloud-client-typescript 2.4.0-alpha.64 → 2.4.0-alpha.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-jar-api.d.ts +702 -0
  6. package/dist/adminapi/apis/cluster-jar-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/cluster-jar-api.js +758 -0
  8. package/dist/adminapi/apis/cluster-jar-api.js.map +1 -0
  9. package/dist/adminapi/apis/environment-api.d.ts +95 -0
  10. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/environment-api.js +93 -0
  12. package/dist/adminapi/apis/environment-api.js.map +1 -1
  13. package/dist/adminapi/apis/parameter-template-api.d.ts +18 -10
  14. package/dist/adminapi/apis/parameter-template-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/parameter-template-api.js +16 -11
  16. package/dist/adminapi/apis/parameter-template-api.js.map +1 -1
  17. package/dist/adminapi/apis/shared-api.d.ts +654 -0
  18. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  19. package/dist/adminapi/apis/shared-api.js +694 -0
  20. package/dist/adminapi/apis/shared-api.js.map +1 -1
  21. package/dist/adminapi/models/cluster-jar-config.d.ts +61 -0
  22. package/dist/adminapi/models/cluster-jar-config.d.ts.map +1 -0
  23. package/dist/adminapi/models/cluster-jar-config.js +16 -0
  24. package/dist/adminapi/models/cluster-jar-config.js.map +1 -0
  25. package/dist/adminapi/models/cluster-jar-kind.d.ts +22 -0
  26. package/dist/adminapi/models/cluster-jar-kind.d.ts.map +1 -0
  27. package/dist/adminapi/models/cluster-jar-kind.js +26 -0
  28. package/dist/adminapi/models/cluster-jar-kind.js.map +1 -0
  29. package/dist/adminapi/models/cluster-jar-list.d.ts +32 -0
  30. package/dist/adminapi/models/cluster-jar-list.d.ts.map +1 -0
  31. package/dist/adminapi/models/cluster-jar-list.js +16 -0
  32. package/dist/adminapi/models/cluster-jar-list.js.map +1 -0
  33. package/dist/adminapi/models/cluster-jar-package.d.ts +111 -0
  34. package/dist/adminapi/models/cluster-jar-package.d.ts.map +1 -0
  35. package/dist/adminapi/models/cluster-jar-package.js +16 -0
  36. package/dist/adminapi/models/cluster-jar-package.js.map +1 -0
  37. package/dist/adminapi/models/cluster-jar-publish.d.ts +25 -0
  38. package/dist/adminapi/models/cluster-jar-publish.d.ts.map +1 -0
  39. package/dist/adminapi/models/cluster-jar-publish.js +16 -0
  40. package/dist/adminapi/models/cluster-jar-publish.js.map +1 -0
  41. package/dist/adminapi/models/cluster-jar-replica.d.ts +61 -0
  42. package/dist/adminapi/models/cluster-jar-replica.d.ts.map +1 -0
  43. package/dist/adminapi/models/cluster-jar-replica.js +16 -0
  44. package/dist/adminapi/models/cluster-jar-replica.js.map +1 -0
  45. package/dist/adminapi/models/cluster-jar-task.d.ts +25 -0
  46. package/dist/adminapi/models/cluster-jar-task.d.ts.map +1 -0
  47. package/dist/adminapi/models/cluster-jar-task.js +16 -0
  48. package/dist/adminapi/models/cluster-jar-task.js.map +1 -0
  49. package/dist/adminapi/models/engine-option-history.d.ts +5 -4
  50. package/dist/adminapi/models/engine-option-history.d.ts.map +1 -1
  51. package/dist/adminapi/models/index.d.ts +7 -0
  52. package/dist/adminapi/models/index.d.ts.map +1 -1
  53. package/dist/adminapi/models/index.js +7 -0
  54. package/dist/adminapi/models/index.js.map +1 -1
  55. package/dist/openapi/api.d.ts +1 -0
  56. package/dist/openapi/api.d.ts.map +1 -1
  57. package/dist/openapi/api.js +1 -0
  58. package/dist/openapi/api.js.map +1 -1
  59. package/dist/openapi/apis/cluster-jar-api.d.ts +702 -0
  60. package/dist/openapi/apis/cluster-jar-api.d.ts.map +1 -0
  61. package/dist/openapi/apis/cluster-jar-api.js +758 -0
  62. package/dist/openapi/apis/cluster-jar-api.js.map +1 -0
  63. package/dist/openapi/apis/shared-api.d.ts +654 -0
  64. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  65. package/dist/openapi/apis/shared-api.js +694 -0
  66. package/dist/openapi/apis/shared-api.js.map +1 -1
  67. package/dist/openapi/models/cluster-jar-config.d.ts +61 -0
  68. package/dist/openapi/models/cluster-jar-config.d.ts.map +1 -0
  69. package/dist/openapi/models/cluster-jar-config.js +16 -0
  70. package/dist/openapi/models/cluster-jar-config.js.map +1 -0
  71. package/dist/openapi/models/cluster-jar-kind.d.ts +22 -0
  72. package/dist/openapi/models/cluster-jar-kind.d.ts.map +1 -0
  73. package/dist/openapi/models/cluster-jar-kind.js +26 -0
  74. package/dist/openapi/models/cluster-jar-kind.js.map +1 -0
  75. package/dist/openapi/models/cluster-jar-list.d.ts +32 -0
  76. package/dist/openapi/models/cluster-jar-list.d.ts.map +1 -0
  77. package/dist/openapi/models/cluster-jar-list.js +16 -0
  78. package/dist/openapi/models/cluster-jar-list.js.map +1 -0
  79. package/dist/openapi/models/cluster-jar-package.d.ts +111 -0
  80. package/dist/openapi/models/cluster-jar-package.d.ts.map +1 -0
  81. package/dist/openapi/models/cluster-jar-package.js +16 -0
  82. package/dist/openapi/models/cluster-jar-package.js.map +1 -0
  83. package/dist/openapi/models/cluster-jar-publish.d.ts +25 -0
  84. package/dist/openapi/models/cluster-jar-publish.d.ts.map +1 -0
  85. package/dist/openapi/models/cluster-jar-publish.js +16 -0
  86. package/dist/openapi/models/cluster-jar-publish.js.map +1 -0
  87. package/dist/openapi/models/cluster-jar-replica.d.ts +61 -0
  88. package/dist/openapi/models/cluster-jar-replica.d.ts.map +1 -0
  89. package/dist/openapi/models/cluster-jar-replica.js +16 -0
  90. package/dist/openapi/models/cluster-jar-replica.js.map +1 -0
  91. package/dist/openapi/models/cluster-jar-task.d.ts +25 -0
  92. package/dist/openapi/models/cluster-jar-task.d.ts.map +1 -0
  93. package/dist/openapi/models/cluster-jar-task.js +16 -0
  94. package/dist/openapi/models/cluster-jar-task.js.map +1 -0
  95. package/dist/openapi/models/index.d.ts +7 -0
  96. package/dist/openapi/models/index.d.ts.map +1 -1
  97. package/dist/openapi/models/index.js +7 -0
  98. package/dist/openapi/models/index.js.map +1 -1
  99. package/package.json +1 -1
  100. package/src/adminapi/.openapi-generator/FILES +8 -0
  101. package/src/adminapi/api.ts +1 -0
  102. package/src/adminapi/apis/cluster-jar-api.ts +1211 -0
  103. package/src/adminapi/apis/environment-api.ts +155 -0
  104. package/src/adminapi/apis/parameter-template-api.ts +26 -13
  105. package/src/adminapi/apis/shared-api.ts +1141 -0
  106. package/src/adminapi/models/cluster-jar-config.ts +66 -0
  107. package/src/adminapi/models/cluster-jar-kind.ts +31 -0
  108. package/src/adminapi/models/cluster-jar-list.ts +39 -0
  109. package/src/adminapi/models/cluster-jar-package.ts +122 -0
  110. package/src/adminapi/models/cluster-jar-publish.ts +30 -0
  111. package/src/adminapi/models/cluster-jar-replica.ts +66 -0
  112. package/src/adminapi/models/cluster-jar-task.ts +30 -0
  113. package/src/adminapi/models/engine-option-history.ts +3 -6
  114. package/src/adminapi/models/index.ts +7 -0
  115. package/src/adminapi.yaml +682 -72
  116. package/src/internalapi.yaml +2 -4
  117. package/src/openapi/.openapi-generator/FILES +8 -0
  118. package/src/openapi/api.ts +1 -0
  119. package/src/openapi/apis/cluster-jar-api.ts +1211 -0
  120. package/src/openapi/apis/shared-api.ts +1165 -24
  121. package/src/openapi/models/cluster-jar-config.ts +66 -0
  122. package/src/openapi/models/cluster-jar-kind.ts +31 -0
  123. package/src/openapi/models/cluster-jar-list.ts +39 -0
  124. package/src/openapi/models/cluster-jar-package.ts +122 -0
  125. package/src/openapi/models/cluster-jar-publish.ts +30 -0
  126. package/src/openapi/models/cluster-jar-replica.ts +66 -0
  127. package/src/openapi/models/cluster-jar-task.ts +30 -0
  128. package/src/openapi/models/index.ts +7 -0
  129. package/src/openapi.yaml +606 -65
@@ -0,0 +1,1211 @@
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
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { APIErrorResponse } from '../models';
26
+ // @ts-ignore
27
+ import type { ClusterJarConfig } from '../models';
28
+ // @ts-ignore
29
+ import type { ClusterJarKind } from '../models';
30
+ // @ts-ignore
31
+ import type { ClusterJarList } from '../models';
32
+ // @ts-ignore
33
+ import type { ClusterJarPackage } from '../models';
34
+ // @ts-ignore
35
+ import type { ClusterJarPublish } from '../models';
36
+ // @ts-ignore
37
+ import type { ClusterJarTask } from '../models';
38
+ /**
39
+ * ClusterJarApi - axios parameter creator
40
+ * @export
41
+ */
42
+ export const ClusterJarApiAxiosParamCreator = function (configuration?: Configuration) {
43
+ return {
44
+ /**
45
+ *
46
+ * @summary Archive a JAR while retaining published files and startup synchronization
47
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
48
+ * @param {string} orgName
49
+ * @param {string} clusterName
50
+ * @param {string} jarId
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ archiveClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ // verify required parameter 'engineName' is not null or undefined
56
+ assertParamExists('archiveClusterJar', 'engineName', engineName)
57
+ // verify required parameter 'orgName' is not null or undefined
58
+ assertParamExists('archiveClusterJar', 'orgName', orgName)
59
+ // verify required parameter 'clusterName' is not null or undefined
60
+ assertParamExists('archiveClusterJar', 'clusterName', clusterName)
61
+ // verify required parameter 'jarId' is not null or undefined
62
+ assertParamExists('archiveClusterJar', 'jarId', jarId)
63
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
64
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
65
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
66
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
67
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
68
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
69
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
70
+ let baseOptions;
71
+ if (configuration) {
72
+ baseOptions = configuration.baseOptions;
73
+ }
74
+
75
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
76
+ const localVarHeaderParameter = {} as any;
77
+ const localVarQueryParameter = {} as any;
78
+
79
+ // authentication BearerToken required
80
+ // http bearer authentication required
81
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
82
+
83
+ // authentication DigestAuth required
84
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
85
+
86
+
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+
92
+ return {
93
+ url: toPathString(localVarUrlObj),
94
+ options: localVarRequestOptions,
95
+ };
96
+ },
97
+ /**
98
+ *
99
+ * @summary Delete an unpublished JAR version
100
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
101
+ * @param {string} orgName
102
+ * @param {string} clusterName
103
+ * @param {string} jarId
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ deleteClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
108
+ // verify required parameter 'engineName' is not null or undefined
109
+ assertParamExists('deleteClusterJar', 'engineName', engineName)
110
+ // verify required parameter 'orgName' is not null or undefined
111
+ assertParamExists('deleteClusterJar', 'orgName', orgName)
112
+ // verify required parameter 'clusterName' is not null or undefined
113
+ assertParamExists('deleteClusterJar', 'clusterName', clusterName)
114
+ // verify required parameter 'jarId' is not null or undefined
115
+ assertParamExists('deleteClusterJar', 'jarId', jarId)
116
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}`
117
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
118
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
119
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
120
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
123
+ let baseOptions;
124
+ if (configuration) {
125
+ baseOptions = configuration.baseOptions;
126
+ }
127
+
128
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
129
+ const localVarHeaderParameter = {} as any;
130
+ const localVarQueryParameter = {} as any;
131
+
132
+ // authentication BearerToken required
133
+ // http bearer authentication required
134
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
135
+
136
+ // authentication DigestAuth required
137
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
138
+
139
+
140
+
141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
+
145
+ return {
146
+ url: toPathString(localVarUrlObj),
147
+ options: localVarRequestOptions,
148
+ };
149
+ },
150
+ /**
151
+ *
152
+ * @summary Publish a JAR with optimistic manifest version checking
153
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
154
+ * @param {string} orgName
155
+ * @param {string} clusterName
156
+ * @param {string} jarId
157
+ * @param {ClusterJarPublish} clusterJarPublish
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ distributeClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, clusterJarPublish: ClusterJarPublish, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ // verify required parameter 'engineName' is not null or undefined
163
+ assertParamExists('distributeClusterJar', 'engineName', engineName)
164
+ // verify required parameter 'orgName' is not null or undefined
165
+ assertParamExists('distributeClusterJar', 'orgName', orgName)
166
+ // verify required parameter 'clusterName' is not null or undefined
167
+ assertParamExists('distributeClusterJar', 'clusterName', clusterName)
168
+ // verify required parameter 'jarId' is not null or undefined
169
+ assertParamExists('distributeClusterJar', 'jarId', jarId)
170
+ // verify required parameter 'clusterJarPublish' is not null or undefined
171
+ assertParamExists('distributeClusterJar', 'clusterJarPublish', clusterJarPublish)
172
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute`
173
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
174
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
175
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
176
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+
184
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
185
+ const localVarHeaderParameter = {} as any;
186
+ const localVarQueryParameter = {} as any;
187
+
188
+ // authentication BearerToken required
189
+ // http bearer authentication required
190
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
191
+
192
+ // authentication DigestAuth required
193
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
194
+
195
+
196
+
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+
199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
202
+ localVarRequestOptions.data = serializeDataIfNeeded(clusterJarPublish, localVarRequestOptions, configuration)
203
+
204
+ return {
205
+ url: toPathString(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ },
209
+ /**
210
+ *
211
+ * @summary Download the original JAR
212
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
213
+ * @param {string} orgName
214
+ * @param {string} clusterName
215
+ * @param {string} jarId
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ downloadClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
220
+ // verify required parameter 'engineName' is not null or undefined
221
+ assertParamExists('downloadClusterJar', 'engineName', engineName)
222
+ // verify required parameter 'orgName' is not null or undefined
223
+ assertParamExists('downloadClusterJar', 'orgName', orgName)
224
+ // verify required parameter 'clusterName' is not null or undefined
225
+ assertParamExists('downloadClusterJar', 'clusterName', clusterName)
226
+ // verify required parameter 'jarId' is not null or undefined
227
+ assertParamExists('downloadClusterJar', 'jarId', jarId)
228
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download`
229
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
230
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
231
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
232
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+
240
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
241
+ const localVarHeaderParameter = {} as any;
242
+ const localVarQueryParameter = {} as any;
243
+
244
+ // authentication BearerToken required
245
+ // http bearer authentication required
246
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
247
+
248
+ // authentication DigestAuth required
249
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
250
+
251
+
252
+
253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
256
+
257
+ return {
258
+ url: toPathString(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ },
262
+ /**
263
+ *
264
+ * @summary Get external JAR capability and configuration
265
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
266
+ * @param {string} orgName
267
+ * @param {string} clusterName
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getClusterJarConfig: async (engineName: string, orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ // verify required parameter 'engineName' is not null or undefined
273
+ assertParamExists('getClusterJarConfig', 'engineName', engineName)
274
+ // verify required parameter 'orgName' is not null or undefined
275
+ assertParamExists('getClusterJarConfig', 'orgName', orgName)
276
+ // verify required parameter 'clusterName' is not null or undefined
277
+ assertParamExists('getClusterJarConfig', 'clusterName', clusterName)
278
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/config`
279
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
280
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
281
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
284
+ let baseOptions;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ }
288
+
289
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
290
+ const localVarHeaderParameter = {} as any;
291
+ const localVarQueryParameter = {} as any;
292
+
293
+ // authentication BearerToken required
294
+ // http bearer authentication required
295
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
296
+
297
+ // authentication DigestAuth required
298
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
299
+
300
+
301
+
302
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
305
+
306
+ return {
307
+ url: toPathString(localVarUrlObj),
308
+ options: localVarRequestOptions,
309
+ };
310
+ },
311
+ /**
312
+ *
313
+ * @summary List external JAR versions with metadata and per-instance synchronization state
314
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
315
+ * @param {string} orgName
316
+ * @param {string} clusterName
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ listClusterJars: async (engineName: string, orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
321
+ // verify required parameter 'engineName' is not null or undefined
322
+ assertParamExists('listClusterJars', 'engineName', engineName)
323
+ // verify required parameter 'orgName' is not null or undefined
324
+ assertParamExists('listClusterJars', 'orgName', orgName)
325
+ // verify required parameter 'clusterName' is not null or undefined
326
+ assertParamExists('listClusterJars', 'clusterName', clusterName)
327
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
328
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
329
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
330
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
332
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
333
+ let baseOptions;
334
+ if (configuration) {
335
+ baseOptions = configuration.baseOptions;
336
+ }
337
+
338
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
339
+ const localVarHeaderParameter = {} as any;
340
+ const localVarQueryParameter = {} as any;
341
+
342
+ // authentication BearerToken required
343
+ // http bearer authentication required
344
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
345
+
346
+ // authentication DigestAuth required
347
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
348
+
349
+
350
+
351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
354
+
355
+ return {
356
+ url: toPathString(localVarUrlObj),
357
+ options: localVarRequestOptions,
358
+ };
359
+ },
360
+ /**
361
+ *
362
+ * @summary Retry synchronization of published JARs
363
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
364
+ * @param {string} orgName
365
+ * @param {string} clusterName
366
+ * @param {string} jarId
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ retryClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
371
+ // verify required parameter 'engineName' is not null or undefined
372
+ assertParamExists('retryClusterJar', 'engineName', engineName)
373
+ // verify required parameter 'orgName' is not null or undefined
374
+ assertParamExists('retryClusterJar', 'orgName', orgName)
375
+ // verify required parameter 'clusterName' is not null or undefined
376
+ assertParamExists('retryClusterJar', 'clusterName', clusterName)
377
+ // verify required parameter 'jarId' is not null or undefined
378
+ assertParamExists('retryClusterJar', 'jarId', jarId)
379
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/retry`
380
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
381
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
382
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
383
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
386
+ let baseOptions;
387
+ if (configuration) {
388
+ baseOptions = configuration.baseOptions;
389
+ }
390
+
391
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
392
+ const localVarHeaderParameter = {} as any;
393
+ const localVarQueryParameter = {} as any;
394
+
395
+ // authentication BearerToken required
396
+ // http bearer authentication required
397
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
398
+
399
+ // authentication DigestAuth required
400
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
401
+
402
+
403
+
404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
406
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
407
+
408
+ return {
409
+ url: toPathString(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ },
413
+ /**
414
+ *
415
+ * @summary Upload an immutable JAR version
416
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
417
+ * @param {string} orgName
418
+ * @param {string} clusterName
419
+ * @param {string} idempotencyKey
420
+ * @param {string} name
421
+ * @param {ClusterJarKind} kind
422
+ * @param {File} file
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ uploadClusterJar: async (engineName: string, orgName: string, clusterName: string, idempotencyKey: string, name: string, kind: ClusterJarKind, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
427
+ // verify required parameter 'engineName' is not null or undefined
428
+ assertParamExists('uploadClusterJar', 'engineName', engineName)
429
+ // verify required parameter 'orgName' is not null or undefined
430
+ assertParamExists('uploadClusterJar', 'orgName', orgName)
431
+ // verify required parameter 'clusterName' is not null or undefined
432
+ assertParamExists('uploadClusterJar', 'clusterName', clusterName)
433
+ // verify required parameter 'idempotencyKey' is not null or undefined
434
+ assertParamExists('uploadClusterJar', 'idempotencyKey', idempotencyKey)
435
+ // verify required parameter 'name' is not null or undefined
436
+ assertParamExists('uploadClusterJar', 'name', name)
437
+ // verify required parameter 'kind' is not null or undefined
438
+ assertParamExists('uploadClusterJar', 'kind', kind)
439
+ // verify required parameter 'file' is not null or undefined
440
+ assertParamExists('uploadClusterJar', 'file', file)
441
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
442
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
443
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
444
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
446
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
447
+ let baseOptions;
448
+ if (configuration) {
449
+ baseOptions = configuration.baseOptions;
450
+ }
451
+
452
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
453
+ const localVarHeaderParameter = {} as any;
454
+ const localVarQueryParameter = {} as any;
455
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
456
+
457
+ // authentication BearerToken required
458
+ // http bearer authentication required
459
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
460
+
461
+ // authentication DigestAuth required
462
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
463
+
464
+
465
+ if (name !== undefined) {
466
+ localVarFormParams.append('name', name as any);
467
+ }
468
+
469
+ if (kind !== undefined) {
470
+ localVarFormParams.append('kind', kind as any);
471
+ }
472
+
473
+ if (file !== undefined) {
474
+ localVarFormParams.append('file', file as any);
475
+ }
476
+
477
+
478
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
479
+
480
+ if (idempotencyKey != null) {
481
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
482
+ }
483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
485
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
486
+ localVarRequestOptions.data = localVarFormParams;
487
+
488
+ return {
489
+ url: toPathString(localVarUrlObj),
490
+ options: localVarRequestOptions,
491
+ };
492
+ },
493
+ }
494
+ };
495
+
496
+ /**
497
+ * ClusterJarApi - functional programming interface
498
+ * @export
499
+ */
500
+ export const ClusterJarApiFp = function(configuration?: Configuration) {
501
+ const localVarAxiosParamCreator = ClusterJarApiAxiosParamCreator(configuration)
502
+ return {
503
+ /**
504
+ *
505
+ * @summary Archive a JAR while retaining published files and startup synchronization
506
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
507
+ * @param {string} orgName
508
+ * @param {string} clusterName
509
+ * @param {string} jarId
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ async archiveClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
516
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.archiveClusterJar']?.[localVarOperationServerIndex]?.url;
517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
518
+ },
519
+ /**
520
+ *
521
+ * @summary Delete an unpublished JAR version
522
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
523
+ * @param {string} orgName
524
+ * @param {string} clusterName
525
+ * @param {string} jarId
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ async deleteClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterJar(engineName, orgName, clusterName, jarId, options);
531
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
532
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.deleteClusterJar']?.[localVarOperationServerIndex]?.url;
533
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
534
+ },
535
+ /**
536
+ *
537
+ * @summary Publish a JAR with optimistic manifest version checking
538
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
539
+ * @param {string} orgName
540
+ * @param {string} clusterName
541
+ * @param {string} jarId
542
+ * @param {ClusterJarPublish} clusterJarPublish
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ async distributeClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, clusterJarPublish: ClusterJarPublish, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterJarTask>> {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributeClusterJar(engineName, orgName, clusterName, jarId, clusterJarPublish, options);
548
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
549
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.distributeClusterJar']?.[localVarOperationServerIndex]?.url;
550
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
551
+ },
552
+ /**
553
+ *
554
+ * @summary Download the original JAR
555
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
556
+ * @param {string} orgName
557
+ * @param {string} clusterName
558
+ * @param {string} jarId
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ async downloadClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadClusterJar(engineName, orgName, clusterName, jarId, options);
564
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
565
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.downloadClusterJar']?.[localVarOperationServerIndex]?.url;
566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
+ },
568
+ /**
569
+ *
570
+ * @summary Get external JAR capability and configuration
571
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
572
+ * @param {string} orgName
573
+ * @param {string} clusterName
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ async getClusterJarConfig(engineName: string, orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterJarConfig>> {
578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterJarConfig(engineName, orgName, clusterName, options);
579
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
580
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.getClusterJarConfig']?.[localVarOperationServerIndex]?.url;
581
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
582
+ },
583
+ /**
584
+ *
585
+ * @summary List external JAR versions with metadata and per-instance synchronization state
586
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
587
+ * @param {string} orgName
588
+ * @param {string} clusterName
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ async listClusterJars(engineName: string, orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterJarList>> {
593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterJars(engineName, orgName, clusterName, options);
594
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
595
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.listClusterJars']?.[localVarOperationServerIndex]?.url;
596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
597
+ },
598
+ /**
599
+ *
600
+ * @summary Retry synchronization of published JARs
601
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
602
+ * @param {string} orgName
603
+ * @param {string} clusterName
604
+ * @param {string} jarId
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ async retryClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterJarTask>> {
609
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryClusterJar(engineName, orgName, clusterName, jarId, options);
610
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
611
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.retryClusterJar']?.[localVarOperationServerIndex]?.url;
612
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
613
+ },
614
+ /**
615
+ *
616
+ * @summary Upload an immutable JAR version
617
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
618
+ * @param {string} orgName
619
+ * @param {string} clusterName
620
+ * @param {string} idempotencyKey
621
+ * @param {string} name
622
+ * @param {ClusterJarKind} kind
623
+ * @param {File} file
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ async uploadClusterJar(engineName: string, orgName: string, clusterName: string, idempotencyKey: string, name: string, kind: ClusterJarKind, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterJarPackage>> {
628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadClusterJar(engineName, orgName, clusterName, idempotencyKey, name, kind, file, options);
629
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
630
+ const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.uploadClusterJar']?.[localVarOperationServerIndex]?.url;
631
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
632
+ },
633
+ }
634
+ };
635
+
636
+ /**
637
+ * ClusterJarApi - factory interface
638
+ * @export
639
+ */
640
+ export const ClusterJarApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
641
+ const localVarFp = ClusterJarApiFp(configuration)
642
+ return {
643
+ /**
644
+ *
645
+ * @summary Archive a JAR while retaining published files and startup synchronization
646
+ * @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
651
+ return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
652
+ },
653
+ /**
654
+ *
655
+ * @summary Delete an unpublished JAR version
656
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ deleteClusterJar(requestParameters: ClusterJarApiDeleteClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
661
+ return localVarFp.deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
662
+ },
663
+ /**
664
+ *
665
+ * @summary Publish a JAR with optimistic manifest version checking
666
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ distributeClusterJar(requestParameters: ClusterJarApiDistributeClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarTask> {
671
+ return localVarFp.distributeClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, requestParameters.clusterJarPublish, options).then((request) => request(axios, basePath));
672
+ },
673
+ /**
674
+ *
675
+ * @summary Download the original JAR
676
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ downloadClusterJar(requestParameters: ClusterJarApiDownloadClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
681
+ return localVarFp.downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
682
+ },
683
+ /**
684
+ *
685
+ * @summary Get external JAR capability and configuration
686
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ getClusterJarConfig(requestParameters: ClusterJarApiGetClusterJarConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarConfig> {
691
+ return localVarFp.getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
692
+ },
693
+ /**
694
+ *
695
+ * @summary List external JAR versions with metadata and per-instance synchronization state
696
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ listClusterJars(requestParameters: ClusterJarApiListClusterJarsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarList> {
701
+ return localVarFp.listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
702
+ },
703
+ /**
704
+ *
705
+ * @summary Retry synchronization of published JARs
706
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ retryClusterJar(requestParameters: ClusterJarApiRetryClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarTask> {
711
+ return localVarFp.retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
712
+ },
713
+ /**
714
+ *
715
+ * @summary Upload an immutable JAR version
716
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ uploadClusterJar(requestParameters: ClusterJarApiUploadClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarPackage> {
721
+ return localVarFp.uploadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.idempotencyKey, requestParameters.name, requestParameters.kind, requestParameters.file, options).then((request) => request(axios, basePath));
722
+ },
723
+ };
724
+ };
725
+
726
+ /**
727
+ * ClusterJarApi - interface
728
+ * @export
729
+ * @interface ClusterJarApi
730
+ */
731
+ export interface ClusterJarApiInterface {
732
+ /**
733
+ *
734
+ * @summary Archive a JAR while retaining published files and startup synchronization
735
+ * @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ * @memberof ClusterJarApiInterface
739
+ */
740
+ archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
741
+
742
+ /**
743
+ *
744
+ * @summary Delete an unpublished JAR version
745
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ * @memberof ClusterJarApiInterface
749
+ */
750
+ deleteClusterJar(requestParameters: ClusterJarApiDeleteClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
751
+
752
+ /**
753
+ *
754
+ * @summary Publish a JAR with optimistic manifest version checking
755
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ * @memberof ClusterJarApiInterface
759
+ */
760
+ distributeClusterJar(requestParameters: ClusterJarApiDistributeClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarTask>;
761
+
762
+ /**
763
+ *
764
+ * @summary Download the original JAR
765
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ * @memberof ClusterJarApiInterface
769
+ */
770
+ downloadClusterJar(requestParameters: ClusterJarApiDownloadClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
771
+
772
+ /**
773
+ *
774
+ * @summary Get external JAR capability and configuration
775
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ * @memberof ClusterJarApiInterface
779
+ */
780
+ getClusterJarConfig(requestParameters: ClusterJarApiGetClusterJarConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarConfig>;
781
+
782
+ /**
783
+ *
784
+ * @summary List external JAR versions with metadata and per-instance synchronization state
785
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ * @memberof ClusterJarApiInterface
789
+ */
790
+ listClusterJars(requestParameters: ClusterJarApiListClusterJarsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarList>;
791
+
792
+ /**
793
+ *
794
+ * @summary Retry synchronization of published JARs
795
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ * @memberof ClusterJarApiInterface
799
+ */
800
+ retryClusterJar(requestParameters: ClusterJarApiRetryClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarTask>;
801
+
802
+ /**
803
+ *
804
+ * @summary Upload an immutable JAR version
805
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ * @memberof ClusterJarApiInterface
809
+ */
810
+ uploadClusterJar(requestParameters: ClusterJarApiUploadClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterJarPackage>;
811
+
812
+ }
813
+
814
+ /**
815
+ * Request parameters for archiveClusterJar operation in ClusterJarApi.
816
+ * @export
817
+ * @interface ClusterJarApiArchiveClusterJarRequest
818
+ */
819
+ export interface ClusterJarApiArchiveClusterJarRequest {
820
+ /**
821
+ * Doris or SelectDB engine of the target cluster.
822
+ * @type {string}
823
+ * @memberof ClusterJarApiArchiveClusterJar
824
+ */
825
+ readonly engineName: string
826
+
827
+ /**
828
+ *
829
+ * @type {string}
830
+ * @memberof ClusterJarApiArchiveClusterJar
831
+ */
832
+ readonly orgName: string
833
+
834
+ /**
835
+ *
836
+ * @type {string}
837
+ * @memberof ClusterJarApiArchiveClusterJar
838
+ */
839
+ readonly clusterName: string
840
+
841
+ /**
842
+ *
843
+ * @type {string}
844
+ * @memberof ClusterJarApiArchiveClusterJar
845
+ */
846
+ readonly jarId: string
847
+ }
848
+
849
+ /**
850
+ * Request parameters for deleteClusterJar operation in ClusterJarApi.
851
+ * @export
852
+ * @interface ClusterJarApiDeleteClusterJarRequest
853
+ */
854
+ export interface ClusterJarApiDeleteClusterJarRequest {
855
+ /**
856
+ * Doris or SelectDB engine of the target cluster.
857
+ * @type {string}
858
+ * @memberof ClusterJarApiDeleteClusterJar
859
+ */
860
+ readonly engineName: string
861
+
862
+ /**
863
+ *
864
+ * @type {string}
865
+ * @memberof ClusterJarApiDeleteClusterJar
866
+ */
867
+ readonly orgName: string
868
+
869
+ /**
870
+ *
871
+ * @type {string}
872
+ * @memberof ClusterJarApiDeleteClusterJar
873
+ */
874
+ readonly clusterName: string
875
+
876
+ /**
877
+ *
878
+ * @type {string}
879
+ * @memberof ClusterJarApiDeleteClusterJar
880
+ */
881
+ readonly jarId: string
882
+ }
883
+
884
+ /**
885
+ * Request parameters for distributeClusterJar operation in ClusterJarApi.
886
+ * @export
887
+ * @interface ClusterJarApiDistributeClusterJarRequest
888
+ */
889
+ export interface ClusterJarApiDistributeClusterJarRequest {
890
+ /**
891
+ * Doris or SelectDB engine of the target cluster.
892
+ * @type {string}
893
+ * @memberof ClusterJarApiDistributeClusterJar
894
+ */
895
+ readonly engineName: string
896
+
897
+ /**
898
+ *
899
+ * @type {string}
900
+ * @memberof ClusterJarApiDistributeClusterJar
901
+ */
902
+ readonly orgName: string
903
+
904
+ /**
905
+ *
906
+ * @type {string}
907
+ * @memberof ClusterJarApiDistributeClusterJar
908
+ */
909
+ readonly clusterName: string
910
+
911
+ /**
912
+ *
913
+ * @type {string}
914
+ * @memberof ClusterJarApiDistributeClusterJar
915
+ */
916
+ readonly jarId: string
917
+
918
+ /**
919
+ *
920
+ * @type {ClusterJarPublish}
921
+ * @memberof ClusterJarApiDistributeClusterJar
922
+ */
923
+ readonly clusterJarPublish: ClusterJarPublish
924
+ }
925
+
926
+ /**
927
+ * Request parameters for downloadClusterJar operation in ClusterJarApi.
928
+ * @export
929
+ * @interface ClusterJarApiDownloadClusterJarRequest
930
+ */
931
+ export interface ClusterJarApiDownloadClusterJarRequest {
932
+ /**
933
+ * Doris or SelectDB engine of the target cluster.
934
+ * @type {string}
935
+ * @memberof ClusterJarApiDownloadClusterJar
936
+ */
937
+ readonly engineName: string
938
+
939
+ /**
940
+ *
941
+ * @type {string}
942
+ * @memberof ClusterJarApiDownloadClusterJar
943
+ */
944
+ readonly orgName: string
945
+
946
+ /**
947
+ *
948
+ * @type {string}
949
+ * @memberof ClusterJarApiDownloadClusterJar
950
+ */
951
+ readonly clusterName: string
952
+
953
+ /**
954
+ *
955
+ * @type {string}
956
+ * @memberof ClusterJarApiDownloadClusterJar
957
+ */
958
+ readonly jarId: string
959
+ }
960
+
961
+ /**
962
+ * Request parameters for getClusterJarConfig operation in ClusterJarApi.
963
+ * @export
964
+ * @interface ClusterJarApiGetClusterJarConfigRequest
965
+ */
966
+ export interface ClusterJarApiGetClusterJarConfigRequest {
967
+ /**
968
+ * Doris or SelectDB engine of the target cluster.
969
+ * @type {string}
970
+ * @memberof ClusterJarApiGetClusterJarConfig
971
+ */
972
+ readonly engineName: string
973
+
974
+ /**
975
+ *
976
+ * @type {string}
977
+ * @memberof ClusterJarApiGetClusterJarConfig
978
+ */
979
+ readonly orgName: string
980
+
981
+ /**
982
+ *
983
+ * @type {string}
984
+ * @memberof ClusterJarApiGetClusterJarConfig
985
+ */
986
+ readonly clusterName: string
987
+ }
988
+
989
+ /**
990
+ * Request parameters for listClusterJars operation in ClusterJarApi.
991
+ * @export
992
+ * @interface ClusterJarApiListClusterJarsRequest
993
+ */
994
+ export interface ClusterJarApiListClusterJarsRequest {
995
+ /**
996
+ * Doris or SelectDB engine of the target cluster.
997
+ * @type {string}
998
+ * @memberof ClusterJarApiListClusterJars
999
+ */
1000
+ readonly engineName: string
1001
+
1002
+ /**
1003
+ *
1004
+ * @type {string}
1005
+ * @memberof ClusterJarApiListClusterJars
1006
+ */
1007
+ readonly orgName: string
1008
+
1009
+ /**
1010
+ *
1011
+ * @type {string}
1012
+ * @memberof ClusterJarApiListClusterJars
1013
+ */
1014
+ readonly clusterName: string
1015
+ }
1016
+
1017
+ /**
1018
+ * Request parameters for retryClusterJar operation in ClusterJarApi.
1019
+ * @export
1020
+ * @interface ClusterJarApiRetryClusterJarRequest
1021
+ */
1022
+ export interface ClusterJarApiRetryClusterJarRequest {
1023
+ /**
1024
+ * Doris or SelectDB engine of the target cluster.
1025
+ * @type {string}
1026
+ * @memberof ClusterJarApiRetryClusterJar
1027
+ */
1028
+ readonly engineName: string
1029
+
1030
+ /**
1031
+ *
1032
+ * @type {string}
1033
+ * @memberof ClusterJarApiRetryClusterJar
1034
+ */
1035
+ readonly orgName: string
1036
+
1037
+ /**
1038
+ *
1039
+ * @type {string}
1040
+ * @memberof ClusterJarApiRetryClusterJar
1041
+ */
1042
+ readonly clusterName: string
1043
+
1044
+ /**
1045
+ *
1046
+ * @type {string}
1047
+ * @memberof ClusterJarApiRetryClusterJar
1048
+ */
1049
+ readonly jarId: string
1050
+ }
1051
+
1052
+ /**
1053
+ * Request parameters for uploadClusterJar operation in ClusterJarApi.
1054
+ * @export
1055
+ * @interface ClusterJarApiUploadClusterJarRequest
1056
+ */
1057
+ export interface ClusterJarApiUploadClusterJarRequest {
1058
+ /**
1059
+ * Doris or SelectDB engine of the target cluster.
1060
+ * @type {string}
1061
+ * @memberof ClusterJarApiUploadClusterJar
1062
+ */
1063
+ readonly engineName: string
1064
+
1065
+ /**
1066
+ *
1067
+ * @type {string}
1068
+ * @memberof ClusterJarApiUploadClusterJar
1069
+ */
1070
+ readonly orgName: string
1071
+
1072
+ /**
1073
+ *
1074
+ * @type {string}
1075
+ * @memberof ClusterJarApiUploadClusterJar
1076
+ */
1077
+ readonly clusterName: string
1078
+
1079
+ /**
1080
+ *
1081
+ * @type {string}
1082
+ * @memberof ClusterJarApiUploadClusterJar
1083
+ */
1084
+ readonly idempotencyKey: string
1085
+
1086
+ /**
1087
+ *
1088
+ * @type {string}
1089
+ * @memberof ClusterJarApiUploadClusterJar
1090
+ */
1091
+ readonly name: string
1092
+
1093
+ /**
1094
+ *
1095
+ * @type {ClusterJarKind}
1096
+ * @memberof ClusterJarApiUploadClusterJar
1097
+ */
1098
+ readonly kind: ClusterJarKind
1099
+
1100
+ /**
1101
+ *
1102
+ * @type {File}
1103
+ * @memberof ClusterJarApiUploadClusterJar
1104
+ */
1105
+ readonly file: File
1106
+ }
1107
+
1108
+ /**
1109
+ * ClusterJarApi - object-oriented interface
1110
+ * @export
1111
+ * @class ClusterJarApi
1112
+ * @extends {BaseAPI}
1113
+ */
1114
+ export class ClusterJarApi extends BaseAPI implements ClusterJarApiInterface {
1115
+ /**
1116
+ *
1117
+ * @summary Archive a JAR while retaining published files and startup synchronization
1118
+ * @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
1119
+ * @param {*} [options] Override http request option.
1120
+ * @throws {RequiredError}
1121
+ * @memberof ClusterJarApi
1122
+ */
1123
+ public archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig) {
1124
+ return ClusterJarApiFp(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
1125
+ }
1126
+
1127
+ /**
1128
+ *
1129
+ * @summary Delete an unpublished JAR version
1130
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ * @memberof ClusterJarApi
1134
+ */
1135
+ public deleteClusterJar(requestParameters: ClusterJarApiDeleteClusterJarRequest, options?: RawAxiosRequestConfig) {
1136
+ return ClusterJarApiFp(this.configuration).deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
1137
+ }
1138
+
1139
+ /**
1140
+ *
1141
+ * @summary Publish a JAR with optimistic manifest version checking
1142
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ * @memberof ClusterJarApi
1146
+ */
1147
+ public distributeClusterJar(requestParameters: ClusterJarApiDistributeClusterJarRequest, options?: RawAxiosRequestConfig) {
1148
+ return ClusterJarApiFp(this.configuration).distributeClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, requestParameters.clusterJarPublish, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+
1151
+ /**
1152
+ *
1153
+ * @summary Download the original JAR
1154
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ * @memberof ClusterJarApi
1158
+ */
1159
+ public downloadClusterJar(requestParameters: ClusterJarApiDownloadClusterJarRequest, options?: RawAxiosRequestConfig) {
1160
+ return ClusterJarApiFp(this.configuration).downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
1161
+ }
1162
+
1163
+ /**
1164
+ *
1165
+ * @summary Get external JAR capability and configuration
1166
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ * @memberof ClusterJarApi
1170
+ */
1171
+ public getClusterJarConfig(requestParameters: ClusterJarApiGetClusterJarConfigRequest, options?: RawAxiosRequestConfig) {
1172
+ return ClusterJarApiFp(this.configuration).getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1173
+ }
1174
+
1175
+ /**
1176
+ *
1177
+ * @summary List external JAR versions with metadata and per-instance synchronization state
1178
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
1179
+ * @param {*} [options] Override http request option.
1180
+ * @throws {RequiredError}
1181
+ * @memberof ClusterJarApi
1182
+ */
1183
+ public listClusterJars(requestParameters: ClusterJarApiListClusterJarsRequest, options?: RawAxiosRequestConfig) {
1184
+ return ClusterJarApiFp(this.configuration).listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1185
+ }
1186
+
1187
+ /**
1188
+ *
1189
+ * @summary Retry synchronization of published JARs
1190
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof ClusterJarApi
1194
+ */
1195
+ public retryClusterJar(requestParameters: ClusterJarApiRetryClusterJarRequest, options?: RawAxiosRequestConfig) {
1196
+ return ClusterJarApiFp(this.configuration).retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
1197
+ }
1198
+
1199
+ /**
1200
+ *
1201
+ * @summary Upload an immutable JAR version
1202
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ * @memberof ClusterJarApi
1206
+ */
1207
+ public uploadClusterJar(requestParameters: ClusterJarApiUploadClusterJarRequest, options?: RawAxiosRequestConfig) {
1208
+ return ClusterJarApiFp(this.configuration).uploadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.idempotencyKey, requestParameters.name, requestParameters.kind, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1209
+ }
1210
+ }
1211
+