kb-cloud-client-typescript 2.3.81 → 2.3.83

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 (283) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +72 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +79 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/postgresql-api.d.ts +10 -10
  6. package/dist/adminapi/apis/postgresql-api.js +8 -8
  7. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +79 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/models/cluster-event-item.d.ts +91 -0
  12. package/dist/adminapi/models/cluster-event-item.d.ts.map +1 -0
  13. package/dist/adminapi/models/cluster-event-item.js +16 -0
  14. package/dist/adminapi/models/cluster-event-item.js.map +1 -0
  15. package/dist/adminapi/models/cluster-event-list.d.ts +32 -0
  16. package/dist/adminapi/models/cluster-event-list.d.ts.map +1 -0
  17. package/dist/adminapi/models/cluster-event-list.js +16 -0
  18. package/dist/adminapi/models/cluster-event-list.js.map +1 -0
  19. package/dist/adminapi/models/create-pg-extension-resp.d.ts +3 -3
  20. package/dist/adminapi/models/create-pg-extension-resp.d.ts.map +1 -1
  21. package/dist/adminapi/models/environment.d.ts +6 -0
  22. package/dist/adminapi/models/environment.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.d.ts +4 -0
  24. package/dist/adminapi/models/index.d.ts.map +1 -1
  25. package/dist/adminapi/models/index.js +4 -0
  26. package/dist/adminapi/models/index.js.map +1 -1
  27. package/dist/adminapi/models/pg-create-extension-opt.d.ts +6 -6
  28. package/dist/adminapi/models/pg-create-extension-opt.d.ts.map +1 -1
  29. package/dist/adminapi/models/pg-create-extension-result.d.ts +44 -0
  30. package/dist/adminapi/models/pg-create-extension-result.d.ts.map +1 -0
  31. package/dist/adminapi/models/pg-create-extension-result.js +16 -0
  32. package/dist/adminapi/models/pg-create-extension-result.js.map +1 -0
  33. package/dist/adminapi/models/pg-create-extension-status.d.ts +24 -0
  34. package/dist/adminapi/models/pg-create-extension-status.d.ts.map +1 -0
  35. package/dist/adminapi/models/pg-create-extension-status.js +28 -0
  36. package/dist/adminapi/models/pg-create-extension-status.js.map +1 -0
  37. package/dist/internalapi/api.d.ts +2 -0
  38. package/dist/internalapi/api.d.ts.map +1 -1
  39. package/dist/internalapi/api.js +2 -0
  40. package/dist/internalapi/api.js.map +1 -1
  41. package/dist/internalapi/apis/environment-api.d.ts +112 -0
  42. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  43. package/dist/internalapi/apis/environment-api.js +135 -0
  44. package/dist/internalapi/apis/environment-api.js.map +1 -1
  45. package/dist/internalapi/apis/image-registry-api.d.ts +142 -0
  46. package/dist/internalapi/apis/image-registry-api.d.ts.map +1 -0
  47. package/dist/internalapi/apis/image-registry-api.js +192 -0
  48. package/dist/internalapi/apis/image-registry-api.js.map +1 -0
  49. package/dist/internalapi/apis/task-api.d.ts +256 -0
  50. package/dist/internalapi/apis/task-api.d.ts.map +1 -0
  51. package/dist/internalapi/apis/task-api.js +290 -0
  52. package/dist/internalapi/apis/task-api.js.map +1 -0
  53. package/dist/internalapi/models/autohealing-config.d.ts +55 -0
  54. package/dist/internalapi/models/autohealing-config.d.ts.map +1 -0
  55. package/dist/internalapi/models/autohealing-config.js +16 -0
  56. package/dist/internalapi/models/autohealing-config.js.map +1 -0
  57. package/dist/internalapi/models/cluster-info.d.ts +37 -0
  58. package/dist/internalapi/models/cluster-info.d.ts.map +1 -0
  59. package/dist/internalapi/models/cluster-info.js +16 -0
  60. package/dist/internalapi/models/cluster-info.js.map +1 -0
  61. package/dist/internalapi/models/cluster-scheduling-policy.d.ts +24 -0
  62. package/dist/internalapi/models/cluster-scheduling-policy.d.ts.map +1 -0
  63. package/dist/internalapi/models/cluster-scheduling-policy.js +28 -0
  64. package/dist/internalapi/models/cluster-scheduling-policy.js.map +1 -0
  65. package/dist/internalapi/models/cluster-validation-policy.d.ts +23 -0
  66. package/dist/internalapi/models/cluster-validation-policy.d.ts.map +1 -0
  67. package/dist/internalapi/models/cluster-validation-policy.js +27 -0
  68. package/dist/internalapi/models/cluster-validation-policy.js.map +1 -0
  69. package/dist/internalapi/models/component.d.ts +79 -0
  70. package/dist/internalapi/models/component.d.ts.map +1 -0
  71. package/dist/internalapi/models/component.js +16 -0
  72. package/dist/internalapi/models/component.js.map +1 -0
  73. package/dist/internalapi/models/dns.d.ts +31 -0
  74. package/dist/internalapi/models/dns.d.ts.map +1 -0
  75. package/dist/internalapi/models/dns.js +16 -0
  76. package/dist/internalapi/models/dns.js.map +1 -0
  77. package/dist/internalapi/models/environment-architecture.d.ts +23 -0
  78. package/dist/internalapi/models/environment-architecture.d.ts.map +1 -0
  79. package/dist/internalapi/models/environment-architecture.js +27 -0
  80. package/dist/internalapi/models/environment-architecture.js.map +1 -0
  81. package/dist/internalapi/models/environment-create.d.ts +133 -0
  82. package/dist/internalapi/models/environment-create.d.ts.map +1 -0
  83. package/dist/internalapi/models/environment-create.js +16 -0
  84. package/dist/internalapi/models/environment-create.js.map +1 -0
  85. package/dist/internalapi/models/environment-delete-policy.d.ts +22 -0
  86. package/dist/internalapi/models/environment-delete-policy.d.ts.map +1 -0
  87. package/dist/internalapi/models/environment-delete-policy.js +26 -0
  88. package/dist/internalapi/models/environment-delete-policy.js.map +1 -0
  89. package/dist/internalapi/models/environment-module-status.d.ts +34 -0
  90. package/dist/internalapi/models/environment-module-status.d.ts.map +1 -0
  91. package/dist/internalapi/models/environment-module-status.js +38 -0
  92. package/dist/internalapi/models/environment-module-status.js.map +1 -0
  93. package/dist/internalapi/models/environment-module.d.ts +106 -0
  94. package/dist/internalapi/models/environment-module.d.ts.map +1 -0
  95. package/dist/internalapi/models/environment-module.js +16 -0
  96. package/dist/internalapi/models/environment-module.js.map +1 -0
  97. package/dist/internalapi/models/environment-register-type.d.ts +21 -0
  98. package/dist/internalapi/models/environment-register-type.d.ts.map +1 -0
  99. package/dist/internalapi/models/environment-register-type.js +25 -0
  100. package/dist/internalapi/models/environment-register-type.js.map +1 -0
  101. package/dist/internalapi/models/environment-state.d.ts +30 -0
  102. package/dist/internalapi/models/environment-state.d.ts.map +1 -0
  103. package/dist/internalapi/models/environment-state.js +34 -0
  104. package/dist/internalapi/models/environment-state.js.map +1 -0
  105. package/dist/internalapi/models/environment.d.ts +193 -0
  106. package/dist/internalapi/models/environment.d.ts.map +1 -0
  107. package/dist/internalapi/models/environment.js +16 -0
  108. package/dist/internalapi/models/environment.js.map +1 -0
  109. package/dist/internalapi/models/index.d.ts +32 -0
  110. package/dist/internalapi/models/index.d.ts.map +1 -1
  111. package/dist/internalapi/models/index.js +32 -0
  112. package/dist/internalapi/models/index.js.map +1 -1
  113. package/dist/internalapi/models/internal-image-registry-list.d.ts +26 -0
  114. package/dist/internalapi/models/internal-image-registry-list.d.ts.map +1 -0
  115. package/dist/internalapi/models/internal-image-registry-list.js +16 -0
  116. package/dist/internalapi/models/internal-image-registry-list.js.map +1 -0
  117. package/dist/internalapi/models/internal-image-registry.d.ts +31 -0
  118. package/dist/internalapi/models/internal-image-registry.d.ts.map +1 -0
  119. package/dist/internalapi/models/internal-image-registry.js +16 -0
  120. package/dist/internalapi/models/internal-image-registry.js.map +1 -0
  121. package/dist/internalapi/models/internal-task-list.d.ts +33 -0
  122. package/dist/internalapi/models/internal-task-list.d.ts.map +1 -0
  123. package/dist/internalapi/models/internal-task-list.js +16 -0
  124. package/dist/internalapi/models/internal-task-list.js.map +1 -0
  125. package/dist/internalapi/models/internal-task-steps-inner.d.ts +32 -0
  126. package/dist/internalapi/models/internal-task-steps-inner.d.ts.map +1 -0
  127. package/dist/internalapi/models/internal-task-steps-inner.js +16 -0
  128. package/dist/internalapi/models/internal-task-steps-inner.js.map +1 -0
  129. package/dist/internalapi/models/internal-task.d.ts +57 -0
  130. package/dist/internalapi/models/internal-task.d.ts.map +1 -0
  131. package/dist/internalapi/models/internal-task.js +16 -0
  132. package/dist/internalapi/models/internal-task.js.map +1 -0
  133. package/dist/internalapi/models/log-backend-type.d.ts +22 -0
  134. package/dist/internalapi/models/log-backend-type.d.ts.map +1 -0
  135. package/dist/internalapi/models/log-backend-type.js +26 -0
  136. package/dist/internalapi/models/log-backend-type.js.map +1 -0
  137. package/dist/internalapi/models/network-config.d.ts +50 -0
  138. package/dist/internalapi/models/network-config.d.ts.map +1 -0
  139. package/dist/internalapi/models/network-config.js +16 -0
  140. package/dist/internalapi/models/network-config.js.map +1 -0
  141. package/dist/internalapi/models/node-pool-node.d.ts +49 -0
  142. package/dist/internalapi/models/node-pool-node.d.ts.map +1 -0
  143. package/dist/internalapi/models/node-pool-node.js +16 -0
  144. package/dist/internalapi/models/node-pool-node.js.map +1 -0
  145. package/dist/internalapi/models/pagination-result.d.ts +37 -0
  146. package/dist/internalapi/models/pagination-result.d.ts.map +1 -0
  147. package/dist/internalapi/models/pagination-result.js +16 -0
  148. package/dist/internalapi/models/pagination-result.js.map +1 -0
  149. package/dist/internalapi/models/provision-config.d.ts +67 -0
  150. package/dist/internalapi/models/provision-config.d.ts.map +1 -0
  151. package/dist/internalapi/models/provision-config.js +16 -0
  152. package/dist/internalapi/models/provision-config.js.map +1 -0
  153. package/dist/internalapi/models/register.d.ts +32 -0
  154. package/dist/internalapi/models/register.d.ts.map +1 -0
  155. package/dist/internalapi/models/register.js +16 -0
  156. package/dist/internalapi/models/register.js.map +1 -0
  157. package/dist/internalapi/models/scheduling-config.d.ts +53 -0
  158. package/dist/internalapi/models/scheduling-config.d.ts.map +1 -0
  159. package/dist/internalapi/models/scheduling-config.js +16 -0
  160. package/dist/internalapi/models/scheduling-config.js.map +1 -0
  161. package/dist/internalapi/models/storage-config-backup.d.ts +43 -0
  162. package/dist/internalapi/models/storage-config-backup.d.ts.map +1 -0
  163. package/dist/internalapi/models/storage-config-backup.js +16 -0
  164. package/dist/internalapi/models/storage-config-backup.js.map +1 -0
  165. package/dist/internalapi/models/storage-config.d.ts +33 -0
  166. package/dist/internalapi/models/storage-config.d.ts.map +1 -0
  167. package/dist/internalapi/models/storage-config.js +16 -0
  168. package/dist/internalapi/models/storage-config.js.map +1 -0
  169. package/dist/internalapi/models/system-component-scheduler-policy.d.ts +22 -0
  170. package/dist/internalapi/models/system-component-scheduler-policy.d.ts.map +1 -0
  171. package/dist/internalapi/models/system-component-scheduler-policy.js +26 -0
  172. package/dist/internalapi/models/system-component-scheduler-policy.js.map +1 -0
  173. package/dist/internalapi/models/task-retry-mode.d.ts +22 -0
  174. package/dist/internalapi/models/task-retry-mode.d.ts.map +1 -0
  175. package/dist/internalapi/models/task-retry-mode.js +26 -0
  176. package/dist/internalapi/models/task-retry-mode.js.map +1 -0
  177. package/dist/internalapi/models/task-status.d.ts +27 -0
  178. package/dist/internalapi/models/task-status.d.ts.map +1 -0
  179. package/dist/internalapi/models/task-status.js +31 -0
  180. package/dist/internalapi/models/task-status.js.map +1 -0
  181. package/dist/internalapi/models/tolerate-default-taints.d.ts +31 -0
  182. package/dist/internalapi/models/tolerate-default-taints.d.ts.map +1 -0
  183. package/dist/internalapi/models/tolerate-default-taints.js +16 -0
  184. package/dist/internalapi/models/tolerate-default-taints.js.map +1 -0
  185. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  186. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  187. package/dist/openapi/apis/cluster-api.js +79 -0
  188. package/dist/openapi/apis/cluster-api.js.map +1 -1
  189. package/dist/openapi/apis/postgresql-api.d.ts +10 -10
  190. package/dist/openapi/apis/postgresql-api.js +8 -8
  191. package/dist/openapi/apis/shared-api.d.ts +72 -0
  192. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  193. package/dist/openapi/apis/shared-api.js +79 -0
  194. package/dist/openapi/apis/shared-api.js.map +1 -1
  195. package/dist/openapi/models/cluster-event-item.d.ts +91 -0
  196. package/dist/openapi/models/cluster-event-item.d.ts.map +1 -0
  197. package/dist/openapi/models/cluster-event-item.js +16 -0
  198. package/dist/openapi/models/cluster-event-item.js.map +1 -0
  199. package/dist/openapi/models/cluster-event-list.d.ts +32 -0
  200. package/dist/openapi/models/cluster-event-list.d.ts.map +1 -0
  201. package/dist/openapi/models/cluster-event-list.js +16 -0
  202. package/dist/openapi/models/cluster-event-list.js.map +1 -0
  203. package/dist/openapi/models/create-pg-extension-resp.d.ts +3 -3
  204. package/dist/openapi/models/create-pg-extension-resp.d.ts.map +1 -1
  205. package/dist/openapi/models/index.d.ts +4 -0
  206. package/dist/openapi/models/index.d.ts.map +1 -1
  207. package/dist/openapi/models/index.js +4 -0
  208. package/dist/openapi/models/index.js.map +1 -1
  209. package/dist/openapi/models/pg-create-extension-opt.d.ts +6 -6
  210. package/dist/openapi/models/pg-create-extension-opt.d.ts.map +1 -1
  211. package/dist/openapi/models/pg-create-extension-result.d.ts +44 -0
  212. package/dist/openapi/models/pg-create-extension-result.d.ts.map +1 -0
  213. package/dist/openapi/models/pg-create-extension-result.js +16 -0
  214. package/dist/openapi/models/pg-create-extension-result.js.map +1 -0
  215. package/dist/openapi/models/pg-create-extension-status.d.ts +24 -0
  216. package/dist/openapi/models/pg-create-extension-status.d.ts.map +1 -0
  217. package/dist/openapi/models/pg-create-extension-status.js +28 -0
  218. package/dist/openapi/models/pg-create-extension-status.js.map +1 -0
  219. package/package.json +1 -1
  220. package/src/adminapi/.openapi-generator/FILES +4 -0
  221. package/src/adminapi/apis/cluster-api.ts +127 -0
  222. package/src/adminapi/apis/postgresql-api.ts +10 -10
  223. package/src/adminapi/apis/shared-api.ts +127 -0
  224. package/src/adminapi/models/cluster-event-item.ts +96 -0
  225. package/src/adminapi/models/cluster-event-list.ts +39 -0
  226. package/src/adminapi/models/create-pg-extension-resp.ts +3 -3
  227. package/src/adminapi/models/environment.ts +6 -0
  228. package/src/adminapi/models/index.ts +4 -0
  229. package/src/adminapi/models/pg-create-extension-opt.ts +6 -6
  230. package/src/adminapi/models/pg-create-extension-result.ts +53 -0
  231. package/src/adminapi/models/pg-create-extension-status.ts +33 -0
  232. package/src/adminapi.yaml +155 -15
  233. package/src/internalapi/.openapi-generator/FILES +34 -0
  234. package/src/internalapi/api.ts +2 -0
  235. package/src/internalapi/apis/environment-api.ts +200 -0
  236. package/src/internalapi/apis/image-registry-api.ts +246 -0
  237. package/src/internalapi/apis/task-api.ts +433 -0
  238. package/src/internalapi/models/autohealing-config.ts +60 -0
  239. package/src/internalapi/models/cluster-info.ts +42 -0
  240. package/src/internalapi/models/cluster-scheduling-policy.ts +33 -0
  241. package/src/internalapi/models/cluster-validation-policy.ts +32 -0
  242. package/src/internalapi/models/component.ts +84 -0
  243. package/src/internalapi/models/dns.ts +36 -0
  244. package/src/internalapi/models/environment-architecture.ts +32 -0
  245. package/src/internalapi/models/environment-create.ts +152 -0
  246. package/src/internalapi/models/environment-delete-policy.ts +31 -0
  247. package/src/internalapi/models/environment-module-status.ts +43 -0
  248. package/src/internalapi/models/environment-module.ts +119 -0
  249. package/src/internalapi/models/environment-register-type.ts +30 -0
  250. package/src/internalapi/models/environment-state.ts +39 -0
  251. package/src/internalapi/models/environment.ts +224 -0
  252. package/src/internalapi/models/index.ts +32 -0
  253. package/src/internalapi/models/internal-image-registry-list.ts +33 -0
  254. package/src/internalapi/models/internal-image-registry.ts +36 -0
  255. package/src/internalapi/models/internal-task-list.ts +42 -0
  256. package/src/internalapi/models/internal-task-steps-inner.ts +41 -0
  257. package/src/internalapi/models/internal-task.ts +68 -0
  258. package/src/internalapi/models/log-backend-type.ts +31 -0
  259. package/src/internalapi/models/network-config.ts +57 -0
  260. package/src/internalapi/models/node-pool-node.ts +54 -0
  261. package/src/internalapi/models/pagination-result.ts +42 -0
  262. package/src/internalapi/models/provision-config.ts +84 -0
  263. package/src/internalapi/models/register.ts +41 -0
  264. package/src/internalapi/models/scheduling-config.ts +68 -0
  265. package/src/internalapi/models/storage-config-backup.ts +48 -0
  266. package/src/internalapi/models/storage-config.ts +42 -0
  267. package/src/internalapi/models/system-component-scheduler-policy.ts +31 -0
  268. package/src/internalapi/models/task-retry-mode.ts +31 -0
  269. package/src/internalapi/models/task-status.ts +36 -0
  270. package/src/internalapi/models/tolerate-default-taints.ts +36 -0
  271. package/src/internalapi.yaml +1022 -177
  272. package/src/openapi/.openapi-generator/FILES +4 -0
  273. package/src/openapi/apis/cluster-api.ts +127 -0
  274. package/src/openapi/apis/postgresql-api.ts +10 -10
  275. package/src/openapi/apis/shared-api.ts +127 -0
  276. package/src/openapi/models/cluster-event-item.ts +96 -0
  277. package/src/openapi/models/cluster-event-list.ts +39 -0
  278. package/src/openapi/models/create-pg-extension-resp.ts +3 -3
  279. package/src/openapi/models/index.ts +4 -0
  280. package/src/openapi/models/pg-create-extension-opt.ts +6 -6
  281. package/src/openapi/models/pg-create-extension-result.ts +53 -0
  282. package/src/openapi/models/pg-create-extension-status.ts +33 -0
  283. package/src/openapi.yaml +151 -14
@@ -0,0 +1,246 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ImageRegistry } from '../models';
26
+ // @ts-ignore
27
+ import type { InternalImageRegistryList } from '../models';
28
+ /**
29
+ * ImageRegistryApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const ImageRegistryApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Create image registry
37
+ * @param {ImageRegistry} body
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ createImageRegistry: async (body: ImageRegistry, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'body' is not null or undefined
43
+ assertParamExists('createImageRegistry', 'body', body)
44
+ const localVarPath = `/internal/v1/imageRegistries`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+
52
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
53
+ const localVarHeaderParameter = {} as any;
54
+ const localVarQueryParameter = {} as any;
55
+
56
+ // authentication BasicAuth required
57
+ // http basic authentication required
58
+ setBasicAuthToObject(localVarRequestOptions, configuration)
59
+
60
+
61
+
62
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63
+
64
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
68
+
69
+ return {
70
+ url: toPathString(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ },
74
+ /**
75
+ *
76
+ * @summary List image registry names and URLs without credentials
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ listInternalImageRegistries: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
81
+ const localVarPath = `/internal/v1/imageRegistries`;
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+
89
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
90
+ const localVarHeaderParameter = {} as any;
91
+ const localVarQueryParameter = {} as any;
92
+
93
+ // authentication BasicAuth required
94
+ // http basic authentication required
95
+ setBasicAuthToObject(localVarRequestOptions, configuration)
96
+
97
+
98
+
99
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
102
+
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ },
108
+ }
109
+ };
110
+
111
+ /**
112
+ * ImageRegistryApi - functional programming interface
113
+ * @export
114
+ */
115
+ export const ImageRegistryApiFp = function(configuration?: Configuration) {
116
+ const localVarAxiosParamCreator = ImageRegistryApiAxiosParamCreator(configuration)
117
+ return {
118
+ /**
119
+ *
120
+ * @summary Create image registry
121
+ * @param {ImageRegistry} body
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ async createImageRegistry(body: ImageRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageRegistry>> {
126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createImageRegistry(body, options);
127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
128
+ const localVarOperationServerBasePath = operationServerMap['ImageRegistryApi.createImageRegistry']?.[localVarOperationServerIndex]?.url;
129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
130
+ },
131
+ /**
132
+ *
133
+ * @summary List image registry names and URLs without credentials
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ async listInternalImageRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InternalImageRegistryList>> {
138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInternalImageRegistries(options);
139
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
140
+ const localVarOperationServerBasePath = operationServerMap['ImageRegistryApi.listInternalImageRegistries']?.[localVarOperationServerIndex]?.url;
141
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
142
+ },
143
+ }
144
+ };
145
+
146
+ /**
147
+ * ImageRegistryApi - factory interface
148
+ * @export
149
+ */
150
+ export const ImageRegistryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
151
+ const localVarFp = ImageRegistryApiFp(configuration)
152
+ return {
153
+ /**
154
+ *
155
+ * @summary Create image registry
156
+ * @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageRegistry> {
161
+ return localVarFp.createImageRegistry(requestParameters.body, options).then((request) => request(axios, basePath));
162
+ },
163
+ /**
164
+ *
165
+ * @summary List image registry names and URLs without credentials
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ listInternalImageRegistries(options?: RawAxiosRequestConfig): AxiosPromise<InternalImageRegistryList> {
170
+ return localVarFp.listInternalImageRegistries(options).then((request) => request(axios, basePath));
171
+ },
172
+ };
173
+ };
174
+
175
+ /**
176
+ * ImageRegistryApi - interface
177
+ * @export
178
+ * @interface ImageRegistryApi
179
+ */
180
+ export interface ImageRegistryApiInterface {
181
+ /**
182
+ *
183
+ * @summary Create image registry
184
+ * @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ * @memberof ImageRegistryApiInterface
188
+ */
189
+ createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageRegistry>;
190
+
191
+ /**
192
+ *
193
+ * @summary List image registry names and URLs without credentials
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ * @memberof ImageRegistryApiInterface
197
+ */
198
+ listInternalImageRegistries(options?: RawAxiosRequestConfig): AxiosPromise<InternalImageRegistryList>;
199
+
200
+ }
201
+
202
+ /**
203
+ * Request parameters for createImageRegistry operation in ImageRegistryApi.
204
+ * @export
205
+ * @interface ImageRegistryApiCreateImageRegistryRequest
206
+ */
207
+ export interface ImageRegistryApiCreateImageRegistryRequest {
208
+ /**
209
+ *
210
+ * @type {ImageRegistry}
211
+ * @memberof ImageRegistryApiCreateImageRegistry
212
+ */
213
+ readonly body: ImageRegistry
214
+ }
215
+
216
+ /**
217
+ * ImageRegistryApi - object-oriented interface
218
+ * @export
219
+ * @class ImageRegistryApi
220
+ * @extends {BaseAPI}
221
+ */
222
+ export class ImageRegistryApi extends BaseAPI implements ImageRegistryApiInterface {
223
+ /**
224
+ *
225
+ * @summary Create image registry
226
+ * @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ * @memberof ImageRegistryApi
230
+ */
231
+ public createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig) {
232
+ return ImageRegistryApiFp(this.configuration).createImageRegistry(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
233
+ }
234
+
235
+ /**
236
+ *
237
+ * @summary List image registry names and URLs without credentials
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof ImageRegistryApi
241
+ */
242
+ public listInternalImageRegistries(options?: RawAxiosRequestConfig) {
243
+ return ImageRegistryApiFp(this.configuration).listInternalImageRegistries(options).then((request) => request(this.axios, this.basePath));
244
+ }
245
+ }
246
+
@@ -0,0 +1,433 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { APIErrorResponse } from '../models';
26
+ // @ts-ignore
27
+ import type { InternalTask } from '../models';
28
+ // @ts-ignore
29
+ import type { InternalTaskList } from '../models';
30
+ // @ts-ignore
31
+ import type { TaskRetryMode } from '../models';
32
+ /**
33
+ * TaskApi - axios parameter creator
34
+ * @export
35
+ */
36
+ export const TaskApiAxiosParamCreator = function (configuration?: Configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary Get task status independently of the resource lifecycle
41
+ * @param {string} taskId
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getInternalTask: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'taskId' is not null or undefined
47
+ assertParamExists('getInternalTask', 'taskId', taskId)
48
+ const localVarPath = `/internal/v1/tasks/{taskId}`
49
+ .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ }
56
+
57
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58
+ const localVarHeaderParameter = {} as any;
59
+ const localVarQueryParameter = {} as any;
60
+
61
+ // authentication BasicAuth required
62
+ // http basic authentication required
63
+ setBasicAuthToObject(localVarRequestOptions, configuration)
64
+
65
+
66
+
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ /**
77
+ *
78
+ * @summary List tasks, newest first, optionally filtered by resource and task type
79
+ * @param {string} [resourceType]
80
+ * @param {string} [resourceId]
81
+ * @param {string} [taskType] Comma-separated task types.
82
+ * @param {number} [pageSize]
83
+ * @param {number} [pageNumber]
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ listInternalTasks: async (resourceType?: string, resourceId?: string, taskType?: string, pageSize?: number, pageNumber?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
88
+ const localVarPath = `/internal/v1/tasks`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+
96
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
97
+ const localVarHeaderParameter = {} as any;
98
+ const localVarQueryParameter = {} as any;
99
+
100
+ // authentication BasicAuth required
101
+ // http basic authentication required
102
+ setBasicAuthToObject(localVarRequestOptions, configuration)
103
+
104
+ if (resourceType !== undefined) {
105
+ localVarQueryParameter['resourceType'] = resourceType;
106
+ }
107
+
108
+ if (resourceId !== undefined) {
109
+ localVarQueryParameter['resourceId'] = resourceId;
110
+ }
111
+
112
+ if (taskType !== undefined) {
113
+ localVarQueryParameter['taskType'] = taskType;
114
+ }
115
+
116
+ if (pageSize !== undefined) {
117
+ localVarQueryParameter['pageSize'] = pageSize;
118
+ }
119
+
120
+ if (pageNumber !== undefined) {
121
+ localVarQueryParameter['pageNumber'] = pageNumber;
122
+ }
123
+
124
+
125
+
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ *
137
+ * @summary Retry a failed or stopped task using the existing task retry policy
138
+ * @param {string} taskId
139
+ * @param {TaskRetryMode} [mode]
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ retryInternalTask: async (taskId: string, mode?: TaskRetryMode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'taskId' is not null or undefined
145
+ assertParamExists('retryInternalTask', 'taskId', taskId)
146
+ const localVarPath = `/internal/v1/tasks/{taskId}/retry`
147
+ .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication BasicAuth required
160
+ // http basic authentication required
161
+ setBasicAuthToObject(localVarRequestOptions, configuration)
162
+
163
+ if (mode !== undefined) {
164
+ localVarQueryParameter['mode'] = mode;
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ }
179
+ };
180
+
181
+ /**
182
+ * TaskApi - functional programming interface
183
+ * @export
184
+ */
185
+ export const TaskApiFp = function(configuration?: Configuration) {
186
+ const localVarAxiosParamCreator = TaskApiAxiosParamCreator(configuration)
187
+ return {
188
+ /**
189
+ *
190
+ * @summary Get task status independently of the resource lifecycle
191
+ * @param {string} taskId
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ async getInternalTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InternalTask>> {
196
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInternalTask(taskId, options);
197
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
198
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.getInternalTask']?.[localVarOperationServerIndex]?.url;
199
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
200
+ },
201
+ /**
202
+ *
203
+ * @summary List tasks, newest first, optionally filtered by resource and task type
204
+ * @param {string} [resourceType]
205
+ * @param {string} [resourceId]
206
+ * @param {string} [taskType] Comma-separated task types.
207
+ * @param {number} [pageSize]
208
+ * @param {number} [pageNumber]
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ async listInternalTasks(resourceType?: string, resourceId?: string, taskType?: string, pageSize?: number, pageNumber?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InternalTaskList>> {
213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInternalTasks(resourceType, resourceId, taskType, pageSize, pageNumber, options);
214
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
215
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.listInternalTasks']?.[localVarOperationServerIndex]?.url;
216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
+ },
218
+ /**
219
+ *
220
+ * @summary Retry a failed or stopped task using the existing task retry policy
221
+ * @param {string} taskId
222
+ * @param {TaskRetryMode} [mode]
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ async retryInternalTask(taskId: string, mode?: TaskRetryMode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InternalTask>> {
227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryInternalTask(taskId, mode, options);
228
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
229
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.retryInternalTask']?.[localVarOperationServerIndex]?.url;
230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
231
+ },
232
+ }
233
+ };
234
+
235
+ /**
236
+ * TaskApi - factory interface
237
+ * @export
238
+ */
239
+ export const TaskApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
240
+ const localVarFp = TaskApiFp(configuration)
241
+ return {
242
+ /**
243
+ *
244
+ * @summary Get task status independently of the resource lifecycle
245
+ * @param {TaskApiGetInternalTaskRequest} requestParameters Request parameters.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getInternalTask(requestParameters: TaskApiGetInternalTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<InternalTask> {
250
+ return localVarFp.getInternalTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
251
+ },
252
+ /**
253
+ *
254
+ * @summary List tasks, newest first, optionally filtered by resource and task type
255
+ * @param {TaskApiListInternalTasksRequest} requestParameters Request parameters.
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ listInternalTasks(requestParameters: TaskApiListInternalTasksRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<InternalTaskList> {
260
+ return localVarFp.listInternalTasks(requestParameters.resourceType, requestParameters.resourceId, requestParameters.taskType, requestParameters.pageSize, requestParameters.pageNumber, options).then((request) => request(axios, basePath));
261
+ },
262
+ /**
263
+ *
264
+ * @summary Retry a failed or stopped task using the existing task retry policy
265
+ * @param {TaskApiRetryInternalTaskRequest} requestParameters Request parameters.
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ retryInternalTask(requestParameters: TaskApiRetryInternalTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<InternalTask> {
270
+ return localVarFp.retryInternalTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(axios, basePath));
271
+ },
272
+ };
273
+ };
274
+
275
+ /**
276
+ * TaskApi - interface
277
+ * @export
278
+ * @interface TaskApi
279
+ */
280
+ export interface TaskApiInterface {
281
+ /**
282
+ *
283
+ * @summary Get task status independently of the resource lifecycle
284
+ * @param {TaskApiGetInternalTaskRequest} requestParameters Request parameters.
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof TaskApiInterface
288
+ */
289
+ getInternalTask(requestParameters: TaskApiGetInternalTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<InternalTask>;
290
+
291
+ /**
292
+ *
293
+ * @summary List tasks, newest first, optionally filtered by resource and task type
294
+ * @param {TaskApiListInternalTasksRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ * @memberof TaskApiInterface
298
+ */
299
+ listInternalTasks(requestParameters?: TaskApiListInternalTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<InternalTaskList>;
300
+
301
+ /**
302
+ *
303
+ * @summary Retry a failed or stopped task using the existing task retry policy
304
+ * @param {TaskApiRetryInternalTaskRequest} requestParameters Request parameters.
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ * @memberof TaskApiInterface
308
+ */
309
+ retryInternalTask(requestParameters: TaskApiRetryInternalTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<InternalTask>;
310
+
311
+ }
312
+
313
+ /**
314
+ * Request parameters for getInternalTask operation in TaskApi.
315
+ * @export
316
+ * @interface TaskApiGetInternalTaskRequest
317
+ */
318
+ export interface TaskApiGetInternalTaskRequest {
319
+ /**
320
+ *
321
+ * @type {string}
322
+ * @memberof TaskApiGetInternalTask
323
+ */
324
+ readonly taskId: string
325
+ }
326
+
327
+ /**
328
+ * Request parameters for listInternalTasks operation in TaskApi.
329
+ * @export
330
+ * @interface TaskApiListInternalTasksRequest
331
+ */
332
+ export interface TaskApiListInternalTasksRequest {
333
+ /**
334
+ *
335
+ * @type {string}
336
+ * @memberof TaskApiListInternalTasks
337
+ */
338
+ readonly resourceType?: string
339
+
340
+ /**
341
+ *
342
+ * @type {string}
343
+ * @memberof TaskApiListInternalTasks
344
+ */
345
+ readonly resourceId?: string
346
+
347
+ /**
348
+ * Comma-separated task types.
349
+ * @type {string}
350
+ * @memberof TaskApiListInternalTasks
351
+ */
352
+ readonly taskType?: string
353
+
354
+ /**
355
+ *
356
+ * @type {number}
357
+ * @memberof TaskApiListInternalTasks
358
+ */
359
+ readonly pageSize?: number
360
+
361
+ /**
362
+ *
363
+ * @type {number}
364
+ * @memberof TaskApiListInternalTasks
365
+ */
366
+ readonly pageNumber?: number
367
+ }
368
+
369
+ /**
370
+ * Request parameters for retryInternalTask operation in TaskApi.
371
+ * @export
372
+ * @interface TaskApiRetryInternalTaskRequest
373
+ */
374
+ export interface TaskApiRetryInternalTaskRequest {
375
+ /**
376
+ *
377
+ * @type {string}
378
+ * @memberof TaskApiRetryInternalTask
379
+ */
380
+ readonly taskId: string
381
+
382
+ /**
383
+ *
384
+ * @type {TaskRetryMode}
385
+ * @memberof TaskApiRetryInternalTask
386
+ */
387
+ readonly mode?: TaskRetryMode
388
+ }
389
+
390
+ /**
391
+ * TaskApi - object-oriented interface
392
+ * @export
393
+ * @class TaskApi
394
+ * @extends {BaseAPI}
395
+ */
396
+ export class TaskApi extends BaseAPI implements TaskApiInterface {
397
+ /**
398
+ *
399
+ * @summary Get task status independently of the resource lifecycle
400
+ * @param {TaskApiGetInternalTaskRequest} requestParameters Request parameters.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ * @memberof TaskApi
404
+ */
405
+ public getInternalTask(requestParameters: TaskApiGetInternalTaskRequest, options?: RawAxiosRequestConfig) {
406
+ return TaskApiFp(this.configuration).getInternalTask(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
407
+ }
408
+
409
+ /**
410
+ *
411
+ * @summary List tasks, newest first, optionally filtered by resource and task type
412
+ * @param {TaskApiListInternalTasksRequest} requestParameters Request parameters.
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ * @memberof TaskApi
416
+ */
417
+ public listInternalTasks(requestParameters: TaskApiListInternalTasksRequest = {}, options?: RawAxiosRequestConfig) {
418
+ return TaskApiFp(this.configuration).listInternalTasks(requestParameters.resourceType, requestParameters.resourceId, requestParameters.taskType, requestParameters.pageSize, requestParameters.pageNumber, options).then((request) => request(this.axios, this.basePath));
419
+ }
420
+
421
+ /**
422
+ *
423
+ * @summary Retry a failed or stopped task using the existing task retry policy
424
+ * @param {TaskApiRetryInternalTaskRequest} requestParameters Request parameters.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ * @memberof TaskApi
428
+ */
429
+ public retryInternalTask(requestParameters: TaskApiRetryInternalTaskRequest, options?: RawAxiosRequestConfig) {
430
+ return TaskApiFp(this.configuration).retryInternalTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
431
+ }
432
+ }
433
+