kb-cloud-client-typescript 2.4.0-alpha.102 → 2.4.0-alpha.105

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 (273) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/aiagent-api.d.ts +6 -6
  6. package/dist/adminapi/apis/aiagent-api.js +4 -4
  7. package/dist/adminapi/apis/alert-rule-api.d.ts +223 -0
  8. package/dist/adminapi/apis/alert-rule-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/alert-rule-api.js +241 -0
  10. package/dist/adminapi/apis/alert-rule-api.js.map +1 -1
  11. package/dist/adminapi/apis/node-alert-api.d.ts +247 -0
  12. package/dist/adminapi/apis/node-alert-api.d.ts.map +1 -0
  13. package/dist/adminapi/apis/node-alert-api.js +292 -0
  14. package/dist/adminapi/apis/node-alert-api.js.map +1 -0
  15. package/dist/adminapi/apis/opsrequest-api.d.ts +5 -5
  16. package/dist/adminapi/apis/opsrequest-api.js +4 -4
  17. package/dist/adminapi/apis/organization-api.d.ts +211 -2
  18. package/dist/adminapi/apis/organization-api.d.ts.map +1 -1
  19. package/dist/adminapi/apis/organization-api.js +245 -5
  20. package/dist/adminapi/apis/organization-api.js.map +1 -1
  21. package/dist/adminapi/apis/shared-api.d.ts +438 -7
  22. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  23. package/dist/adminapi/apis/shared-api.js +490 -9
  24. package/dist/adminapi/apis/shared-api.js.map +1 -1
  25. package/dist/adminapi/apis/task-api.d.ts +55 -0
  26. package/dist/adminapi/apis/task-api.d.ts.map +1 -1
  27. package/dist/adminapi/apis/task-api.js +69 -0
  28. package/dist/adminapi/apis/task-api.js.map +1 -1
  29. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts +12 -0
  30. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
  31. package/dist/adminapi/models/alert-cluster-silence.d.ts +1 -1
  32. package/dist/adminapi/models/alert-cluster.d.ts +3 -3
  33. package/dist/adminapi/models/alert-resource-type.d.ts +22 -0
  34. package/dist/adminapi/models/alert-resource-type.d.ts.map +1 -0
  35. package/dist/adminapi/models/alert-resource-type.js +26 -0
  36. package/dist/adminapi/models/alert-resource-type.js.map +1 -0
  37. package/dist/adminapi/models/component-item-create.d.ts +8 -0
  38. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  39. package/dist/adminapi/models/component-item.d.ts +8 -0
  40. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  41. package/dist/adminapi/models/component-option.d.ts +6 -0
  42. package/dist/adminapi/models/component-option.d.ts.map +1 -1
  43. package/dist/adminapi/models/engine-option-license.d.ts +13 -0
  44. package/dist/adminapi/models/engine-option-license.d.ts.map +1 -1
  45. package/dist/adminapi/models/index.d.ts +10 -0
  46. package/dist/adminapi/models/index.d.ts.map +1 -1
  47. package/dist/adminapi/models/index.js +10 -0
  48. package/dist/adminapi/models/index.js.map +1 -1
  49. package/dist/adminapi/models/inspection-task.d.ts +2 -2
  50. package/dist/adminapi/models/ops-expose-type.d.ts +2 -1
  51. package/dist/adminapi/models/ops-expose-type.d.ts.map +1 -1
  52. package/dist/adminapi/models/ops-expose-type.js +3 -2
  53. package/dist/adminapi/models/ops-expose-type.js.map +1 -1
  54. package/dist/adminapi/models/ops-expose.d.ts +1 -1
  55. package/dist/adminapi/models/org-configuration-item.d.ts +31 -0
  56. package/dist/adminapi/models/org-configuration-item.d.ts.map +1 -0
  57. package/dist/adminapi/models/org-configuration-item.js +16 -0
  58. package/dist/adminapi/models/org-configuration-item.js.map +1 -0
  59. package/dist/adminapi/models/org-configuration-summary.d.ts +56 -0
  60. package/dist/adminapi/models/org-configuration-summary.d.ts.map +1 -0
  61. package/dist/adminapi/models/org-configuration-summary.js +16 -0
  62. package/dist/adminapi/models/org-configuration-summary.js.map +1 -0
  63. package/dist/adminapi/models/org-deletion-action.d.ts +22 -0
  64. package/dist/adminapi/models/org-deletion-action.d.ts.map +1 -0
  65. package/dist/adminapi/models/org-deletion-action.js +26 -0
  66. package/dist/adminapi/models/org-deletion-action.js.map +1 -0
  67. package/dist/adminapi/models/org-deletion-blocker.d.ts +37 -0
  68. package/dist/adminapi/models/org-deletion-blocker.d.ts.map +1 -0
  69. package/dist/adminapi/models/org-deletion-blocker.js +16 -0
  70. package/dist/adminapi/models/org-deletion-blocker.js.map +1 -0
  71. package/dist/adminapi/models/org-deletion-preview.d.ts +82 -0
  72. package/dist/adminapi/models/org-deletion-preview.d.ts.map +1 -0
  73. package/dist/adminapi/models/org-deletion-preview.js +16 -0
  74. package/dist/adminapi/models/org-deletion-preview.js.map +1 -0
  75. package/dist/adminapi/models/org-lifecycle-request.d.ts +31 -0
  76. package/dist/adminapi/models/org-lifecycle-request.d.ts.map +1 -0
  77. package/dist/adminapi/models/org-lifecycle-request.js +16 -0
  78. package/dist/adminapi/models/org-lifecycle-request.js.map +1 -0
  79. package/dist/adminapi/models/org-purge-result.d.ts +37 -0
  80. package/dist/adminapi/models/org-purge-result.d.ts.map +1 -0
  81. package/dist/adminapi/models/org-purge-result.js +16 -0
  82. package/dist/adminapi/models/org-purge-result.js.map +1 -0
  83. package/dist/adminapi/models/org-retained-resource.d.ts +37 -0
  84. package/dist/adminapi/models/org-retained-resource.d.ts.map +1 -0
  85. package/dist/adminapi/models/org-retained-resource.js +16 -0
  86. package/dist/adminapi/models/org-retained-resource.js.map +1 -0
  87. package/dist/adminapi/models/org-status.d.ts +25 -0
  88. package/dist/adminapi/models/org-status.d.ts.map +1 -0
  89. package/dist/adminapi/models/org-status.js +29 -0
  90. package/dist/adminapi/models/org-status.js.map +1 -0
  91. package/dist/adminapi/models/org.d.ts +25 -0
  92. package/dist/adminapi/models/org.d.ts.map +1 -1
  93. package/dist/adminapi/models/organization-item.d.ts +31 -0
  94. package/dist/adminapi/models/organization-item.d.ts.map +1 -1
  95. package/dist/adminapi/models/restore-create.d.ts +1 -1
  96. package/dist/adminapi/models/task-status.d.ts +1 -0
  97. package/dist/adminapi/models/task-status.d.ts.map +1 -1
  98. package/dist/adminapi/models/task-status.js +2 -1
  99. package/dist/adminapi/models/task-status.js.map +1 -1
  100. package/dist/internalapi/apis/environment-api.d.ts +63 -0
  101. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  102. package/dist/internalapi/apis/environment-api.js +72 -0
  103. package/dist/internalapi/apis/environment-api.js.map +1 -1
  104. package/dist/internalapi/apis/recycle-bin-cluster-api.d.ts +15 -7
  105. package/dist/internalapi/apis/recycle-bin-cluster-api.d.ts.map +1 -1
  106. package/dist/internalapi/apis/recycle-bin-cluster-api.js +18 -11
  107. package/dist/internalapi/apis/recycle-bin-cluster-api.js.map +1 -1
  108. package/dist/internalapi/models/component-item.d.ts +8 -0
  109. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  110. package/dist/openapi/apis/aiagent-api.d.ts +6 -6
  111. package/dist/openapi/apis/aiagent-api.js +4 -4
  112. package/dist/openapi/apis/alert-rule-api.d.ts +223 -0
  113. package/dist/openapi/apis/alert-rule-api.d.ts.map +1 -1
  114. package/dist/openapi/apis/alert-rule-api.js +241 -0
  115. package/dist/openapi/apis/alert-rule-api.js.map +1 -1
  116. package/dist/openapi/apis/opsrequest-api.d.ts +5 -5
  117. package/dist/openapi/apis/opsrequest-api.js +4 -4
  118. package/dist/openapi/apis/organization-api.d.ts +211 -2
  119. package/dist/openapi/apis/organization-api.d.ts.map +1 -1
  120. package/dist/openapi/apis/organization-api.js +245 -5
  121. package/dist/openapi/apis/organization-api.js.map +1 -1
  122. package/dist/openapi/apis/shared-api.d.ts +438 -7
  123. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  124. package/dist/openapi/apis/shared-api.js +490 -9
  125. package/dist/openapi/apis/shared-api.js.map +1 -1
  126. package/dist/openapi/apis/task-api.d.ts +63 -0
  127. package/dist/openapi/apis/task-api.d.ts.map +1 -1
  128. package/dist/openapi/apis/task-api.js +74 -0
  129. package/dist/openapi/apis/task-api.js.map +1 -1
  130. package/dist/openapi/models/ai-agent-turn-action-list.d.ts +12 -0
  131. package/dist/openapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
  132. package/dist/openapi/models/alert-cluster-silence.d.ts +1 -1
  133. package/dist/openapi/models/alert-cluster.d.ts +3 -3
  134. package/dist/openapi/models/alert-resource-type.d.ts +22 -0
  135. package/dist/openapi/models/alert-resource-type.d.ts.map +1 -0
  136. package/dist/openapi/models/alert-resource-type.js +26 -0
  137. package/dist/openapi/models/alert-resource-type.js.map +1 -0
  138. package/dist/openapi/models/component-item-create.d.ts +8 -0
  139. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  140. package/dist/openapi/models/component-item.d.ts +8 -0
  141. package/dist/openapi/models/component-item.d.ts.map +1 -1
  142. package/dist/openapi/models/component-option.d.ts +6 -0
  143. package/dist/openapi/models/component-option.d.ts.map +1 -1
  144. package/dist/openapi/models/engine-option-license.d.ts +13 -0
  145. package/dist/openapi/models/engine-option-license.d.ts.map +1 -1
  146. package/dist/openapi/models/index.d.ts +10 -0
  147. package/dist/openapi/models/index.d.ts.map +1 -1
  148. package/dist/openapi/models/index.js +10 -0
  149. package/dist/openapi/models/index.js.map +1 -1
  150. package/dist/openapi/models/inspection-task.d.ts +2 -2
  151. package/dist/openapi/models/ops-expose-type.d.ts +2 -1
  152. package/dist/openapi/models/ops-expose-type.d.ts.map +1 -1
  153. package/dist/openapi/models/ops-expose-type.js +3 -2
  154. package/dist/openapi/models/ops-expose-type.js.map +1 -1
  155. package/dist/openapi/models/ops-expose.d.ts +1 -1
  156. package/dist/openapi/models/org-configuration-item.d.ts +31 -0
  157. package/dist/openapi/models/org-configuration-item.d.ts.map +1 -0
  158. package/dist/openapi/models/org-configuration-item.js +16 -0
  159. package/dist/openapi/models/org-configuration-item.js.map +1 -0
  160. package/dist/openapi/models/org-configuration-summary.d.ts +56 -0
  161. package/dist/openapi/models/org-configuration-summary.d.ts.map +1 -0
  162. package/dist/openapi/models/org-configuration-summary.js +16 -0
  163. package/dist/openapi/models/org-configuration-summary.js.map +1 -0
  164. package/dist/openapi/models/org-deletion-action.d.ts +22 -0
  165. package/dist/openapi/models/org-deletion-action.d.ts.map +1 -0
  166. package/dist/openapi/models/org-deletion-action.js +26 -0
  167. package/dist/openapi/models/org-deletion-action.js.map +1 -0
  168. package/dist/openapi/models/org-deletion-blocker.d.ts +37 -0
  169. package/dist/openapi/models/org-deletion-blocker.d.ts.map +1 -0
  170. package/dist/openapi/models/org-deletion-blocker.js +16 -0
  171. package/dist/openapi/models/org-deletion-blocker.js.map +1 -0
  172. package/dist/openapi/models/org-deletion-preview.d.ts +82 -0
  173. package/dist/openapi/models/org-deletion-preview.d.ts.map +1 -0
  174. package/dist/openapi/models/org-deletion-preview.js +16 -0
  175. package/dist/openapi/models/org-deletion-preview.js.map +1 -0
  176. package/dist/openapi/models/org-lifecycle-request.d.ts +31 -0
  177. package/dist/openapi/models/org-lifecycle-request.d.ts.map +1 -0
  178. package/dist/openapi/models/org-lifecycle-request.js +16 -0
  179. package/dist/openapi/models/org-lifecycle-request.js.map +1 -0
  180. package/dist/openapi/models/org-purge-result.d.ts +37 -0
  181. package/dist/openapi/models/org-purge-result.d.ts.map +1 -0
  182. package/dist/openapi/models/org-purge-result.js +16 -0
  183. package/dist/openapi/models/org-purge-result.js.map +1 -0
  184. package/dist/openapi/models/org-retained-resource.d.ts +37 -0
  185. package/dist/openapi/models/org-retained-resource.d.ts.map +1 -0
  186. package/dist/openapi/models/org-retained-resource.js +16 -0
  187. package/dist/openapi/models/org-retained-resource.js.map +1 -0
  188. package/dist/openapi/models/org-status.d.ts +25 -0
  189. package/dist/openapi/models/org-status.d.ts.map +1 -0
  190. package/dist/openapi/models/org-status.js +29 -0
  191. package/dist/openapi/models/org-status.js.map +1 -0
  192. package/dist/openapi/models/org.d.ts +25 -0
  193. package/dist/openapi/models/org.d.ts.map +1 -1
  194. package/dist/openapi/models/restore-create.d.ts +1 -1
  195. package/dist/openapi/models/task-status.d.ts +1 -0
  196. package/dist/openapi/models/task-status.d.ts.map +1 -1
  197. package/dist/openapi/models/task-status.js +2 -1
  198. package/dist/openapi/models/task-status.js.map +1 -1
  199. package/dist/openapi/models/user-org.d.ts +25 -0
  200. package/dist/openapi/models/user-org.d.ts.map +1 -1
  201. package/package.json +1 -1
  202. package/src/adminapi/.openapi-generator/FILES +11 -0
  203. package/src/adminapi/api.ts +1 -0
  204. package/src/adminapi/apis/aiagent-api.ts +6 -6
  205. package/src/adminapi/apis/alert-rule-api.ts +388 -0
  206. package/src/adminapi/apis/node-alert-api.ts +424 -0
  207. package/src/adminapi/apis/opsrequest-api.ts +5 -5
  208. package/src/adminapi/apis/organization-api.ts +386 -5
  209. package/src/adminapi/apis/shared-api.ts +908 -141
  210. package/src/adminapi/apis/task-api.ts +100 -0
  211. package/src/adminapi/models/ai-agent-turn-action-list.ts +12 -0
  212. package/src/adminapi/models/alert-cluster-silence.ts +1 -1
  213. package/src/adminapi/models/alert-cluster.ts +3 -3
  214. package/src/adminapi/models/alert-resource-type.ts +31 -0
  215. package/src/adminapi/models/component-item-create.ts +6 -0
  216. package/src/adminapi/models/component-item.ts +6 -0
  217. package/src/adminapi/models/component-option.ts +6 -0
  218. package/src/adminapi/models/engine-option-license.ts +15 -0
  219. package/src/adminapi/models/index.ts +10 -0
  220. package/src/adminapi/models/inspection-task.ts +2 -2
  221. package/src/adminapi/models/ops-expose-type.ts +3 -2
  222. package/src/adminapi/models/ops-expose.ts +1 -1
  223. package/src/adminapi/models/org-configuration-item.ts +36 -0
  224. package/src/adminapi/models/org-configuration-summary.ts +63 -0
  225. package/src/adminapi/models/org-deletion-action.ts +31 -0
  226. package/src/adminapi/models/org-deletion-blocker.ts +42 -0
  227. package/src/adminapi/models/org-deletion-preview.ts +93 -0
  228. package/src/adminapi/models/org-lifecycle-request.ts +36 -0
  229. package/src/adminapi/models/org-purge-result.ts +42 -0
  230. package/src/adminapi/models/org-retained-resource.ts +42 -0
  231. package/src/adminapi/models/org-status.ts +34 -0
  232. package/src/adminapi/models/org.ts +29 -0
  233. package/src/adminapi/models/organization-item.ts +35 -0
  234. package/src/adminapi/models/restore-create.ts +1 -1
  235. package/src/adminapi/models/task-status.ts +2 -1
  236. package/src/adminapi.yaml +732 -139
  237. package/src/internalapi/apis/environment-api.ts +110 -0
  238. package/src/internalapi/apis/recycle-bin-cluster-api.ts +29 -14
  239. package/src/internalapi/models/component-item.ts +6 -0
  240. package/src/internalapi.yaml +38 -3
  241. package/src/openapi/.openapi-generator/FILES +10 -0
  242. package/src/openapi/apis/aiagent-api.ts +6 -6
  243. package/src/openapi/apis/alert-rule-api.ts +388 -0
  244. package/src/openapi/apis/opsrequest-api.ts +5 -5
  245. package/src/openapi/apis/organization-api.ts +386 -5
  246. package/src/openapi/apis/shared-api.ts +908 -141
  247. package/src/openapi/apis/task-api.ts +112 -0
  248. package/src/openapi/models/ai-agent-turn-action-list.ts +12 -0
  249. package/src/openapi/models/alert-cluster-silence.ts +1 -1
  250. package/src/openapi/models/alert-cluster.ts +3 -3
  251. package/src/openapi/models/alert-resource-type.ts +31 -0
  252. package/src/openapi/models/component-item-create.ts +6 -0
  253. package/src/openapi/models/component-item.ts +6 -0
  254. package/src/openapi/models/component-option.ts +6 -0
  255. package/src/openapi/models/engine-option-license.ts +15 -0
  256. package/src/openapi/models/index.ts +10 -0
  257. package/src/openapi/models/inspection-task.ts +2 -2
  258. package/src/openapi/models/ops-expose-type.ts +3 -2
  259. package/src/openapi/models/ops-expose.ts +1 -1
  260. package/src/openapi/models/org-configuration-item.ts +36 -0
  261. package/src/openapi/models/org-configuration-summary.ts +63 -0
  262. package/src/openapi/models/org-deletion-action.ts +31 -0
  263. package/src/openapi/models/org-deletion-blocker.ts +42 -0
  264. package/src/openapi/models/org-deletion-preview.ts +93 -0
  265. package/src/openapi/models/org-lifecycle-request.ts +36 -0
  266. package/src/openapi/models/org-purge-result.ts +42 -0
  267. package/src/openapi/models/org-retained-resource.ts +42 -0
  268. package/src/openapi/models/org-status.ts +34 -0
  269. package/src/openapi/models/org.ts +29 -0
  270. package/src/openapi/models/restore-create.ts +1 -1
  271. package/src/openapi/models/task-status.ts +2 -1
  272. package/src/openapi/models/user-org.ts +29 -0
  273. package/src/openapi.yaml +503 -9
@@ -40,6 +40,8 @@ import type { AlertInhibit } from '../models';
40
40
  // @ts-ignore
41
41
  import type { AlertObject } from '../models';
42
42
  // @ts-ignore
43
+ import type { AlertResourceType } from '../models';
44
+ // @ts-ignore
43
45
  import type { AlertRule } from '../models';
44
46
  // @ts-ignore
45
47
  import type { AlertRuleList } from '../models';
@@ -338,6 +340,12 @@ import type { OpsVolumeExpand } from '../models';
338
340
  // @ts-ignore
339
341
  import type { Org } from '../models';
340
342
  // @ts-ignore
343
+ import type { OrgDeletionAction } from '../models';
344
+ // @ts-ignore
345
+ import type { OrgDeletionPreview } from '../models';
346
+ // @ts-ignore
347
+ import type { OrgLifecycleRequest } from '../models';
348
+ // @ts-ignore
341
349
  import type { OrgMember } from '../models';
342
350
  // @ts-ignore
343
351
  import type { OrgMemberAdd } from '../models';
@@ -348,6 +356,8 @@ import type { OrgMemberUpdate } from '../models';
348
356
  // @ts-ignore
349
357
  import type { OrgParameter } from '../models';
350
358
  // @ts-ignore
359
+ import type { OrgPurgeResult } from '../models';
360
+ // @ts-ignore
351
361
  import type { OrgTagsList } from '../models';
352
362
  // @ts-ignore
353
363
  import type { OrgUpdate } from '../models';
@@ -3936,12 +3946,15 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
3936
3946
  * partially delete the specified org
3937
3947
  * @summary Delete organization
3938
3948
  * @param {string} orgName name of the Org
3949
+ * @param {string} orgID
3939
3950
  * @param {*} [options] Override http request option.
3940
3951
  * @throws {RequiredError}
3941
3952
  */
3942
- deleteOrg: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3953
+ deleteOrg: async (orgName: string, orgID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3943
3954
  // verify required parameter 'orgName' is not null or undefined
3944
3955
  assertParamExists('deleteOrg', 'orgName', orgName)
3956
+ // verify required parameter 'orgID' is not null or undefined
3957
+ assertParamExists('deleteOrg', 'orgID', orgID)
3945
3958
  const localVarPath = `/api/v1/organizations/{orgName}`
3946
3959
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
3947
3960
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3962,6 +3975,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
3962
3975
  // authentication DigestAuth required
3963
3976
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3964
3977
 
3978
+ if (orgID !== undefined) {
3979
+ localVarQueryParameter['orgID'] = orgID;
3980
+ }
3981
+
3965
3982
 
3966
3983
 
3967
3984
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5544,7 +5561,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5544
5561
  },
5545
5562
  /**
5546
5563
  *
5547
- * @summary Expose cluster loadbalancer endpoint
5564
+ * @summary Expose cluster endpoint
5548
5565
  * @param {string} orgName name of the Org
5549
5566
  * @param {string} clusterName name of the KubeBlocks cluster
5550
5567
  * @param {OpsExpose} body
@@ -8100,6 +8117,55 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
8100
8117
 
8101
8118
 
8102
8119
 
8120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8123
+
8124
+ return {
8125
+ url: toPathString(localVarUrlObj),
8126
+ options: localVarRequestOptions,
8127
+ };
8128
+ },
8129
+ /**
8130
+ *
8131
+ * @summary Get resource alert settings
8132
+ * @param {string} orgName name of the Org
8133
+ * @param {AlertResourceType} resourceType resourceType
8134
+ * @param {string} resourceID
8135
+ * @param {*} [options] Override http request option.
8136
+ * @throws {RequiredError}
8137
+ */
8138
+ getResourceAlertDisabled: async (orgName: string, resourceType: AlertResourceType, resourceID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8139
+ // verify required parameter 'orgName' is not null or undefined
8140
+ assertParamExists('getResourceAlertDisabled', 'orgName', orgName)
8141
+ // verify required parameter 'resourceType' is not null or undefined
8142
+ assertParamExists('getResourceAlertDisabled', 'resourceType', resourceType)
8143
+ // verify required parameter 'resourceID' is not null or undefined
8144
+ assertParamExists('getResourceAlertDisabled', 'resourceID', resourceID)
8145
+ const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}`
8146
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8147
+ .replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
8148
+ .replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
8149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8151
+ let baseOptions;
8152
+ if (configuration) {
8153
+ baseOptions = configuration.baseOptions;
8154
+ }
8155
+
8156
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8157
+ const localVarHeaderParameter = {} as any;
8158
+ const localVarQueryParameter = {} as any;
8159
+
8160
+ // authentication BearerToken required
8161
+ // http bearer authentication required
8162
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8163
+
8164
+ // authentication DigestAuth required
8165
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
8166
+
8167
+
8168
+
8103
8169
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8104
8170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8105
8171
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12032,6 +12098,55 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12032
12098
 
12033
12099
 
12034
12100
 
12101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12103
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12104
+
12105
+ return {
12106
+ url: toPathString(localVarUrlObj),
12107
+ options: localVarRequestOptions,
12108
+ };
12109
+ },
12110
+ /**
12111
+ *
12112
+ * @summary List applicable alert rules for a resource
12113
+ * @param {string} orgName name of the Org
12114
+ * @param {AlertResourceType} resourceType resourceType
12115
+ * @param {string} resourceID
12116
+ * @param {*} [options] Override http request option.
12117
+ * @throws {RequiredError}
12118
+ */
12119
+ listResourceAlertRules: async (orgName: string, resourceType: AlertResourceType, resourceID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12120
+ // verify required parameter 'orgName' is not null or undefined
12121
+ assertParamExists('listResourceAlertRules', 'orgName', orgName)
12122
+ // verify required parameter 'resourceType' is not null or undefined
12123
+ assertParamExists('listResourceAlertRules', 'resourceType', resourceType)
12124
+ // verify required parameter 'resourceID' is not null or undefined
12125
+ assertParamExists('listResourceAlertRules', 'resourceID', resourceID)
12126
+ const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}/rules`
12127
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12128
+ .replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
12129
+ .replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
12130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12132
+ let baseOptions;
12133
+ if (configuration) {
12134
+ baseOptions = configuration.baseOptions;
12135
+ }
12136
+
12137
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12138
+ const localVarHeaderParameter = {} as any;
12139
+ const localVarQueryParameter = {} as any;
12140
+
12141
+ // authentication BearerToken required
12142
+ // http bearer authentication required
12143
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12144
+
12145
+ // authentication DigestAuth required
12146
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12147
+
12148
+
12149
+
12035
12150
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12036
12151
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12037
12152
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13839,27 +13954,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13839
13954
  },
13840
13955
  /**
13841
13956
  *
13842
- * @summary Produce message to topic
13843
- * @param {string} orgName The name of organization
13844
- * @param {string} clusterName The name of cluster
13845
- * @param {string} topic
13846
- * @param {TopicMessageRequest} topicMessageRequest
13957
+ * @summary Preview organization deletion or purge
13958
+ * @param {string} orgName
13959
+ * @param {string} orgID
13960
+ * @param {OrgDeletionAction} action
13847
13961
  * @param {*} [options] Override http request option.
13848
13962
  * @throws {RequiredError}
13849
13963
  */
13850
- produceKafkaTopicMessage: async (orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13964
+ previewOrgDeletion: async (orgName: string, orgID: string, action: OrgDeletionAction, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13851
13965
  // verify required parameter 'orgName' is not null or undefined
13852
- assertParamExists('produceKafkaTopicMessage', 'orgName', orgName)
13853
- // verify required parameter 'clusterName' is not null or undefined
13854
- assertParamExists('produceKafkaTopicMessage', 'clusterName', clusterName)
13855
- // verify required parameter 'topic' is not null or undefined
13856
- assertParamExists('produceKafkaTopicMessage', 'topic', topic)
13857
- // verify required parameter 'topicMessageRequest' is not null or undefined
13858
- assertParamExists('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest)
13859
- const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
13860
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13861
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13862
- .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
13966
+ assertParamExists('previewOrgDeletion', 'orgName', orgName)
13967
+ // verify required parameter 'orgID' is not null or undefined
13968
+ assertParamExists('previewOrgDeletion', 'orgID', orgID)
13969
+ // verify required parameter 'action' is not null or undefined
13970
+ assertParamExists('previewOrgDeletion', 'action', action)
13971
+ const localVarPath = `/api/v1/organizations/{orgName}/deletionPreview`
13972
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
13863
13973
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13864
13974
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13865
13975
  let baseOptions;
@@ -13867,7 +13977,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13867
13977
  baseOptions = configuration.baseOptions;
13868
13978
  }
13869
13979
 
13870
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13980
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13871
13981
  const localVarHeaderParameter = {} as any;
13872
13982
  const localVarQueryParameter = {} as any;
13873
13983
 
@@ -13878,65 +13988,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13878
13988
  // authentication DigestAuth required
13879
13989
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13880
13990
 
13881
-
13882
-
13883
- localVarHeaderParameter['Content-Type'] = 'application/json';
13884
-
13885
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13886
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13887
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13888
- localVarRequestOptions.data = serializeDataIfNeeded(topicMessageRequest, localVarRequestOptions, configuration)
13889
-
13890
- return {
13891
- url: toPathString(localVarUrlObj),
13892
- options: localVarRequestOptions,
13893
- };
13894
- },
13895
- /**
13896
- *
13897
- * @summary Promote cluster intance to primary
13898
- * @param {string} orgName name of the Org
13899
- * @param {string} clusterName name of the KubeBlocks cluster
13900
- * @param {OpsPromote} body
13901
- * @param {*} [options] Override http request option.
13902
- * @throws {RequiredError}
13903
- */
13904
- promoteCluster: async (orgName: string, clusterName: string, body: OpsPromote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13905
- // verify required parameter 'orgName' is not null or undefined
13906
- assertParamExists('promoteCluster', 'orgName', orgName)
13907
- // verify required parameter 'clusterName' is not null or undefined
13908
- assertParamExists('promoteCluster', 'clusterName', clusterName)
13909
- // verify required parameter 'body' is not null or undefined
13910
- assertParamExists('promoteCluster', 'body', body)
13911
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/promote`
13912
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13913
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13914
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13915
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13916
- let baseOptions;
13917
- if (configuration) {
13918
- baseOptions = configuration.baseOptions;
13991
+ if (orgID !== undefined) {
13992
+ localVarQueryParameter['orgID'] = orgID;
13919
13993
  }
13920
13994
 
13921
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13922
- const localVarHeaderParameter = {} as any;
13923
- const localVarQueryParameter = {} as any;
13924
-
13925
- // authentication BearerToken required
13926
- // http bearer authentication required
13927
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
13928
-
13929
- // authentication DigestAuth required
13930
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13995
+ if (action !== undefined) {
13996
+ localVarQueryParameter['action'] = action;
13997
+ }
13931
13998
 
13932
13999
 
13933
14000
 
13934
- localVarHeaderParameter['Content-Type'] = 'application/json';
13935
-
13936
14001
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13937
14002
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13938
14003
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13939
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13940
14004
 
13941
14005
  return {
13942
14006
  url: toPathString(localVarUrlObj),
@@ -13945,27 +14009,27 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13945
14009
  },
13946
14010
  /**
13947
14011
  *
13948
- * @summary Create or update Elasticsearch security role
13949
- * @param {string} orgName
13950
- * @param {string} clusterName
13951
- * @param {string} roleName
13952
- * @param {ESSecurityRoleDescriptor} body
14012
+ * @summary Produce message to topic
14013
+ * @param {string} orgName The name of organization
14014
+ * @param {string} clusterName The name of cluster
14015
+ * @param {string} topic
14016
+ * @param {TopicMessageRequest} topicMessageRequest
13953
14017
  * @param {*} [options] Override http request option.
13954
14018
  * @throws {RequiredError}
13955
14019
  */
13956
- putElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14020
+ produceKafkaTopicMessage: async (orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13957
14021
  // verify required parameter 'orgName' is not null or undefined
13958
- assertParamExists('putElasticsearchSecurityRole', 'orgName', orgName)
14022
+ assertParamExists('produceKafkaTopicMessage', 'orgName', orgName)
13959
14023
  // verify required parameter 'clusterName' is not null or undefined
13960
- assertParamExists('putElasticsearchSecurityRole', 'clusterName', clusterName)
13961
- // verify required parameter 'roleName' is not null or undefined
13962
- assertParamExists('putElasticsearchSecurityRole', 'roleName', roleName)
13963
- // verify required parameter 'body' is not null or undefined
13964
- assertParamExists('putElasticsearchSecurityRole', 'body', body)
13965
- const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
14024
+ assertParamExists('produceKafkaTopicMessage', 'clusterName', clusterName)
14025
+ // verify required parameter 'topic' is not null or undefined
14026
+ assertParamExists('produceKafkaTopicMessage', 'topic', topic)
14027
+ // verify required parameter 'topicMessageRequest' is not null or undefined
14028
+ assertParamExists('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest)
14029
+ const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
13966
14030
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13967
14031
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13968
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
14032
+ .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
13969
14033
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13970
14034
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13971
14035
  let baseOptions;
@@ -13973,7 +14037,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13973
14037
  baseOptions = configuration.baseOptions;
13974
14038
  }
13975
14039
 
13976
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14040
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13977
14041
  const localVarHeaderParameter = {} as any;
13978
14042
  const localVarQueryParameter = {} as any;
13979
14043
 
@@ -13991,7 +14055,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13991
14055
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13992
14056
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13993
14057
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13994
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14058
+ localVarRequestOptions.data = serializeDataIfNeeded(topicMessageRequest, localVarRequestOptions, configuration)
13995
14059
 
13996
14060
  return {
13997
14061
  url: toPathString(localVarUrlObj),
@@ -14000,27 +14064,23 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14000
14064
  },
14001
14065
  /**
14002
14066
  *
14003
- * @summary Create or update Elasticsearch security role mapping
14004
- * @param {string} orgName
14005
- * @param {string} clusterName
14006
- * @param {string} mappingName
14007
- * @param {ESSecurityRoleMapping} body
14067
+ * @summary Promote cluster intance to primary
14068
+ * @param {string} orgName name of the Org
14069
+ * @param {string} clusterName name of the KubeBlocks cluster
14070
+ * @param {OpsPromote} body
14008
14071
  * @param {*} [options] Override http request option.
14009
14072
  * @throws {RequiredError}
14010
14073
  */
14011
- putElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14074
+ promoteCluster: async (orgName: string, clusterName: string, body: OpsPromote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14012
14075
  // verify required parameter 'orgName' is not null or undefined
14013
- assertParamExists('putElasticsearchSecurityRoleMapping', 'orgName', orgName)
14076
+ assertParamExists('promoteCluster', 'orgName', orgName)
14014
14077
  // verify required parameter 'clusterName' is not null or undefined
14015
- assertParamExists('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
14016
- // verify required parameter 'mappingName' is not null or undefined
14017
- assertParamExists('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
14078
+ assertParamExists('promoteCluster', 'clusterName', clusterName)
14018
14079
  // verify required parameter 'body' is not null or undefined
14019
- assertParamExists('putElasticsearchSecurityRoleMapping', 'body', body)
14020
- const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
14080
+ assertParamExists('promoteCluster', 'body', body)
14081
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/promote`
14021
14082
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14022
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14023
- .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
14083
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
14024
14084
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14025
14085
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14026
14086
  let baseOptions;
@@ -14028,7 +14088,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14028
14088
  baseOptions = configuration.baseOptions;
14029
14089
  }
14030
14090
 
14031
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14091
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14032
14092
  const localVarHeaderParameter = {} as any;
14033
14093
  const localVarQueryParameter = {} as any;
14034
14094
 
@@ -14055,27 +14115,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14055
14115
  },
14056
14116
  /**
14057
14117
  *
14058
- * @summary Create or update Elasticsearch security user
14118
+ * @summary Purge organization
14059
14119
  * @param {string} orgName
14060
- * @param {string} clusterName
14061
- * @param {string} username
14062
- * @param {ESPutSecurityUserRequest} body
14120
+ * @param {OrgLifecycleRequest} orgLifecycleRequest
14063
14121
  * @param {*} [options] Override http request option.
14064
14122
  * @throws {RequiredError}
14065
14123
  */
14066
- putElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14124
+ purgeOrg: async (orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14067
14125
  // verify required parameter 'orgName' is not null or undefined
14068
- assertParamExists('putElasticsearchSecurityUser', 'orgName', orgName)
14069
- // verify required parameter 'clusterName' is not null or undefined
14070
- assertParamExists('putElasticsearchSecurityUser', 'clusterName', clusterName)
14071
- // verify required parameter 'username' is not null or undefined
14072
- assertParamExists('putElasticsearchSecurityUser', 'username', username)
14073
- // verify required parameter 'body' is not null or undefined
14074
- assertParamExists('putElasticsearchSecurityUser', 'body', body)
14075
- const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
14076
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14077
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14078
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
14126
+ assertParamExists('purgeOrg', 'orgName', orgName)
14127
+ // verify required parameter 'orgLifecycleRequest' is not null or undefined
14128
+ assertParamExists('purgeOrg', 'orgLifecycleRequest', orgLifecycleRequest)
14129
+ const localVarPath = `/api/v1/organizations/{orgName}/purge`
14130
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
14079
14131
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14080
14132
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14081
14133
  let baseOptions;
@@ -14083,7 +14135,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14083
14135
  baseOptions = configuration.baseOptions;
14084
14136
  }
14085
14137
 
14086
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14138
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14087
14139
  const localVarHeaderParameter = {} as any;
14088
14140
  const localVarQueryParameter = {} as any;
14089
14141
 
@@ -14101,7 +14153,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14101
14153
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14102
14154
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14103
14155
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14104
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14156
+ localVarRequestOptions.data = serializeDataIfNeeded(orgLifecycleRequest, localVarRequestOptions, configuration)
14105
14157
 
14106
14158
  return {
14107
14159
  url: toPathString(localVarUrlObj),
@@ -14109,28 +14161,193 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
14109
14161
  };
14110
14162
  },
14111
14163
  /**
14112
- * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
14113
- * @summary putSeaweedFSPolicy
14164
+ *
14165
+ * @summary Create or update Elasticsearch security role
14114
14166
  * @param {string} orgName
14115
14167
  * @param {string} clusterName
14116
- * @param {string} policyName
14117
- * @param {{ [key: string]: any; }} requestBody
14168
+ * @param {string} roleName
14169
+ * @param {ESSecurityRoleDescriptor} body
14118
14170
  * @param {*} [options] Override http request option.
14119
14171
  * @throws {RequiredError}
14120
14172
  */
14121
- putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14173
+ putElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14122
14174
  // verify required parameter 'orgName' is not null or undefined
14123
- assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
14175
+ assertParamExists('putElasticsearchSecurityRole', 'orgName', orgName)
14124
14176
  // verify required parameter 'clusterName' is not null or undefined
14125
- assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
14126
- // verify required parameter 'policyName' is not null or undefined
14127
- assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
14128
- // verify required parameter 'requestBody' is not null or undefined
14129
- assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
14130
- const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
14177
+ assertParamExists('putElasticsearchSecurityRole', 'clusterName', clusterName)
14178
+ // verify required parameter 'roleName' is not null or undefined
14179
+ assertParamExists('putElasticsearchSecurityRole', 'roleName', roleName)
14180
+ // verify required parameter 'body' is not null or undefined
14181
+ assertParamExists('putElasticsearchSecurityRole', 'body', body)
14182
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
14131
14183
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14132
14184
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14133
- .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
14185
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
14186
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14188
+ let baseOptions;
14189
+ if (configuration) {
14190
+ baseOptions = configuration.baseOptions;
14191
+ }
14192
+
14193
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14194
+ const localVarHeaderParameter = {} as any;
14195
+ const localVarQueryParameter = {} as any;
14196
+
14197
+ // authentication BearerToken required
14198
+ // http bearer authentication required
14199
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14200
+
14201
+ // authentication DigestAuth required
14202
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14203
+
14204
+
14205
+
14206
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14207
+
14208
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14210
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14211
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14212
+
14213
+ return {
14214
+ url: toPathString(localVarUrlObj),
14215
+ options: localVarRequestOptions,
14216
+ };
14217
+ },
14218
+ /**
14219
+ *
14220
+ * @summary Create or update Elasticsearch security role mapping
14221
+ * @param {string} orgName
14222
+ * @param {string} clusterName
14223
+ * @param {string} mappingName
14224
+ * @param {ESSecurityRoleMapping} body
14225
+ * @param {*} [options] Override http request option.
14226
+ * @throws {RequiredError}
14227
+ */
14228
+ putElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14229
+ // verify required parameter 'orgName' is not null or undefined
14230
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'orgName', orgName)
14231
+ // verify required parameter 'clusterName' is not null or undefined
14232
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
14233
+ // verify required parameter 'mappingName' is not null or undefined
14234
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
14235
+ // verify required parameter 'body' is not null or undefined
14236
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'body', body)
14237
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
14238
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14239
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14240
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
14241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14243
+ let baseOptions;
14244
+ if (configuration) {
14245
+ baseOptions = configuration.baseOptions;
14246
+ }
14247
+
14248
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14249
+ const localVarHeaderParameter = {} as any;
14250
+ const localVarQueryParameter = {} as any;
14251
+
14252
+ // authentication BearerToken required
14253
+ // http bearer authentication required
14254
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14255
+
14256
+ // authentication DigestAuth required
14257
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14258
+
14259
+
14260
+
14261
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14262
+
14263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14265
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14266
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14267
+
14268
+ return {
14269
+ url: toPathString(localVarUrlObj),
14270
+ options: localVarRequestOptions,
14271
+ };
14272
+ },
14273
+ /**
14274
+ *
14275
+ * @summary Create or update Elasticsearch security user
14276
+ * @param {string} orgName
14277
+ * @param {string} clusterName
14278
+ * @param {string} username
14279
+ * @param {ESPutSecurityUserRequest} body
14280
+ * @param {*} [options] Override http request option.
14281
+ * @throws {RequiredError}
14282
+ */
14283
+ putElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14284
+ // verify required parameter 'orgName' is not null or undefined
14285
+ assertParamExists('putElasticsearchSecurityUser', 'orgName', orgName)
14286
+ // verify required parameter 'clusterName' is not null or undefined
14287
+ assertParamExists('putElasticsearchSecurityUser', 'clusterName', clusterName)
14288
+ // verify required parameter 'username' is not null or undefined
14289
+ assertParamExists('putElasticsearchSecurityUser', 'username', username)
14290
+ // verify required parameter 'body' is not null or undefined
14291
+ assertParamExists('putElasticsearchSecurityUser', 'body', body)
14292
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
14293
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14294
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14295
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
14296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14297
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14298
+ let baseOptions;
14299
+ if (configuration) {
14300
+ baseOptions = configuration.baseOptions;
14301
+ }
14302
+
14303
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14304
+ const localVarHeaderParameter = {} as any;
14305
+ const localVarQueryParameter = {} as any;
14306
+
14307
+ // authentication BearerToken required
14308
+ // http bearer authentication required
14309
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14310
+
14311
+ // authentication DigestAuth required
14312
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14313
+
14314
+
14315
+
14316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14317
+
14318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14320
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14321
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14322
+
14323
+ return {
14324
+ url: toPathString(localVarUrlObj),
14325
+ options: localVarRequestOptions,
14326
+ };
14327
+ },
14328
+ /**
14329
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
14330
+ * @summary putSeaweedFSPolicy
14331
+ * @param {string} orgName
14332
+ * @param {string} clusterName
14333
+ * @param {string} policyName
14334
+ * @param {{ [key: string]: any; }} requestBody
14335
+ * @param {*} [options] Override http request option.
14336
+ * @throws {RequiredError}
14337
+ */
14338
+ putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14339
+ // verify required parameter 'orgName' is not null or undefined
14340
+ assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
14341
+ // verify required parameter 'clusterName' is not null or undefined
14342
+ assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
14343
+ // verify required parameter 'policyName' is not null or undefined
14344
+ assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
14345
+ // verify required parameter 'requestBody' is not null or undefined
14346
+ assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
14347
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
14348
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14349
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14350
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
14134
14351
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14135
14352
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14136
14353
  let baseOptions;
@@ -16245,6 +16462,53 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
16245
16462
  options: localVarRequestOptions,
16246
16463
  };
16247
16464
  },
16465
+ /**
16466
+ *
16467
+ * @summary Restore organization
16468
+ * @param {string} orgName
16469
+ * @param {OrgLifecycleRequest} orgLifecycleRequest
16470
+ * @param {*} [options] Override http request option.
16471
+ * @throws {RequiredError}
16472
+ */
16473
+ restoreOrg: async (orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16474
+ // verify required parameter 'orgName' is not null or undefined
16475
+ assertParamExists('restoreOrg', 'orgName', orgName)
16476
+ // verify required parameter 'orgLifecycleRequest' is not null or undefined
16477
+ assertParamExists('restoreOrg', 'orgLifecycleRequest', orgLifecycleRequest)
16478
+ const localVarPath = `/api/v1/organizations/{orgName}/restoreOrganization`
16479
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
16480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16482
+ let baseOptions;
16483
+ if (configuration) {
16484
+ baseOptions = configuration.baseOptions;
16485
+ }
16486
+
16487
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16488
+ const localVarHeaderParameter = {} as any;
16489
+ const localVarQueryParameter = {} as any;
16490
+
16491
+ // authentication BearerToken required
16492
+ // http bearer authentication required
16493
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16494
+
16495
+ // authentication DigestAuth required
16496
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
16497
+
16498
+
16499
+
16500
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16501
+
16502
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16503
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16504
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16505
+ localVarRequestOptions.data = serializeDataIfNeeded(orgLifecycleRequest, localVarRequestOptions, configuration)
16506
+
16507
+ return {
16508
+ url: toPathString(localVarUrlObj),
16509
+ options: localVarRequestOptions,
16510
+ };
16511
+ },
16248
16512
  /**
16249
16513
  *
16250
16514
  * @summary Restore cluster from the Recycle Bin of the Org
@@ -16599,6 +16863,59 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
16599
16863
  options: localVarRequestOptions,
16600
16864
  };
16601
16865
  },
16866
+ /**
16867
+ *
16868
+ * @summary Update resource alert settings
16869
+ * @param {string} orgName name of the Org
16870
+ * @param {AlertResourceType} resourceType resourceType
16871
+ * @param {string} resourceID
16872
+ * @param {AlertCluster} [alertCluster]
16873
+ * @param {*} [options] Override http request option.
16874
+ * @throws {RequiredError}
16875
+ */
16876
+ setResourceAlertDisabled: async (orgName: string, resourceType: AlertResourceType, resourceID: string, alertCluster?: AlertCluster, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16877
+ // verify required parameter 'orgName' is not null or undefined
16878
+ assertParamExists('setResourceAlertDisabled', 'orgName', orgName)
16879
+ // verify required parameter 'resourceType' is not null or undefined
16880
+ assertParamExists('setResourceAlertDisabled', 'resourceType', resourceType)
16881
+ // verify required parameter 'resourceID' is not null or undefined
16882
+ assertParamExists('setResourceAlertDisabled', 'resourceID', resourceID)
16883
+ const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}`
16884
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
16885
+ .replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
16886
+ .replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
16887
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16888
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16889
+ let baseOptions;
16890
+ if (configuration) {
16891
+ baseOptions = configuration.baseOptions;
16892
+ }
16893
+
16894
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16895
+ const localVarHeaderParameter = {} as any;
16896
+ const localVarQueryParameter = {} as any;
16897
+
16898
+ // authentication BearerToken required
16899
+ // http bearer authentication required
16900
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16901
+
16902
+ // authentication DigestAuth required
16903
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
16904
+
16905
+
16906
+
16907
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16908
+
16909
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16910
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16911
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16912
+ localVarRequestOptions.data = serializeDataIfNeeded(alertCluster, localVarRequestOptions, configuration)
16913
+
16914
+ return {
16915
+ url: toPathString(localVarUrlObj),
16916
+ options: localVarRequestOptions,
16917
+ };
16918
+ },
16602
16919
  /**
16603
16920
  *
16604
16921
  * @summary read data of table or view
@@ -20202,11 +20519,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
20202
20519
  * partially delete the specified org
20203
20520
  * @summary Delete organization
20204
20521
  * @param {string} orgName name of the Org
20522
+ * @param {string} orgID
20205
20523
  * @param {*} [options] Override http request option.
20206
20524
  * @throws {RequiredError}
20207
20525
  */
20208
- async deleteOrg(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20209
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrg(orgName, options);
20526
+ async deleteOrg(orgName: string, orgID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrg(orgName, orgID, options);
20210
20528
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20211
20529
  const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteOrg']?.[localVarOperationServerIndex]?.url;
20212
20530
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20656,7 +20974,7 @@ export const SharedApiFp = function(configuration?: Configuration) {
20656
20974
  },
20657
20975
  /**
20658
20976
  *
20659
- * @summary Expose cluster loadbalancer endpoint
20977
+ * @summary Expose cluster endpoint
20660
20978
  * @param {string} orgName name of the Org
20661
20979
  * @param {string} clusterName name of the KubeBlocks cluster
20662
20980
  * @param {OpsExpose} body
@@ -21415,6 +21733,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
21415
21733
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
21416
21734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21417
21735
  },
21736
+ /**
21737
+ *
21738
+ * @summary Get resource alert settings
21739
+ * @param {string} orgName name of the Org
21740
+ * @param {AlertResourceType} resourceType resourceType
21741
+ * @param {string} resourceID
21742
+ * @param {*} [options] Override http request option.
21743
+ * @throws {RequiredError}
21744
+ */
21745
+ async getResourceAlertDisabled(orgName: string, resourceType: AlertResourceType, resourceID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertCluster>> {
21746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getResourceAlertDisabled(orgName, resourceType, resourceID, options);
21747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21748
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getResourceAlertDisabled']?.[localVarOperationServerIndex]?.url;
21749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21750
+ },
21418
21751
  /**
21419
21752
  *
21420
21753
  * @summary get restore workload logs of the cluster
@@ -22560,6 +22893,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
22560
22893
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listRelatedClusters']?.[localVarOperationServerIndex]?.url;
22561
22894
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22562
22895
  },
22896
+ /**
22897
+ *
22898
+ * @summary List applicable alert rules for a resource
22899
+ * @param {string} orgName name of the Org
22900
+ * @param {AlertResourceType} resourceType resourceType
22901
+ * @param {string} resourceID
22902
+ * @param {*} [options] Override http request option.
22903
+ * @throws {RequiredError}
22904
+ */
22905
+ async listResourceAlertRules(orgName: string, resourceType: AlertResourceType, resourceID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>> {
22906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listResourceAlertRules(orgName, resourceType, resourceID, options);
22907
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22908
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.listResourceAlertRules']?.[localVarOperationServerIndex]?.url;
22909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22910
+ },
22563
22911
  /**
22564
22912
  * List permissions of a role
22565
22913
  * @summary List permissions of a role
@@ -23095,6 +23443,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
23095
23443
  const localVarOperationServerBasePath = operationServerMap['SharedApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
23096
23444
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23097
23445
  },
23446
+ /**
23447
+ *
23448
+ * @summary Preview organization deletion or purge
23449
+ * @param {string} orgName
23450
+ * @param {string} orgID
23451
+ * @param {OrgDeletionAction} action
23452
+ * @param {*} [options] Override http request option.
23453
+ * @throws {RequiredError}
23454
+ */
23455
+ async previewOrgDeletion(orgName: string, orgID: string, action: OrgDeletionAction, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgDeletionPreview>> {
23456
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewOrgDeletion(orgName, orgID, action, options);
23457
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23458
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.previewOrgDeletion']?.[localVarOperationServerIndex]?.url;
23459
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23460
+ },
23098
23461
  /**
23099
23462
  *
23100
23463
  * @summary Produce message to topic
@@ -23126,6 +23489,20 @@ export const SharedApiFp = function(configuration?: Configuration) {
23126
23489
  const localVarOperationServerBasePath = operationServerMap['SharedApi.promoteCluster']?.[localVarOperationServerIndex]?.url;
23127
23490
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23128
23491
  },
23492
+ /**
23493
+ *
23494
+ * @summary Purge organization
23495
+ * @param {string} orgName
23496
+ * @param {OrgLifecycleRequest} orgLifecycleRequest
23497
+ * @param {*} [options] Override http request option.
23498
+ * @throws {RequiredError}
23499
+ */
23500
+ async purgeOrg(orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgPurgeResult>> {
23501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purgeOrg(orgName, orgLifecycleRequest, options);
23502
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23503
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.purgeOrg']?.[localVarOperationServerIndex]?.url;
23504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23505
+ },
23129
23506
  /**
23130
23507
  *
23131
23508
  * @summary Create or update Elasticsearch security role
@@ -23723,6 +24100,20 @@ export const SharedApiFp = function(configuration?: Configuration) {
23723
24100
  const localVarOperationServerBasePath = operationServerMap['SharedApi.restartInstance']?.[localVarOperationServerIndex]?.url;
23724
24101
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23725
24102
  },
24103
+ /**
24104
+ *
24105
+ * @summary Restore organization
24106
+ * @param {string} orgName
24107
+ * @param {OrgLifecycleRequest} orgLifecycleRequest
24108
+ * @param {*} [options] Override http request option.
24109
+ * @throws {RequiredError}
24110
+ */
24111
+ async restoreOrg(orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Org>> {
24112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreOrg(orgName, orgLifecycleRequest, options);
24113
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24114
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.restoreOrg']?.[localVarOperationServerIndex]?.url;
24115
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24116
+ },
23726
24117
  /**
23727
24118
  *
23728
24119
  * @summary Restore cluster from the Recycle Bin of the Org
@@ -23829,6 +24220,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
23829
24220
  const localVarOperationServerBasePath = operationServerMap['SharedApi.setKafkaTopicConfig']?.[localVarOperationServerIndex]?.url;
23830
24221
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23831
24222
  },
24223
+ /**
24224
+ *
24225
+ * @summary Update resource alert settings
24226
+ * @param {string} orgName name of the Org
24227
+ * @param {AlertResourceType} resourceType resourceType
24228
+ * @param {string} resourceID
24229
+ * @param {AlertCluster} [alertCluster]
24230
+ * @param {*} [options] Override http request option.
24231
+ * @throws {RequiredError}
24232
+ */
24233
+ async setResourceAlertDisabled(orgName: string, resourceType: AlertResourceType, resourceID: string, alertCluster?: AlertCluster, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertCluster>> {
24234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setResourceAlertDisabled(orgName, resourceType, resourceID, alertCluster, options);
24235
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24236
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.setResourceAlertDisabled']?.[localVarOperationServerIndex]?.url;
24237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24238
+ },
23832
24239
  /**
23833
24240
  *
23834
24241
  * @summary read data of table or view
@@ -25250,7 +25657,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25250
25657
  * @throws {RequiredError}
25251
25658
  */
25252
25659
  deleteOrg(requestParameters: SharedApiDeleteOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
25253
- return localVarFp.deleteOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
25660
+ return localVarFp.deleteOrg(requestParameters.orgName, requestParameters.orgID, options).then((request) => request(axios, basePath));
25254
25661
  },
25255
25662
  /**
25256
25663
  * delete a Org Member
@@ -25514,7 +25921,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25514
25921
  },
25515
25922
  /**
25516
25923
  *
25517
- * @summary Expose cluster loadbalancer endpoint
25924
+ * @summary Expose cluster endpoint
25518
25925
  * @param {SharedApiExposeClusterRequest} requestParameters Request parameters.
25519
25926
  * @param {*} [options] Override http request option.
25520
25927
  * @throws {RequiredError}
@@ -26000,6 +26407,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26000
26407
  getRecycleBinCluster(requestParameters: SharedApiGetRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<RecycleBinCluster> {
26001
26408
  return localVarFp.getRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26002
26409
  },
26410
+ /**
26411
+ *
26412
+ * @summary Get resource alert settings
26413
+ * @param {SharedApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
26414
+ * @param {*} [options] Override http request option.
26415
+ * @throws {RequiredError}
26416
+ */
26417
+ getResourceAlertDisabled(requestParameters: SharedApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster> {
26418
+ return localVarFp.getResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(axios, basePath));
26419
+ },
26003
26420
  /**
26004
26421
  *
26005
26422
  * @summary get restore workload logs of the cluster
@@ -26728,6 +27145,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26728
27145
  listRelatedClusters(requestParameters: SharedApiListRelatedClustersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RelatedClusterListItem>> {
26729
27146
  return localVarFp.listRelatedClusters(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26730
27147
  },
27148
+ /**
27149
+ *
27150
+ * @summary List applicable alert rules for a resource
27151
+ * @param {SharedApiListResourceAlertRulesRequest} requestParameters Request parameters.
27152
+ * @param {*} [options] Override http request option.
27153
+ * @throws {RequiredError}
27154
+ */
27155
+ listResourceAlertRules(requestParameters: SharedApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
27156
+ return localVarFp.listResourceAlertRules(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(axios, basePath));
27157
+ },
26731
27158
  /**
26732
27159
  * List permissions of a role
26733
27160
  * @summary List permissions of a role
@@ -27078,6 +27505,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
27078
27505
  previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
27079
27506
  return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
27080
27507
  },
27508
+ /**
27509
+ *
27510
+ * @summary Preview organization deletion or purge
27511
+ * @param {SharedApiPreviewOrgDeletionRequest} requestParameters Request parameters.
27512
+ * @param {*} [options] Override http request option.
27513
+ * @throws {RequiredError}
27514
+ */
27515
+ previewOrgDeletion(requestParameters: SharedApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgDeletionPreview> {
27516
+ return localVarFp.previewOrgDeletion(requestParameters.orgName, requestParameters.orgID, requestParameters.action, options).then((request) => request(axios, basePath));
27517
+ },
27081
27518
  /**
27082
27519
  *
27083
27520
  * @summary Produce message to topic
@@ -27098,6 +27535,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
27098
27535
  promoteCluster(requestParameters: SharedApiPromoteClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
27099
27536
  return localVarFp.promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
27100
27537
  },
27538
+ /**
27539
+ *
27540
+ * @summary Purge organization
27541
+ * @param {SharedApiPurgeOrgRequest} requestParameters Request parameters.
27542
+ * @param {*} [options] Override http request option.
27543
+ * @throws {RequiredError}
27544
+ */
27545
+ purgeOrg(requestParameters: SharedApiPurgeOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgPurgeResult> {
27546
+ return localVarFp.purgeOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(axios, basePath));
27547
+ },
27101
27548
  /**
27102
27549
  *
27103
27550
  * @summary Create or update Elasticsearch security role
@@ -27397,6 +27844,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
27397
27844
  restartInstance(requestParameters: SharedApiRestartInstanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
27398
27845
  return localVarFp.restartInstance(requestParameters.orgName, requestParameters.clusterName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
27399
27846
  },
27847
+ /**
27848
+ *
27849
+ * @summary Restore organization
27850
+ * @param {SharedApiRestoreOrgRequest} requestParameters Request parameters.
27851
+ * @param {*} [options] Override http request option.
27852
+ * @throws {RequiredError}
27853
+ */
27854
+ restoreOrg(requestParameters: SharedApiRestoreOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org> {
27855
+ return localVarFp.restoreOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(axios, basePath));
27856
+ },
27400
27857
  /**
27401
27858
  *
27402
27859
  * @summary Restore cluster from the Recycle Bin of the Org
@@ -27467,6 +27924,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
27467
27924
  setKafkaTopicConfig(requestParameters: SharedApiSetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
27468
27925
  return localVarFp.setKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.updateTopicConfigRequest, options).then((request) => request(axios, basePath));
27469
27926
  },
27927
+ /**
27928
+ *
27929
+ * @summary Update resource alert settings
27930
+ * @param {SharedApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
27931
+ * @param {*} [options] Override http request option.
27932
+ * @throws {RequiredError}
27933
+ */
27934
+ setResourceAlertDisabled(requestParameters: SharedApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster> {
27935
+ return localVarFp.setResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, requestParameters.alertCluster, options).then((request) => request(axios, basePath));
27936
+ },
27470
27937
  /**
27471
27938
  *
27472
27939
  * @summary read data of table or view
@@ -28878,7 +29345,7 @@ export interface SharedApiInterface {
28878
29345
 
28879
29346
  /**
28880
29347
  *
28881
- * @summary Expose cluster loadbalancer endpoint
29348
+ * @summary Expose cluster endpoint
28882
29349
  * @param {SharedApiExposeClusterRequest} requestParameters Request parameters.
28883
29350
  * @param {*} [options] Override http request option.
28884
29351
  * @throws {RequiredError}
@@ -29364,6 +29831,16 @@ export interface SharedApiInterface {
29364
29831
  */
29365
29832
  getRecycleBinCluster(requestParameters: SharedApiGetRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<RecycleBinCluster>;
29366
29833
 
29834
+ /**
29835
+ *
29836
+ * @summary Get resource alert settings
29837
+ * @param {SharedApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
29838
+ * @param {*} [options] Override http request option.
29839
+ * @throws {RequiredError}
29840
+ * @memberof SharedApiInterface
29841
+ */
29842
+ getResourceAlertDisabled(requestParameters: SharedApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster>;
29843
+
29367
29844
  /**
29368
29845
  *
29369
29846
  * @summary get restore workload logs of the cluster
@@ -30092,6 +30569,16 @@ export interface SharedApiInterface {
30092
30569
  */
30093
30570
  listRelatedClusters(requestParameters: SharedApiListRelatedClustersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RelatedClusterListItem>>;
30094
30571
 
30572
+ /**
30573
+ *
30574
+ * @summary List applicable alert rules for a resource
30575
+ * @param {SharedApiListResourceAlertRulesRequest} requestParameters Request parameters.
30576
+ * @param {*} [options] Override http request option.
30577
+ * @throws {RequiredError}
30578
+ * @memberof SharedApiInterface
30579
+ */
30580
+ listResourceAlertRules(requestParameters: SharedApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
30581
+
30095
30582
  /**
30096
30583
  * List permissions of a role
30097
30584
  * @summary List permissions of a role
@@ -30442,6 +30929,16 @@ export interface SharedApiInterface {
30442
30929
  */
30443
30930
  previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
30444
30931
 
30932
+ /**
30933
+ *
30934
+ * @summary Preview organization deletion or purge
30935
+ * @param {SharedApiPreviewOrgDeletionRequest} requestParameters Request parameters.
30936
+ * @param {*} [options] Override http request option.
30937
+ * @throws {RequiredError}
30938
+ * @memberof SharedApiInterface
30939
+ */
30940
+ previewOrgDeletion(requestParameters: SharedApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgDeletionPreview>;
30941
+
30445
30942
  /**
30446
30943
  *
30447
30944
  * @summary Produce message to topic
@@ -30462,6 +30959,16 @@ export interface SharedApiInterface {
30462
30959
  */
30463
30960
  promoteCluster(requestParameters: SharedApiPromoteClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
30464
30961
 
30962
+ /**
30963
+ *
30964
+ * @summary Purge organization
30965
+ * @param {SharedApiPurgeOrgRequest} requestParameters Request parameters.
30966
+ * @param {*} [options] Override http request option.
30967
+ * @throws {RequiredError}
30968
+ * @memberof SharedApiInterface
30969
+ */
30970
+ purgeOrg(requestParameters: SharedApiPurgeOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgPurgeResult>;
30971
+
30465
30972
  /**
30466
30973
  *
30467
30974
  * @summary Create or update Elasticsearch security role
@@ -30761,6 +31268,16 @@ export interface SharedApiInterface {
30761
31268
  */
30762
31269
  restartInstance(requestParameters: SharedApiRestartInstanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30763
31270
 
31271
+ /**
31272
+ *
31273
+ * @summary Restore organization
31274
+ * @param {SharedApiRestoreOrgRequest} requestParameters Request parameters.
31275
+ * @param {*} [options] Override http request option.
31276
+ * @throws {RequiredError}
31277
+ * @memberof SharedApiInterface
31278
+ */
31279
+ restoreOrg(requestParameters: SharedApiRestoreOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org>;
31280
+
30764
31281
  /**
30765
31282
  *
30766
31283
  * @summary Restore cluster from the Recycle Bin of the Org
@@ -30831,6 +31348,16 @@ export interface SharedApiInterface {
30831
31348
  */
30832
31349
  setKafkaTopicConfig(requestParameters: SharedApiSetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30833
31350
 
31351
+ /**
31352
+ *
31353
+ * @summary Update resource alert settings
31354
+ * @param {SharedApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
31355
+ * @param {*} [options] Override http request option.
31356
+ * @throws {RequiredError}
31357
+ * @memberof SharedApiInterface
31358
+ */
31359
+ setResourceAlertDisabled(requestParameters: SharedApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster>;
31360
+
30834
31361
  /**
30835
31362
  *
30836
31363
  * @summary read data of table or view
@@ -33410,6 +33937,13 @@ export interface SharedApiDeleteOrgRequest {
33410
33937
  * @memberof SharedApiDeleteOrg
33411
33938
  */
33412
33939
  readonly orgName: string
33940
+
33941
+ /**
33942
+ *
33943
+ * @type {string}
33944
+ * @memberof SharedApiDeleteOrg
33945
+ */
33946
+ readonly orgID: string
33413
33947
  }
33414
33948
 
33415
33949
  /**
@@ -36079,6 +36613,34 @@ export interface SharedApiGetRecycleBinClusterRequest {
36079
36613
  readonly clusterName: string
36080
36614
  }
36081
36615
 
36616
+ /**
36617
+ * Request parameters for getResourceAlertDisabled operation in SharedApi.
36618
+ * @export
36619
+ * @interface SharedApiGetResourceAlertDisabledRequest
36620
+ */
36621
+ export interface SharedApiGetResourceAlertDisabledRequest {
36622
+ /**
36623
+ * name of the Org
36624
+ * @type {string}
36625
+ * @memberof SharedApiGetResourceAlertDisabled
36626
+ */
36627
+ readonly orgName: string
36628
+
36629
+ /**
36630
+ * resourceType
36631
+ * @type {AlertResourceType}
36632
+ * @memberof SharedApiGetResourceAlertDisabled
36633
+ */
36634
+ readonly resourceType: AlertResourceType
36635
+
36636
+ /**
36637
+ *
36638
+ * @type {string}
36639
+ * @memberof SharedApiGetResourceAlertDisabled
36640
+ */
36641
+ readonly resourceID: string
36642
+ }
36643
+
36082
36644
  /**
36083
36645
  * Request parameters for getRestoreLog operation in SharedApi.
36084
36646
  * @export
@@ -38459,6 +39021,34 @@ export interface SharedApiListRelatedClustersRequest {
38459
39021
  readonly clusterName: string
38460
39022
  }
38461
39023
 
39024
+ /**
39025
+ * Request parameters for listResourceAlertRules operation in SharedApi.
39026
+ * @export
39027
+ * @interface SharedApiListResourceAlertRulesRequest
39028
+ */
39029
+ export interface SharedApiListResourceAlertRulesRequest {
39030
+ /**
39031
+ * name of the Org
39032
+ * @type {string}
39033
+ * @memberof SharedApiListResourceAlertRules
39034
+ */
39035
+ readonly orgName: string
39036
+
39037
+ /**
39038
+ * resourceType
39039
+ * @type {AlertResourceType}
39040
+ * @memberof SharedApiListResourceAlertRules
39041
+ */
39042
+ readonly resourceType: AlertResourceType
39043
+
39044
+ /**
39045
+ *
39046
+ * @type {string}
39047
+ * @memberof SharedApiListResourceAlertRules
39048
+ */
39049
+ readonly resourceID: string
39050
+ }
39051
+
38462
39052
  /**
38463
39053
  * Request parameters for listRolePermissions operation in SharedApi.
38464
39054
  * @export
@@ -39495,6 +40085,34 @@ export interface SharedApiPreviewAccountPrivilegeResetRequest {
39495
40085
  readonly allDatabases?: boolean
39496
40086
  }
39497
40087
 
40088
+ /**
40089
+ * Request parameters for previewOrgDeletion operation in SharedApi.
40090
+ * @export
40091
+ * @interface SharedApiPreviewOrgDeletionRequest
40092
+ */
40093
+ export interface SharedApiPreviewOrgDeletionRequest {
40094
+ /**
40095
+ *
40096
+ * @type {string}
40097
+ * @memberof SharedApiPreviewOrgDeletion
40098
+ */
40099
+ readonly orgName: string
40100
+
40101
+ /**
40102
+ *
40103
+ * @type {string}
40104
+ * @memberof SharedApiPreviewOrgDeletion
40105
+ */
40106
+ readonly orgID: string
40107
+
40108
+ /**
40109
+ *
40110
+ * @type {OrgDeletionAction}
40111
+ * @memberof SharedApiPreviewOrgDeletion
40112
+ */
40113
+ readonly action: OrgDeletionAction
40114
+ }
40115
+
39498
40116
  /**
39499
40117
  * Request parameters for produceKafkaTopicMessage operation in SharedApi.
39500
40118
  * @export
@@ -39558,6 +40176,27 @@ export interface SharedApiPromoteClusterRequest {
39558
40176
  readonly body: OpsPromote
39559
40177
  }
39560
40178
 
40179
+ /**
40180
+ * Request parameters for purgeOrg operation in SharedApi.
40181
+ * @export
40182
+ * @interface SharedApiPurgeOrgRequest
40183
+ */
40184
+ export interface SharedApiPurgeOrgRequest {
40185
+ /**
40186
+ *
40187
+ * @type {string}
40188
+ * @memberof SharedApiPurgeOrg
40189
+ */
40190
+ readonly orgName: string
40191
+
40192
+ /**
40193
+ *
40194
+ * @type {OrgLifecycleRequest}
40195
+ * @memberof SharedApiPurgeOrg
40196
+ */
40197
+ readonly orgLifecycleRequest: OrgLifecycleRequest
40198
+ }
40199
+
39561
40200
  /**
39562
40201
  * Request parameters for putElasticsearchSecurityRole operation in SharedApi.
39563
40202
  * @export
@@ -41420,6 +42059,27 @@ export interface SharedApiRestartInstanceRequest {
41420
42059
  readonly instanceName: string
41421
42060
  }
41422
42061
 
42062
+ /**
42063
+ * Request parameters for restoreOrg operation in SharedApi.
42064
+ * @export
42065
+ * @interface SharedApiRestoreOrgRequest
42066
+ */
42067
+ export interface SharedApiRestoreOrgRequest {
42068
+ /**
42069
+ *
42070
+ * @type {string}
42071
+ * @memberof SharedApiRestoreOrg
42072
+ */
42073
+ readonly orgName: string
42074
+
42075
+ /**
42076
+ *
42077
+ * @type {OrgLifecycleRequest}
42078
+ * @memberof SharedApiRestoreOrg
42079
+ */
42080
+ readonly orgLifecycleRequest: OrgLifecycleRequest
42081
+ }
42082
+
41423
42083
  /**
41424
42084
  * Request parameters for restoreRecycleBinCluster operation in SharedApi.
41425
42085
  * @export
@@ -41623,6 +42283,41 @@ export interface SharedApiSetKafkaTopicConfigRequest {
41623
42283
  readonly updateTopicConfigRequest: UpdateTopicConfigRequest
41624
42284
  }
41625
42285
 
42286
+ /**
42287
+ * Request parameters for setResourceAlertDisabled operation in SharedApi.
42288
+ * @export
42289
+ * @interface SharedApiSetResourceAlertDisabledRequest
42290
+ */
42291
+ export interface SharedApiSetResourceAlertDisabledRequest {
42292
+ /**
42293
+ * name of the Org
42294
+ * @type {string}
42295
+ * @memberof SharedApiSetResourceAlertDisabled
42296
+ */
42297
+ readonly orgName: string
42298
+
42299
+ /**
42300
+ * resourceType
42301
+ * @type {AlertResourceType}
42302
+ * @memberof SharedApiSetResourceAlertDisabled
42303
+ */
42304
+ readonly resourceType: AlertResourceType
42305
+
42306
+ /**
42307
+ *
42308
+ * @type {string}
42309
+ * @memberof SharedApiSetResourceAlertDisabled
42310
+ */
42311
+ readonly resourceID: string
42312
+
42313
+ /**
42314
+ *
42315
+ * @type {AlertCluster}
42316
+ * @memberof SharedApiSetResourceAlertDisabled
42317
+ */
42318
+ readonly alertCluster?: AlertCluster
42319
+ }
42320
+
41626
42321
  /**
41627
42322
  * Request parameters for showData operation in SharedApi.
41628
42323
  * @export
@@ -43995,7 +44690,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43995
44690
  * @memberof SharedApi
43996
44691
  */
43997
44692
  public deleteOrg(requestParameters: SharedApiDeleteOrgRequest, options?: RawAxiosRequestConfig) {
43998
- return SharedApiFp(this.configuration).deleteOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
44693
+ return SharedApiFp(this.configuration).deleteOrg(requestParameters.orgName, requestParameters.orgID, options).then((request) => request(this.axios, this.basePath));
43999
44694
  }
44000
44695
 
44001
44696
  /**
@@ -44312,7 +45007,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
44312
45007
 
44313
45008
  /**
44314
45009
  *
44315
- * @summary Expose cluster loadbalancer endpoint
45010
+ * @summary Expose cluster endpoint
44316
45011
  * @param {SharedApiExposeClusterRequest} requestParameters Request parameters.
44317
45012
  * @param {*} [options] Override http request option.
44318
45013
  * @throws {RequiredError}
@@ -44896,6 +45591,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
44896
45591
  return SharedApiFp(this.configuration).getRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
44897
45592
  }
44898
45593
 
45594
+ /**
45595
+ *
45596
+ * @summary Get resource alert settings
45597
+ * @param {SharedApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
45598
+ * @param {*} [options] Override http request option.
45599
+ * @throws {RequiredError}
45600
+ * @memberof SharedApi
45601
+ */
45602
+ public getResourceAlertDisabled(requestParameters: SharedApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig) {
45603
+ return SharedApiFp(this.configuration).getResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(this.axios, this.basePath));
45604
+ }
45605
+
44899
45606
  /**
44900
45607
  *
44901
45608
  * @summary get restore workload logs of the cluster
@@ -45770,6 +46477,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
45770
46477
  return SharedApiFp(this.configuration).listRelatedClusters(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
45771
46478
  }
45772
46479
 
46480
+ /**
46481
+ *
46482
+ * @summary List applicable alert rules for a resource
46483
+ * @param {SharedApiListResourceAlertRulesRequest} requestParameters Request parameters.
46484
+ * @param {*} [options] Override http request option.
46485
+ * @throws {RequiredError}
46486
+ * @memberof SharedApi
46487
+ */
46488
+ public listResourceAlertRules(requestParameters: SharedApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig) {
46489
+ return SharedApiFp(this.configuration).listResourceAlertRules(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(this.axios, this.basePath));
46490
+ }
46491
+
45773
46492
  /**
45774
46493
  * List permissions of a role
45775
46494
  * @summary List permissions of a role
@@ -46190,6 +46909,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46190
46909
  return SharedApiFp(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
46191
46910
  }
46192
46911
 
46912
+ /**
46913
+ *
46914
+ * @summary Preview organization deletion or purge
46915
+ * @param {SharedApiPreviewOrgDeletionRequest} requestParameters Request parameters.
46916
+ * @param {*} [options] Override http request option.
46917
+ * @throws {RequiredError}
46918
+ * @memberof SharedApi
46919
+ */
46920
+ public previewOrgDeletion(requestParameters: SharedApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig) {
46921
+ return SharedApiFp(this.configuration).previewOrgDeletion(requestParameters.orgName, requestParameters.orgID, requestParameters.action, options).then((request) => request(this.axios, this.basePath));
46922
+ }
46923
+
46193
46924
  /**
46194
46925
  *
46195
46926
  * @summary Produce message to topic
@@ -46214,6 +46945,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46214
46945
  return SharedApiFp(this.configuration).promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
46215
46946
  }
46216
46947
 
46948
+ /**
46949
+ *
46950
+ * @summary Purge organization
46951
+ * @param {SharedApiPurgeOrgRequest} requestParameters Request parameters.
46952
+ * @param {*} [options] Override http request option.
46953
+ * @throws {RequiredError}
46954
+ * @memberof SharedApi
46955
+ */
46956
+ public purgeOrg(requestParameters: SharedApiPurgeOrgRequest, options?: RawAxiosRequestConfig) {
46957
+ return SharedApiFp(this.configuration).purgeOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(this.axios, this.basePath));
46958
+ }
46959
+
46217
46960
  /**
46218
46961
  *
46219
46962
  * @summary Create or update Elasticsearch security role
@@ -46573,6 +47316,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46573
47316
  return SharedApiFp(this.configuration).restartInstance(requestParameters.orgName, requestParameters.clusterName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
46574
47317
  }
46575
47318
 
47319
+ /**
47320
+ *
47321
+ * @summary Restore organization
47322
+ * @param {SharedApiRestoreOrgRequest} requestParameters Request parameters.
47323
+ * @param {*} [options] Override http request option.
47324
+ * @throws {RequiredError}
47325
+ * @memberof SharedApi
47326
+ */
47327
+ public restoreOrg(requestParameters: SharedApiRestoreOrgRequest, options?: RawAxiosRequestConfig) {
47328
+ return SharedApiFp(this.configuration).restoreOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(this.axios, this.basePath));
47329
+ }
47330
+
46576
47331
  /**
46577
47332
  *
46578
47333
  * @summary Restore cluster from the Recycle Bin of the Org
@@ -46657,6 +47412,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46657
47412
  return SharedApiFp(this.configuration).setKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.updateTopicConfigRequest, options).then((request) => request(this.axios, this.basePath));
46658
47413
  }
46659
47414
 
47415
+ /**
47416
+ *
47417
+ * @summary Update resource alert settings
47418
+ * @param {SharedApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
47419
+ * @param {*} [options] Override http request option.
47420
+ * @throws {RequiredError}
47421
+ * @memberof SharedApi
47422
+ */
47423
+ public setResourceAlertDisabled(requestParameters: SharedApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig) {
47424
+ return SharedApiFp(this.configuration).setResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, requestParameters.alertCluster, options).then((request) => request(this.axios, this.basePath));
47425
+ }
47426
+
46660
47427
  /**
46661
47428
  *
46662
47429
  * @summary read data of table or view