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,758 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Admin API
6
+ * The Admin API is used to manage the ApeCloud platform.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.ClusterJarApi = exports.ClusterJarApiFactory = exports.ClusterJarApiFp = exports.ClusterJarApiAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("../common");
24
+ // @ts-ignore
25
+ const base_1 = require("../base");
26
+ /**
27
+ * ClusterJarApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const ClusterJarApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ *
34
+ * @summary Archive a JAR while retaining published files and startup synchronization
35
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
36
+ * @param {string} orgName
37
+ * @param {string} clusterName
38
+ * @param {string} jarId
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ archiveClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
43
+ // verify required parameter 'engineName' is not null or undefined
44
+ (0, common_1.assertParamExists)('archiveClusterJar', 'engineName', engineName);
45
+ // verify required parameter 'orgName' is not null or undefined
46
+ (0, common_1.assertParamExists)('archiveClusterJar', 'orgName', orgName);
47
+ // verify required parameter 'clusterName' is not null or undefined
48
+ (0, common_1.assertParamExists)('archiveClusterJar', 'clusterName', clusterName);
49
+ // verify required parameter 'jarId' is not null or undefined
50
+ (0, common_1.assertParamExists)('archiveClusterJar', 'jarId', jarId);
51
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
52
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
53
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
54
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
55
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ }
62
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
63
+ const localVarHeaderParameter = {};
64
+ const localVarQueryParameter = {};
65
+ // authentication BearerToken required
66
+ // http bearer authentication required
67
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
68
+ // authentication DigestAuth required
69
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
70
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
73
+ return {
74
+ url: (0, common_1.toPathString)(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ },
78
+ /**
79
+ *
80
+ * @summary Delete an unpublished JAR version
81
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
82
+ * @param {string} orgName
83
+ * @param {string} clusterName
84
+ * @param {string} jarId
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ deleteClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
89
+ // verify required parameter 'engineName' is not null or undefined
90
+ (0, common_1.assertParamExists)('deleteClusterJar', 'engineName', engineName);
91
+ // verify required parameter 'orgName' is not null or undefined
92
+ (0, common_1.assertParamExists)('deleteClusterJar', 'orgName', orgName);
93
+ // verify required parameter 'clusterName' is not null or undefined
94
+ (0, common_1.assertParamExists)('deleteClusterJar', 'clusterName', clusterName);
95
+ // verify required parameter 'jarId' is not null or undefined
96
+ (0, common_1.assertParamExists)('deleteClusterJar', 'jarId', jarId);
97
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}`
98
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
99
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
100
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
101
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ // authentication BearerToken required
112
+ // http bearer authentication required
113
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
114
+ // authentication DigestAuth required
115
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
116
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
119
+ return {
120
+ url: (0, common_1.toPathString)(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ },
124
+ /**
125
+ *
126
+ * @summary Publish a JAR with optimistic manifest version checking
127
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
128
+ * @param {string} orgName
129
+ * @param {string} clusterName
130
+ * @param {string} jarId
131
+ * @param {ClusterJarPublish} clusterJarPublish
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ distributeClusterJar: async (engineName, orgName, clusterName, jarId, clusterJarPublish, options = {}) => {
136
+ // verify required parameter 'engineName' is not null or undefined
137
+ (0, common_1.assertParamExists)('distributeClusterJar', 'engineName', engineName);
138
+ // verify required parameter 'orgName' is not null or undefined
139
+ (0, common_1.assertParamExists)('distributeClusterJar', 'orgName', orgName);
140
+ // verify required parameter 'clusterName' is not null or undefined
141
+ (0, common_1.assertParamExists)('distributeClusterJar', 'clusterName', clusterName);
142
+ // verify required parameter 'jarId' is not null or undefined
143
+ (0, common_1.assertParamExists)('distributeClusterJar', 'jarId', jarId);
144
+ // verify required parameter 'clusterJarPublish' is not null or undefined
145
+ (0, common_1.assertParamExists)('distributeClusterJar', 'clusterJarPublish', clusterJarPublish);
146
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute`
147
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
148
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
149
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
150
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
158
+ const localVarHeaderParameter = {};
159
+ const localVarQueryParameter = {};
160
+ // authentication BearerToken required
161
+ // http bearer authentication required
162
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
163
+ // authentication DigestAuth required
164
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
165
+ localVarHeaderParameter['Content-Type'] = 'application/json';
166
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clusterJarPublish, localVarRequestOptions, configuration);
170
+ return {
171
+ url: (0, common_1.toPathString)(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ };
174
+ },
175
+ /**
176
+ *
177
+ * @summary Download the original JAR
178
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
179
+ * @param {string} orgName
180
+ * @param {string} clusterName
181
+ * @param {string} jarId
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ downloadClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
186
+ // verify required parameter 'engineName' is not null or undefined
187
+ (0, common_1.assertParamExists)('downloadClusterJar', 'engineName', engineName);
188
+ // verify required parameter 'orgName' is not null or undefined
189
+ (0, common_1.assertParamExists)('downloadClusterJar', 'orgName', orgName);
190
+ // verify required parameter 'clusterName' is not null or undefined
191
+ (0, common_1.assertParamExists)('downloadClusterJar', 'clusterName', clusterName);
192
+ // verify required parameter 'jarId' is not null or undefined
193
+ (0, common_1.assertParamExists)('downloadClusterJar', 'jarId', jarId);
194
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download`
195
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
196
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
197
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
198
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ }
205
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
206
+ const localVarHeaderParameter = {};
207
+ const localVarQueryParameter = {};
208
+ // authentication BearerToken required
209
+ // http bearer authentication required
210
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
211
+ // authentication DigestAuth required
212
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
216
+ return {
217
+ url: (0, common_1.toPathString)(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ };
220
+ },
221
+ /**
222
+ *
223
+ * @summary Get external JAR capability and configuration
224
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
225
+ * @param {string} orgName
226
+ * @param {string} clusterName
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ getClusterJarConfig: async (engineName, orgName, clusterName, options = {}) => {
231
+ // verify required parameter 'engineName' is not null or undefined
232
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'engineName', engineName);
233
+ // verify required parameter 'orgName' is not null or undefined
234
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'orgName', orgName);
235
+ // verify required parameter 'clusterName' is not null or undefined
236
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'clusterName', clusterName);
237
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/config`
238
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
239
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
240
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ // authentication BearerToken required
251
+ // http bearer authentication required
252
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
253
+ // authentication DigestAuth required
254
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
257
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
258
+ return {
259
+ url: (0, common_1.toPathString)(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ };
262
+ },
263
+ /**
264
+ *
265
+ * @summary List external JAR versions with metadata and per-instance synchronization state
266
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
267
+ * @param {string} orgName
268
+ * @param {string} clusterName
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ listClusterJars: async (engineName, orgName, clusterName, options = {}) => {
273
+ // verify required parameter 'engineName' is not null or undefined
274
+ (0, common_1.assertParamExists)('listClusterJars', 'engineName', engineName);
275
+ // verify required parameter 'orgName' is not null or undefined
276
+ (0, common_1.assertParamExists)('listClusterJars', 'orgName', orgName);
277
+ // verify required parameter 'clusterName' is not null or undefined
278
+ (0, common_1.assertParamExists)('listClusterJars', 'clusterName', clusterName);
279
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
280
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
281
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
282
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
+ let baseOptions;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
290
+ const localVarHeaderParameter = {};
291
+ const localVarQueryParameter = {};
292
+ // authentication BearerToken required
293
+ // http bearer authentication required
294
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
295
+ // authentication DigestAuth required
296
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ },
305
+ /**
306
+ *
307
+ * @summary Retry synchronization of published JARs
308
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
309
+ * @param {string} orgName
310
+ * @param {string} clusterName
311
+ * @param {string} jarId
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ retryClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
316
+ // verify required parameter 'engineName' is not null or undefined
317
+ (0, common_1.assertParamExists)('retryClusterJar', 'engineName', engineName);
318
+ // verify required parameter 'orgName' is not null or undefined
319
+ (0, common_1.assertParamExists)('retryClusterJar', 'orgName', orgName);
320
+ // verify required parameter 'clusterName' is not null or undefined
321
+ (0, common_1.assertParamExists)('retryClusterJar', 'clusterName', clusterName);
322
+ // verify required parameter 'jarId' is not null or undefined
323
+ (0, common_1.assertParamExists)('retryClusterJar', 'jarId', jarId);
324
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/retry`
325
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
326
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
327
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
328
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
330
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
331
+ let baseOptions;
332
+ if (configuration) {
333
+ baseOptions = configuration.baseOptions;
334
+ }
335
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
336
+ const localVarHeaderParameter = {};
337
+ const localVarQueryParameter = {};
338
+ // authentication BearerToken required
339
+ // http bearer authentication required
340
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
341
+ // authentication DigestAuth required
342
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
343
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
346
+ return {
347
+ url: (0, common_1.toPathString)(localVarUrlObj),
348
+ options: localVarRequestOptions,
349
+ };
350
+ },
351
+ /**
352
+ *
353
+ * @summary Upload an immutable JAR version
354
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
355
+ * @param {string} orgName
356
+ * @param {string} clusterName
357
+ * @param {string} idempotencyKey
358
+ * @param {string} name
359
+ * @param {ClusterJarKind} kind
360
+ * @param {File} file
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ uploadClusterJar: async (engineName, orgName, clusterName, idempotencyKey, name, kind, file, options = {}) => {
365
+ // verify required parameter 'engineName' is not null or undefined
366
+ (0, common_1.assertParamExists)('uploadClusterJar', 'engineName', engineName);
367
+ // verify required parameter 'orgName' is not null or undefined
368
+ (0, common_1.assertParamExists)('uploadClusterJar', 'orgName', orgName);
369
+ // verify required parameter 'clusterName' is not null or undefined
370
+ (0, common_1.assertParamExists)('uploadClusterJar', 'clusterName', clusterName);
371
+ // verify required parameter 'idempotencyKey' is not null or undefined
372
+ (0, common_1.assertParamExists)('uploadClusterJar', 'idempotencyKey', idempotencyKey);
373
+ // verify required parameter 'name' is not null or undefined
374
+ (0, common_1.assertParamExists)('uploadClusterJar', 'name', name);
375
+ // verify required parameter 'kind' is not null or undefined
376
+ (0, common_1.assertParamExists)('uploadClusterJar', 'kind', kind);
377
+ // verify required parameter 'file' is not null or undefined
378
+ (0, common_1.assertParamExists)('uploadClusterJar', 'file', file);
379
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
380
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
381
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
382
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
383
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
384
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
385
+ let baseOptions;
386
+ if (configuration) {
387
+ baseOptions = configuration.baseOptions;
388
+ }
389
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
390
+ const localVarHeaderParameter = {};
391
+ const localVarQueryParameter = {};
392
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
393
+ // authentication BearerToken required
394
+ // http bearer authentication required
395
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
396
+ // authentication DigestAuth required
397
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
398
+ if (name !== undefined) {
399
+ localVarFormParams.append('name', name);
400
+ }
401
+ if (kind !== undefined) {
402
+ localVarFormParams.append('kind', kind);
403
+ }
404
+ if (file !== undefined) {
405
+ localVarFormParams.append('file', file);
406
+ }
407
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
408
+ if (idempotencyKey != null) {
409
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
410
+ }
411
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
413
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
414
+ localVarRequestOptions.data = localVarFormParams;
415
+ return {
416
+ url: (0, common_1.toPathString)(localVarUrlObj),
417
+ options: localVarRequestOptions,
418
+ };
419
+ },
420
+ };
421
+ };
422
+ exports.ClusterJarApiAxiosParamCreator = ClusterJarApiAxiosParamCreator;
423
+ /**
424
+ * ClusterJarApi - functional programming interface
425
+ * @export
426
+ */
427
+ const ClusterJarApiFp = function (configuration) {
428
+ const localVarAxiosParamCreator = (0, exports.ClusterJarApiAxiosParamCreator)(configuration);
429
+ return {
430
+ /**
431
+ *
432
+ * @summary Archive a JAR while retaining published files and startup synchronization
433
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
434
+ * @param {string} orgName
435
+ * @param {string} clusterName
436
+ * @param {string} jarId
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ async archiveClusterJar(engineName, orgName, clusterName, jarId, options) {
441
+ var _a, _b, _c;
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
443
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
444
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.archiveClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
445
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
446
+ },
447
+ /**
448
+ *
449
+ * @summary Delete an unpublished JAR version
450
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
451
+ * @param {string} orgName
452
+ * @param {string} clusterName
453
+ * @param {string} jarId
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ async deleteClusterJar(engineName, orgName, clusterName, jarId, options) {
458
+ var _a, _b, _c;
459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterJar(engineName, orgName, clusterName, jarId, options);
460
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
461
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.deleteClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
462
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
463
+ },
464
+ /**
465
+ *
466
+ * @summary Publish a JAR with optimistic manifest version checking
467
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
468
+ * @param {string} orgName
469
+ * @param {string} clusterName
470
+ * @param {string} jarId
471
+ * @param {ClusterJarPublish} clusterJarPublish
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ async distributeClusterJar(engineName, orgName, clusterName, jarId, clusterJarPublish, options) {
476
+ var _a, _b, _c;
477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributeClusterJar(engineName, orgName, clusterName, jarId, clusterJarPublish, options);
478
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
479
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.distributeClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
480
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
481
+ },
482
+ /**
483
+ *
484
+ * @summary Download the original JAR
485
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
486
+ * @param {string} orgName
487
+ * @param {string} clusterName
488
+ * @param {string} jarId
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ async downloadClusterJar(engineName, orgName, clusterName, jarId, options) {
493
+ var _a, _b, _c;
494
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadClusterJar(engineName, orgName, clusterName, jarId, options);
495
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
496
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.downloadClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
497
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
+ },
499
+ /**
500
+ *
501
+ * @summary Get external JAR capability and configuration
502
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
503
+ * @param {string} orgName
504
+ * @param {string} clusterName
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ async getClusterJarConfig(engineName, orgName, clusterName, options) {
509
+ var _a, _b, _c;
510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterJarConfig(engineName, orgName, clusterName, options);
511
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
512
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.getClusterJarConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
513
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
514
+ },
515
+ /**
516
+ *
517
+ * @summary List external JAR versions with metadata and per-instance synchronization state
518
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
519
+ * @param {string} orgName
520
+ * @param {string} clusterName
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ async listClusterJars(engineName, orgName, clusterName, options) {
525
+ var _a, _b, _c;
526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterJars(engineName, orgName, clusterName, options);
527
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
528
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.listClusterJars']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
529
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
530
+ },
531
+ /**
532
+ *
533
+ * @summary Retry synchronization of published JARs
534
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
535
+ * @param {string} orgName
536
+ * @param {string} clusterName
537
+ * @param {string} jarId
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ async retryClusterJar(engineName, orgName, clusterName, jarId, options) {
542
+ var _a, _b, _c;
543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryClusterJar(engineName, orgName, clusterName, jarId, options);
544
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
545
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.retryClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
546
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
547
+ },
548
+ /**
549
+ *
550
+ * @summary Upload an immutable JAR version
551
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
552
+ * @param {string} orgName
553
+ * @param {string} clusterName
554
+ * @param {string} idempotencyKey
555
+ * @param {string} name
556
+ * @param {ClusterJarKind} kind
557
+ * @param {File} file
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ async uploadClusterJar(engineName, orgName, clusterName, idempotencyKey, name, kind, file, options) {
562
+ var _a, _b, _c;
563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadClusterJar(engineName, orgName, clusterName, idempotencyKey, name, kind, file, options);
564
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterJarApi.uploadClusterJar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
566
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
+ },
568
+ };
569
+ };
570
+ exports.ClusterJarApiFp = ClusterJarApiFp;
571
+ /**
572
+ * ClusterJarApi - factory interface
573
+ * @export
574
+ */
575
+ const ClusterJarApiFactory = function (configuration, basePath, axios) {
576
+ const localVarFp = (0, exports.ClusterJarApiFp)(configuration);
577
+ return {
578
+ /**
579
+ *
580
+ * @summary Archive a JAR while retaining published files and startup synchronization
581
+ * @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ archiveClusterJar(requestParameters, options) {
586
+ return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
587
+ },
588
+ /**
589
+ *
590
+ * @summary Delete an unpublished JAR version
591
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ deleteClusterJar(requestParameters, options) {
596
+ return localVarFp.deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
597
+ },
598
+ /**
599
+ *
600
+ * @summary Publish a JAR with optimistic manifest version checking
601
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ distributeClusterJar(requestParameters, options) {
606
+ return localVarFp.distributeClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, requestParameters.clusterJarPublish, options).then((request) => request(axios, basePath));
607
+ },
608
+ /**
609
+ *
610
+ * @summary Download the original JAR
611
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ downloadClusterJar(requestParameters, options) {
616
+ return localVarFp.downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
617
+ },
618
+ /**
619
+ *
620
+ * @summary Get external JAR capability and configuration
621
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ getClusterJarConfig(requestParameters, options) {
626
+ return localVarFp.getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
627
+ },
628
+ /**
629
+ *
630
+ * @summary List external JAR versions with metadata and per-instance synchronization state
631
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ listClusterJars(requestParameters, options) {
636
+ return localVarFp.listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
637
+ },
638
+ /**
639
+ *
640
+ * @summary Retry synchronization of published JARs
641
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ retryClusterJar(requestParameters, options) {
646
+ return localVarFp.retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
647
+ },
648
+ /**
649
+ *
650
+ * @summary Upload an immutable JAR version
651
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ uploadClusterJar(requestParameters, options) {
656
+ return localVarFp.uploadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.idempotencyKey, requestParameters.name, requestParameters.kind, requestParameters.file, options).then((request) => request(axios, basePath));
657
+ },
658
+ };
659
+ };
660
+ exports.ClusterJarApiFactory = ClusterJarApiFactory;
661
+ /**
662
+ * ClusterJarApi - object-oriented interface
663
+ * @export
664
+ * @class ClusterJarApi
665
+ * @extends {BaseAPI}
666
+ */
667
+ class ClusterJarApi extends base_1.BaseAPI {
668
+ /**
669
+ *
670
+ * @summary Archive a JAR while retaining published files and startup synchronization
671
+ * @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ * @memberof ClusterJarApi
675
+ */
676
+ archiveClusterJar(requestParameters, options) {
677
+ return (0, exports.ClusterJarApiFp)(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
678
+ }
679
+ /**
680
+ *
681
+ * @summary Delete an unpublished JAR version
682
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ * @memberof ClusterJarApi
686
+ */
687
+ deleteClusterJar(requestParameters, options) {
688
+ return (0, exports.ClusterJarApiFp)(this.configuration).deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
689
+ }
690
+ /**
691
+ *
692
+ * @summary Publish a JAR with optimistic manifest version checking
693
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ * @memberof ClusterJarApi
697
+ */
698
+ distributeClusterJar(requestParameters, options) {
699
+ return (0, exports.ClusterJarApiFp)(this.configuration).distributeClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, requestParameters.clusterJarPublish, options).then((request) => request(this.axios, this.basePath));
700
+ }
701
+ /**
702
+ *
703
+ * @summary Download the original JAR
704
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ * @memberof ClusterJarApi
708
+ */
709
+ downloadClusterJar(requestParameters, options) {
710
+ return (0, exports.ClusterJarApiFp)(this.configuration).downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
711
+ }
712
+ /**
713
+ *
714
+ * @summary Get external JAR capability and configuration
715
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof ClusterJarApi
719
+ */
720
+ getClusterJarConfig(requestParameters, options) {
721
+ return (0, exports.ClusterJarApiFp)(this.configuration).getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
722
+ }
723
+ /**
724
+ *
725
+ * @summary List external JAR versions with metadata and per-instance synchronization state
726
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ * @memberof ClusterJarApi
730
+ */
731
+ listClusterJars(requestParameters, options) {
732
+ return (0, exports.ClusterJarApiFp)(this.configuration).listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
733
+ }
734
+ /**
735
+ *
736
+ * @summary Retry synchronization of published JARs
737
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ * @memberof ClusterJarApi
741
+ */
742
+ retryClusterJar(requestParameters, options) {
743
+ return (0, exports.ClusterJarApiFp)(this.configuration).retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
744
+ }
745
+ /**
746
+ *
747
+ * @summary Upload an immutable JAR version
748
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof ClusterJarApi
752
+ */
753
+ uploadClusterJar(requestParameters, options) {
754
+ return (0, exports.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));
755
+ }
756
+ }
757
+ exports.ClusterJarApi = ClusterJarApi;
758
+ //# sourceMappingURL=cluster-jar-api.js.map