kb-cloud-client-typescript 2.2.131 → 2.2.132

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 (201) hide show
  1. package/dist/adminapi/api.d.ts +2 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +2 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-jar-api.d.ts +623 -0
  6. package/dist/adminapi/apis/cluster-jar-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/cluster-jar-api.js +674 -0
  8. package/dist/adminapi/apis/cluster-jar-api.js.map +1 -0
  9. package/dist/adminapi/apis/compute-group-api.d.ts +947 -0
  10. package/dist/adminapi/apis/compute-group-api.d.ts.map +1 -0
  11. package/dist/adminapi/apis/compute-group-api.js +1005 -0
  12. package/dist/adminapi/apis/compute-group-api.js.map +1 -0
  13. package/dist/adminapi/apis/shared-api.d.ts +575 -0
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +610 -0
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/cluster-jar-config.d.ts +61 -0
  18. package/dist/adminapi/models/cluster-jar-config.d.ts.map +1 -0
  19. package/dist/adminapi/models/cluster-jar-config.js +16 -0
  20. package/dist/adminapi/models/cluster-jar-config.js.map +1 -0
  21. package/dist/adminapi/models/cluster-jar-kind.d.ts +22 -0
  22. package/dist/adminapi/models/cluster-jar-kind.d.ts.map +1 -0
  23. package/dist/adminapi/models/cluster-jar-kind.js +26 -0
  24. package/dist/adminapi/models/cluster-jar-kind.js.map +1 -0
  25. package/dist/adminapi/models/cluster-jar-list.d.ts +32 -0
  26. package/dist/adminapi/models/cluster-jar-list.d.ts.map +1 -0
  27. package/dist/adminapi/models/cluster-jar-list.js +16 -0
  28. package/dist/adminapi/models/cluster-jar-list.js.map +1 -0
  29. package/dist/adminapi/models/cluster-jar-package.d.ts +105 -0
  30. package/dist/adminapi/models/cluster-jar-package.d.ts.map +1 -0
  31. package/dist/adminapi/models/cluster-jar-package.js +16 -0
  32. package/dist/adminapi/models/cluster-jar-package.js.map +1 -0
  33. package/dist/adminapi/models/cluster-jar-publish.d.ts +25 -0
  34. package/dist/adminapi/models/cluster-jar-publish.d.ts.map +1 -0
  35. package/dist/adminapi/models/cluster-jar-publish.js +16 -0
  36. package/dist/adminapi/models/cluster-jar-publish.js.map +1 -0
  37. package/dist/adminapi/models/cluster-jar-replica.d.ts +61 -0
  38. package/dist/adminapi/models/cluster-jar-replica.d.ts.map +1 -0
  39. package/dist/adminapi/models/cluster-jar-replica.js +16 -0
  40. package/dist/adminapi/models/cluster-jar-replica.js.map +1 -0
  41. package/dist/adminapi/models/cluster-jar-task.d.ts +25 -0
  42. package/dist/adminapi/models/cluster-jar-task.d.ts.map +1 -0
  43. package/dist/adminapi/models/cluster-jar-task.js +16 -0
  44. package/dist/adminapi/models/cluster-jar-task.js.map +1 -0
  45. package/dist/adminapi/models/compute-group-account-list.d.ts +26 -0
  46. package/dist/adminapi/models/compute-group-account-list.d.ts.map +1 -0
  47. package/dist/adminapi/models/compute-group-account-list.js +16 -0
  48. package/dist/adminapi/models/compute-group-account-list.js.map +1 -0
  49. package/dist/adminapi/models/compute-group-account.d.ts +61 -0
  50. package/dist/adminapi/models/compute-group-account.d.ts.map +1 -0
  51. package/dist/adminapi/models/compute-group-account.js +16 -0
  52. package/dist/adminapi/models/compute-group-account.js.map +1 -0
  53. package/dist/adminapi/models/compute-group-backend.d.ts +73 -0
  54. package/dist/adminapi/models/compute-group-backend.d.ts.map +1 -0
  55. package/dist/adminapi/models/compute-group-backend.js +16 -0
  56. package/dist/adminapi/models/compute-group-backend.js.map +1 -0
  57. package/dist/adminapi/models/compute-group-create.d.ts +37 -0
  58. package/dist/adminapi/models/compute-group-create.d.ts.map +1 -0
  59. package/dist/adminapi/models/compute-group-create.js +16 -0
  60. package/dist/adminapi/models/compute-group-create.js.map +1 -0
  61. package/dist/adminapi/models/compute-group-list.d.ts +38 -0
  62. package/dist/adminapi/models/compute-group-list.d.ts.map +1 -0
  63. package/dist/adminapi/models/compute-group-list.js +16 -0
  64. package/dist/adminapi/models/compute-group-list.js.map +1 -0
  65. package/dist/adminapi/models/compute-group-scale.d.ts +31 -0
  66. package/dist/adminapi/models/compute-group-scale.d.ts.map +1 -0
  67. package/dist/adminapi/models/compute-group-scale.js +16 -0
  68. package/dist/adminapi/models/compute-group-scale.js.map +1 -0
  69. package/dist/adminapi/models/compute-group.d.ts +110 -0
  70. package/dist/adminapi/models/compute-group.d.ts.map +1 -0
  71. package/dist/adminapi/models/compute-group.js +16 -0
  72. package/dist/adminapi/models/compute-group.js.map +1 -0
  73. package/dist/adminapi/models/index.d.ts +14 -0
  74. package/dist/adminapi/models/index.d.ts.map +1 -1
  75. package/dist/adminapi/models/index.js +14 -0
  76. package/dist/adminapi/models/index.js.map +1 -1
  77. package/dist/adminapi/models/mode-object-storage-additional-helm-value-path.d.ts +18 -0
  78. package/dist/adminapi/models/mode-object-storage-additional-helm-value-path.d.ts.map +1 -1
  79. package/dist/openapi/api.d.ts +2 -0
  80. package/dist/openapi/api.d.ts.map +1 -1
  81. package/dist/openapi/api.js +2 -0
  82. package/dist/openapi/api.js.map +1 -1
  83. package/dist/openapi/apis/cluster-jar-api.d.ts +623 -0
  84. package/dist/openapi/apis/cluster-jar-api.d.ts.map +1 -0
  85. package/dist/openapi/apis/cluster-jar-api.js +674 -0
  86. package/dist/openapi/apis/cluster-jar-api.js.map +1 -0
  87. package/dist/openapi/apis/compute-group-api.d.ts +947 -0
  88. package/dist/openapi/apis/compute-group-api.d.ts.map +1 -0
  89. package/dist/openapi/apis/compute-group-api.js +1005 -0
  90. package/dist/openapi/apis/compute-group-api.js.map +1 -0
  91. package/dist/openapi/apis/shared-api.d.ts +575 -0
  92. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  93. package/dist/openapi/apis/shared-api.js +610 -0
  94. package/dist/openapi/apis/shared-api.js.map +1 -1
  95. package/dist/openapi/models/cluster-jar-config.d.ts +61 -0
  96. package/dist/openapi/models/cluster-jar-config.d.ts.map +1 -0
  97. package/dist/openapi/models/cluster-jar-config.js +16 -0
  98. package/dist/openapi/models/cluster-jar-config.js.map +1 -0
  99. package/dist/openapi/models/cluster-jar-kind.d.ts +22 -0
  100. package/dist/openapi/models/cluster-jar-kind.d.ts.map +1 -0
  101. package/dist/openapi/models/cluster-jar-kind.js +26 -0
  102. package/dist/openapi/models/cluster-jar-kind.js.map +1 -0
  103. package/dist/openapi/models/cluster-jar-list.d.ts +32 -0
  104. package/dist/openapi/models/cluster-jar-list.d.ts.map +1 -0
  105. package/dist/openapi/models/cluster-jar-list.js +16 -0
  106. package/dist/openapi/models/cluster-jar-list.js.map +1 -0
  107. package/dist/openapi/models/cluster-jar-package.d.ts +105 -0
  108. package/dist/openapi/models/cluster-jar-package.d.ts.map +1 -0
  109. package/dist/openapi/models/cluster-jar-package.js +16 -0
  110. package/dist/openapi/models/cluster-jar-package.js.map +1 -0
  111. package/dist/openapi/models/cluster-jar-publish.d.ts +25 -0
  112. package/dist/openapi/models/cluster-jar-publish.d.ts.map +1 -0
  113. package/dist/openapi/models/cluster-jar-publish.js +16 -0
  114. package/dist/openapi/models/cluster-jar-publish.js.map +1 -0
  115. package/dist/openapi/models/cluster-jar-replica.d.ts +61 -0
  116. package/dist/openapi/models/cluster-jar-replica.d.ts.map +1 -0
  117. package/dist/openapi/models/cluster-jar-replica.js +16 -0
  118. package/dist/openapi/models/cluster-jar-replica.js.map +1 -0
  119. package/dist/openapi/models/cluster-jar-task.d.ts +25 -0
  120. package/dist/openapi/models/cluster-jar-task.d.ts.map +1 -0
  121. package/dist/openapi/models/cluster-jar-task.js +16 -0
  122. package/dist/openapi/models/cluster-jar-task.js.map +1 -0
  123. package/dist/openapi/models/compute-group-account-list.d.ts +26 -0
  124. package/dist/openapi/models/compute-group-account-list.d.ts.map +1 -0
  125. package/dist/openapi/models/compute-group-account-list.js +16 -0
  126. package/dist/openapi/models/compute-group-account-list.js.map +1 -0
  127. package/dist/openapi/models/compute-group-account.d.ts +61 -0
  128. package/dist/openapi/models/compute-group-account.d.ts.map +1 -0
  129. package/dist/openapi/models/compute-group-account.js +16 -0
  130. package/dist/openapi/models/compute-group-account.js.map +1 -0
  131. package/dist/openapi/models/compute-group-backend.d.ts +73 -0
  132. package/dist/openapi/models/compute-group-backend.d.ts.map +1 -0
  133. package/dist/openapi/models/compute-group-backend.js +16 -0
  134. package/dist/openapi/models/compute-group-backend.js.map +1 -0
  135. package/dist/openapi/models/compute-group-create.d.ts +37 -0
  136. package/dist/openapi/models/compute-group-create.d.ts.map +1 -0
  137. package/dist/openapi/models/compute-group-create.js +16 -0
  138. package/dist/openapi/models/compute-group-create.js.map +1 -0
  139. package/dist/openapi/models/compute-group-list.d.ts +38 -0
  140. package/dist/openapi/models/compute-group-list.d.ts.map +1 -0
  141. package/dist/openapi/models/compute-group-list.js +16 -0
  142. package/dist/openapi/models/compute-group-list.js.map +1 -0
  143. package/dist/openapi/models/compute-group-scale.d.ts +31 -0
  144. package/dist/openapi/models/compute-group-scale.d.ts.map +1 -0
  145. package/dist/openapi/models/compute-group-scale.js +16 -0
  146. package/dist/openapi/models/compute-group-scale.js.map +1 -0
  147. package/dist/openapi/models/compute-group.d.ts +110 -0
  148. package/dist/openapi/models/compute-group.d.ts.map +1 -0
  149. package/dist/openapi/models/compute-group.js +16 -0
  150. package/dist/openapi/models/compute-group.js.map +1 -0
  151. package/dist/openapi/models/index.d.ts +14 -0
  152. package/dist/openapi/models/index.d.ts.map +1 -1
  153. package/dist/openapi/models/index.js +14 -0
  154. package/dist/openapi/models/index.js.map +1 -1
  155. package/dist/openapi/models/mode-object-storage-additional-helm-value-path.d.ts +18 -0
  156. package/dist/openapi/models/mode-object-storage-additional-helm-value-path.d.ts.map +1 -1
  157. package/package.json +1 -1
  158. package/src/adminapi/.openapi-generator/FILES +16 -0
  159. package/src/adminapi/api.ts +2 -0
  160. package/src/adminapi/apis/cluster-jar-api.ts +1075 -0
  161. package/src/adminapi/apis/compute-group-api.ts +1618 -0
  162. package/src/adminapi/apis/shared-api.ts +1005 -0
  163. package/src/adminapi/models/cluster-jar-config.ts +66 -0
  164. package/src/adminapi/models/cluster-jar-kind.ts +31 -0
  165. package/src/adminapi/models/cluster-jar-list.ts +39 -0
  166. package/src/adminapi/models/cluster-jar-package.ts +116 -0
  167. package/src/adminapi/models/cluster-jar-publish.ts +30 -0
  168. package/src/adminapi/models/cluster-jar-replica.ts +66 -0
  169. package/src/adminapi/models/cluster-jar-task.ts +30 -0
  170. package/src/adminapi/models/compute-group-account-list.ts +33 -0
  171. package/src/adminapi/models/compute-group-account.ts +66 -0
  172. package/src/adminapi/models/compute-group-backend.ts +78 -0
  173. package/src/adminapi/models/compute-group-create.ts +42 -0
  174. package/src/adminapi/models/compute-group-list.ts +45 -0
  175. package/src/adminapi/models/compute-group-scale.ts +36 -0
  176. package/src/adminapi/models/compute-group.ts +117 -0
  177. package/src/adminapi/models/index.ts +14 -0
  178. package/src/adminapi/models/mode-object-storage-additional-helm-value-path.ts +18 -0
  179. package/src/adminapi.yaml +1178 -15
  180. package/src/openapi/.openapi-generator/FILES +16 -0
  181. package/src/openapi/api.ts +2 -0
  182. package/src/openapi/apis/cluster-jar-api.ts +1075 -0
  183. package/src/openapi/apis/compute-group-api.ts +1618 -0
  184. package/src/openapi/apis/shared-api.ts +1047 -42
  185. package/src/openapi/models/cluster-jar-config.ts +66 -0
  186. package/src/openapi/models/cluster-jar-kind.ts +31 -0
  187. package/src/openapi/models/cluster-jar-list.ts +39 -0
  188. package/src/openapi/models/cluster-jar-package.ts +116 -0
  189. package/src/openapi/models/cluster-jar-publish.ts +30 -0
  190. package/src/openapi/models/cluster-jar-replica.ts +66 -0
  191. package/src/openapi/models/cluster-jar-task.ts +30 -0
  192. package/src/openapi/models/compute-group-account-list.ts +33 -0
  193. package/src/openapi/models/compute-group-account.ts +66 -0
  194. package/src/openapi/models/compute-group-backend.ts +78 -0
  195. package/src/openapi/models/compute-group-create.ts +42 -0
  196. package/src/openapi/models/compute-group-list.ts +45 -0
  197. package/src/openapi/models/compute-group-scale.ts +36 -0
  198. package/src/openapi/models/compute-group.ts +117 -0
  199. package/src/openapi/models/index.ts +14 -0
  200. package/src/openapi/models/mode-object-storage-additional-helm-value-path.ts +18 -0
  201. package/src/openapi.yaml +5416 -4253
@@ -0,0 +1,674 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
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 Delete an unpublished JAR version
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
+ deleteClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
43
+ // verify required parameter 'engineName' is not null or undefined
44
+ (0, common_1.assertParamExists)('deleteClusterJar', 'engineName', engineName);
45
+ // verify required parameter 'orgName' is not null or undefined
46
+ (0, common_1.assertParamExists)('deleteClusterJar', 'orgName', orgName);
47
+ // verify required parameter 'clusterName' is not null or undefined
48
+ (0, common_1.assertParamExists)('deleteClusterJar', 'clusterName', clusterName);
49
+ // verify required parameter 'jarId' is not null or undefined
50
+ (0, common_1.assertParamExists)('deleteClusterJar', 'jarId', jarId);
51
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}`
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: 'DELETE' }, 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 Publish a JAR with optimistic manifest version checking
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 {ClusterJarPublish} clusterJarPublish
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ distributeClusterJar: async (engineName, orgName, clusterName, jarId, clusterJarPublish, options = {}) => {
90
+ // verify required parameter 'engineName' is not null or undefined
91
+ (0, common_1.assertParamExists)('distributeClusterJar', 'engineName', engineName);
92
+ // verify required parameter 'orgName' is not null or undefined
93
+ (0, common_1.assertParamExists)('distributeClusterJar', 'orgName', orgName);
94
+ // verify required parameter 'clusterName' is not null or undefined
95
+ (0, common_1.assertParamExists)('distributeClusterJar', 'clusterName', clusterName);
96
+ // verify required parameter 'jarId' is not null or undefined
97
+ (0, common_1.assertParamExists)('distributeClusterJar', 'jarId', jarId);
98
+ // verify required parameter 'clusterJarPublish' is not null or undefined
99
+ (0, common_1.assertParamExists)('distributeClusterJar', 'clusterJarPublish', clusterJarPublish);
100
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute`
101
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
102
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
103
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
104
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ // authentication BearerToken required
115
+ // http bearer authentication required
116
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
117
+ // authentication DigestAuth required
118
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
119
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
123
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clusterJarPublish, localVarRequestOptions, configuration);
124
+ return {
125
+ url: (0, common_1.toPathString)(localVarUrlObj),
126
+ options: localVarRequestOptions,
127
+ };
128
+ },
129
+ /**
130
+ *
131
+ * @summary Download the original JAR
132
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
133
+ * @param {string} orgName
134
+ * @param {string} clusterName
135
+ * @param {string} jarId
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ downloadClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
140
+ // verify required parameter 'engineName' is not null or undefined
141
+ (0, common_1.assertParamExists)('downloadClusterJar', 'engineName', engineName);
142
+ // verify required parameter 'orgName' is not null or undefined
143
+ (0, common_1.assertParamExists)('downloadClusterJar', 'orgName', orgName);
144
+ // verify required parameter 'clusterName' is not null or undefined
145
+ (0, common_1.assertParamExists)('downloadClusterJar', 'clusterName', clusterName);
146
+ // verify required parameter 'jarId' is not null or undefined
147
+ (0, common_1.assertParamExists)('downloadClusterJar', 'jarId', jarId);
148
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download`
149
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
150
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
151
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
152
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ }
159
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
160
+ const localVarHeaderParameter = {};
161
+ const localVarQueryParameter = {};
162
+ // authentication BearerToken required
163
+ // http bearer authentication required
164
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
165
+ // authentication DigestAuth required
166
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
167
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
+ return {
171
+ url: (0, common_1.toPathString)(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ };
174
+ },
175
+ /**
176
+ *
177
+ * @summary Get external JAR capability and configuration
178
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
179
+ * @param {string} orgName
180
+ * @param {string} clusterName
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ getClusterJarConfig: async (engineName, orgName, clusterName, options = {}) => {
185
+ // verify required parameter 'engineName' is not null or undefined
186
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'engineName', engineName);
187
+ // verify required parameter 'orgName' is not null or undefined
188
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'orgName', orgName);
189
+ // verify required parameter 'clusterName' is not null or undefined
190
+ (0, common_1.assertParamExists)('getClusterJarConfig', 'clusterName', clusterName);
191
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/config`
192
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
193
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
194
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
+ let baseOptions;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ }
201
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
202
+ const localVarHeaderParameter = {};
203
+ const localVarQueryParameter = {};
204
+ // authentication BearerToken required
205
+ // http bearer authentication required
206
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
207
+ // authentication DigestAuth required
208
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
+ return {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ };
216
+ },
217
+ /**
218
+ *
219
+ * @summary List external JAR versions with metadata and per-instance synchronization state
220
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
221
+ * @param {string} orgName
222
+ * @param {string} clusterName
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ listClusterJars: async (engineName, orgName, clusterName, options = {}) => {
227
+ // verify required parameter 'engineName' is not null or undefined
228
+ (0, common_1.assertParamExists)('listClusterJars', 'engineName', engineName);
229
+ // verify required parameter 'orgName' is not null or undefined
230
+ (0, common_1.assertParamExists)('listClusterJars', 'orgName', orgName);
231
+ // verify required parameter 'clusterName' is not null or undefined
232
+ (0, common_1.assertParamExists)('listClusterJars', 'clusterName', clusterName);
233
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
234
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
235
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
236
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
+ let baseOptions;
240
+ if (configuration) {
241
+ baseOptions = configuration.baseOptions;
242
+ }
243
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
244
+ const localVarHeaderParameter = {};
245
+ const localVarQueryParameter = {};
246
+ // authentication BearerToken required
247
+ // http bearer authentication required
248
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
249
+ // authentication DigestAuth required
250
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ return {
255
+ url: (0, common_1.toPathString)(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ },
259
+ /**
260
+ *
261
+ * @summary Retry synchronization of published JARs
262
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
263
+ * @param {string} orgName
264
+ * @param {string} clusterName
265
+ * @param {string} jarId
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ retryClusterJar: async (engineName, orgName, clusterName, jarId, options = {}) => {
270
+ // verify required parameter 'engineName' is not null or undefined
271
+ (0, common_1.assertParamExists)('retryClusterJar', 'engineName', engineName);
272
+ // verify required parameter 'orgName' is not null or undefined
273
+ (0, common_1.assertParamExists)('retryClusterJar', 'orgName', orgName);
274
+ // verify required parameter 'clusterName' is not null or undefined
275
+ (0, common_1.assertParamExists)('retryClusterJar', 'clusterName', clusterName);
276
+ // verify required parameter 'jarId' is not null or undefined
277
+ (0, common_1.assertParamExists)('retryClusterJar', 'jarId', jarId);
278
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/retry`
279
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
280
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
281
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
282
+ .replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
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: 'POST' }, 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 Upload an immutable JAR version
308
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
309
+ * @param {string} orgName
310
+ * @param {string} clusterName
311
+ * @param {string} idempotencyKey
312
+ * @param {string} name
313
+ * @param {ClusterJarKind} kind
314
+ * @param {File} file
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ uploadClusterJar: async (engineName, orgName, clusterName, idempotencyKey, name, kind, file, options = {}) => {
319
+ // verify required parameter 'engineName' is not null or undefined
320
+ (0, common_1.assertParamExists)('uploadClusterJar', 'engineName', engineName);
321
+ // verify required parameter 'orgName' is not null or undefined
322
+ (0, common_1.assertParamExists)('uploadClusterJar', 'orgName', orgName);
323
+ // verify required parameter 'clusterName' is not null or undefined
324
+ (0, common_1.assertParamExists)('uploadClusterJar', 'clusterName', clusterName);
325
+ // verify required parameter 'idempotencyKey' is not null or undefined
326
+ (0, common_1.assertParamExists)('uploadClusterJar', 'idempotencyKey', idempotencyKey);
327
+ // verify required parameter 'name' is not null or undefined
328
+ (0, common_1.assertParamExists)('uploadClusterJar', 'name', name);
329
+ // verify required parameter 'kind' is not null or undefined
330
+ (0, common_1.assertParamExists)('uploadClusterJar', 'kind', kind);
331
+ // verify required parameter 'file' is not null or undefined
332
+ (0, common_1.assertParamExists)('uploadClusterJar', 'file', file);
333
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars`
334
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
335
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
336
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
338
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
339
+ let baseOptions;
340
+ if (configuration) {
341
+ baseOptions = configuration.baseOptions;
342
+ }
343
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
344
+ const localVarHeaderParameter = {};
345
+ const localVarQueryParameter = {};
346
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
347
+ // authentication BearerToken required
348
+ // http bearer authentication required
349
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
350
+ // authentication DigestAuth required
351
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
352
+ if (name !== undefined) {
353
+ localVarFormParams.append('name', name);
354
+ }
355
+ if (kind !== undefined) {
356
+ localVarFormParams.append('kind', kind);
357
+ }
358
+ if (file !== undefined) {
359
+ localVarFormParams.append('file', file);
360
+ }
361
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
362
+ if (idempotencyKey != null) {
363
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
364
+ }
365
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
368
+ localVarRequestOptions.data = localVarFormParams;
369
+ return {
370
+ url: (0, common_1.toPathString)(localVarUrlObj),
371
+ options: localVarRequestOptions,
372
+ };
373
+ },
374
+ };
375
+ };
376
+ exports.ClusterJarApiAxiosParamCreator = ClusterJarApiAxiosParamCreator;
377
+ /**
378
+ * ClusterJarApi - functional programming interface
379
+ * @export
380
+ */
381
+ const ClusterJarApiFp = function (configuration) {
382
+ const localVarAxiosParamCreator = (0, exports.ClusterJarApiAxiosParamCreator)(configuration);
383
+ return {
384
+ /**
385
+ *
386
+ * @summary Delete an unpublished JAR version
387
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
388
+ * @param {string} orgName
389
+ * @param {string} clusterName
390
+ * @param {string} jarId
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ async deleteClusterJar(engineName, orgName, clusterName, jarId, options) {
395
+ var _a, _b, _c;
396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterJar(engineName, orgName, clusterName, jarId, options);
397
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
398
+ 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;
399
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
400
+ },
401
+ /**
402
+ *
403
+ * @summary Publish a JAR with optimistic manifest version checking
404
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
405
+ * @param {string} orgName
406
+ * @param {string} clusterName
407
+ * @param {string} jarId
408
+ * @param {ClusterJarPublish} clusterJarPublish
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ async distributeClusterJar(engineName, orgName, clusterName, jarId, clusterJarPublish, options) {
413
+ var _a, _b, _c;
414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributeClusterJar(engineName, orgName, clusterName, jarId, clusterJarPublish, options);
415
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
416
+ 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;
417
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
418
+ },
419
+ /**
420
+ *
421
+ * @summary Download the original JAR
422
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
423
+ * @param {string} orgName
424
+ * @param {string} clusterName
425
+ * @param {string} jarId
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ async downloadClusterJar(engineName, orgName, clusterName, jarId, options) {
430
+ var _a, _b, _c;
431
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadClusterJar(engineName, orgName, clusterName, jarId, options);
432
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
433
+ 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;
434
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
435
+ },
436
+ /**
437
+ *
438
+ * @summary Get external JAR capability and configuration
439
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
440
+ * @param {string} orgName
441
+ * @param {string} clusterName
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ async getClusterJarConfig(engineName, orgName, clusterName, options) {
446
+ var _a, _b, _c;
447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterJarConfig(engineName, orgName, clusterName, options);
448
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
449
+ 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;
450
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
451
+ },
452
+ /**
453
+ *
454
+ * @summary List external JAR versions with metadata and per-instance synchronization state
455
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
456
+ * @param {string} orgName
457
+ * @param {string} clusterName
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ async listClusterJars(engineName, orgName, clusterName, options) {
462
+ var _a, _b, _c;
463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterJars(engineName, orgName, clusterName, options);
464
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
465
+ 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;
466
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
467
+ },
468
+ /**
469
+ *
470
+ * @summary Retry synchronization of published JARs
471
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
472
+ * @param {string} orgName
473
+ * @param {string} clusterName
474
+ * @param {string} jarId
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ async retryClusterJar(engineName, orgName, clusterName, jarId, options) {
479
+ var _a, _b, _c;
480
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryClusterJar(engineName, orgName, clusterName, jarId, options);
481
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
482
+ 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;
483
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
484
+ },
485
+ /**
486
+ *
487
+ * @summary Upload an immutable JAR version
488
+ * @param {string} engineName Doris or SelectDB engine of the target cluster.
489
+ * @param {string} orgName
490
+ * @param {string} clusterName
491
+ * @param {string} idempotencyKey
492
+ * @param {string} name
493
+ * @param {ClusterJarKind} kind
494
+ * @param {File} file
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ async uploadClusterJar(engineName, orgName, clusterName, idempotencyKey, name, kind, file, options) {
499
+ var _a, _b, _c;
500
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadClusterJar(engineName, orgName, clusterName, idempotencyKey, name, kind, file, options);
501
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
502
+ 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;
503
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
504
+ },
505
+ };
506
+ };
507
+ exports.ClusterJarApiFp = ClusterJarApiFp;
508
+ /**
509
+ * ClusterJarApi - factory interface
510
+ * @export
511
+ */
512
+ const ClusterJarApiFactory = function (configuration, basePath, axios) {
513
+ const localVarFp = (0, exports.ClusterJarApiFp)(configuration);
514
+ return {
515
+ /**
516
+ *
517
+ * @summary Delete an unpublished JAR version
518
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ deleteClusterJar(requestParameters, options) {
523
+ return localVarFp.deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
524
+ },
525
+ /**
526
+ *
527
+ * @summary Publish a JAR with optimistic manifest version checking
528
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ distributeClusterJar(requestParameters, options) {
533
+ return localVarFp.distributeClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, requestParameters.clusterJarPublish, options).then((request) => request(axios, basePath));
534
+ },
535
+ /**
536
+ *
537
+ * @summary Download the original JAR
538
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ downloadClusterJar(requestParameters, options) {
543
+ return localVarFp.downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
544
+ },
545
+ /**
546
+ *
547
+ * @summary Get external JAR capability and configuration
548
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ getClusterJarConfig(requestParameters, options) {
553
+ return localVarFp.getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
554
+ },
555
+ /**
556
+ *
557
+ * @summary List external JAR versions with metadata and per-instance synchronization state
558
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ listClusterJars(requestParameters, options) {
563
+ return localVarFp.listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
564
+ },
565
+ /**
566
+ *
567
+ * @summary Retry synchronization of published JARs
568
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ retryClusterJar(requestParameters, options) {
573
+ return localVarFp.retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
574
+ },
575
+ /**
576
+ *
577
+ * @summary Upload an immutable JAR version
578
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ uploadClusterJar(requestParameters, options) {
583
+ return localVarFp.uploadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.idempotencyKey, requestParameters.name, requestParameters.kind, requestParameters.file, options).then((request) => request(axios, basePath));
584
+ },
585
+ };
586
+ };
587
+ exports.ClusterJarApiFactory = ClusterJarApiFactory;
588
+ /**
589
+ * ClusterJarApi - object-oriented interface
590
+ * @export
591
+ * @class ClusterJarApi
592
+ * @extends {BaseAPI}
593
+ */
594
+ class ClusterJarApi extends base_1.BaseAPI {
595
+ /**
596
+ *
597
+ * @summary Delete an unpublished JAR version
598
+ * @param {ClusterJarApiDeleteClusterJarRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof ClusterJarApi
602
+ */
603
+ deleteClusterJar(requestParameters, options) {
604
+ return (0, exports.ClusterJarApiFp)(this.configuration).deleteClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
605
+ }
606
+ /**
607
+ *
608
+ * @summary Publish a JAR with optimistic manifest version checking
609
+ * @param {ClusterJarApiDistributeClusterJarRequest} requestParameters Request parameters.
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ * @memberof ClusterJarApi
613
+ */
614
+ distributeClusterJar(requestParameters, options) {
615
+ 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));
616
+ }
617
+ /**
618
+ *
619
+ * @summary Download the original JAR
620
+ * @param {ClusterJarApiDownloadClusterJarRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof ClusterJarApi
624
+ */
625
+ downloadClusterJar(requestParameters, options) {
626
+ return (0, exports.ClusterJarApiFp)(this.configuration).downloadClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+ /**
629
+ *
630
+ * @summary Get external JAR capability and configuration
631
+ * @param {ClusterJarApiGetClusterJarConfigRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof ClusterJarApi
635
+ */
636
+ getClusterJarConfig(requestParameters, options) {
637
+ return (0, exports.ClusterJarApiFp)(this.configuration).getClusterJarConfig(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
638
+ }
639
+ /**
640
+ *
641
+ * @summary List external JAR versions with metadata and per-instance synchronization state
642
+ * @param {ClusterJarApiListClusterJarsRequest} requestParameters Request parameters.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ * @memberof ClusterJarApi
646
+ */
647
+ listClusterJars(requestParameters, options) {
648
+ return (0, exports.ClusterJarApiFp)(this.configuration).listClusterJars(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
649
+ }
650
+ /**
651
+ *
652
+ * @summary Retry synchronization of published JARs
653
+ * @param {ClusterJarApiRetryClusterJarRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof ClusterJarApi
657
+ */
658
+ retryClusterJar(requestParameters, options) {
659
+ return (0, exports.ClusterJarApiFp)(this.configuration).retryClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+ /**
662
+ *
663
+ * @summary Upload an immutable JAR version
664
+ * @param {ClusterJarApiUploadClusterJarRequest} requestParameters Request parameters.
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ * @memberof ClusterJarApi
668
+ */
669
+ uploadClusterJar(requestParameters, options) {
670
+ 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));
671
+ }
672
+ }
673
+ exports.ClusterJarApi = ClusterJarApi;
674
+ //# sourceMappingURL=cluster-jar-api.js.map