kb-cloud-client-typescript 2.3.31 → 2.3.33
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.
- package/dist/adminapi/apis/cluster-jar-api.d.ts +0 -79
- package/dist/adminapi/apis/cluster-jar-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-jar-api.js +0 -84
- package/dist/adminapi/apis/cluster-jar-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +0 -79
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +0 -84
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/apis/task-api.d.ts +16 -7
- package/dist/adminapi/apis/task-api.d.ts.map +1 -1
- package/dist/adminapi/apis/task-api.js +14 -9
- package/dist/adminapi/apis/task-api.js.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
- package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.js +80 -0
- package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
- package/dist/adminapi/models/backup-option.d.ts +6 -0
- package/dist/adminapi/models/backup-option.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +6 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-jar-package.d.ts +0 -6
- package/dist/adminapi/models/cluster-jar-package.d.ts.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +8 -1
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/dms-pagination.d.ts +36 -0
- package/dist/adminapi/models/dms-pagination.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +11 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +11 -1
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +25 -0
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-attribute.js +29 -0
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/adminapi/models/instance-template-create.d.ts +66 -0
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/adminapi/models/{ops-volume-expand-volumes-inner.js → instance-template-create.js} +1 -1
- package/dist/adminapi/models/instance-template-create.js.map +1 -0
- package/dist/adminapi/models/instance-template-env.d.ts +50 -0
- package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-env.js +16 -0
- package/dist/adminapi/models/instance-template-env.js.map +1 -0
- package/dist/adminapi/models/instance-template-op.d.ts +23 -0
- package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-op.js +27 -0
- package/dist/adminapi/models/instance-template-op.js.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.js +16 -0
- package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
- package/dist/adminapi/models/instance-template-volume-expand.d.ts +32 -0
- package/dist/adminapi/models/instance-template-volume-expand.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-volume-expand.js +16 -0
- package/dist/adminapi/models/instance-template-volume-expand.js.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.js +16 -0
- package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/adminapi/models/mode-component.d.ts +7 -0
- package/dist/adminapi/models/mode-component.d.ts.map +1 -1
- package/dist/adminapi/models/ops-hscale.d.ts +8 -1
- package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/adminapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.js +16 -0
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
- package/dist/adminapi/models/ops-volume-expand.d.ts +11 -4
- package/dist/adminapi/models/ops-volume-expand.d.ts.map +1 -1
- package/dist/adminapi/models/ops-vscale.d.ts +1 -1
- package/dist/adminapi/models/show-data-request.d.ts +13 -1
- package/dist/adminapi/models/show-data-request.d.ts.map +1 -1
- package/dist/adminapi/models/task-retry-mode.d.ts +22 -0
- package/dist/adminapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/adminapi/models/task-retry-mode.js +26 -0
- package/dist/adminapi/models/task-retry-mode.js.map +1 -0
- package/dist/adminapi/models/task.d.ts +7 -0
- package/dist/adminapi/models/task.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
- package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
- package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
- package/dist/adminapi/models/vip-pool-update.js +16 -0
- package/dist/adminapi/models/vip-pool-update.js.map +1 -0
- package/dist/adminapi/models/vip-pool.d.ts +12 -0
- package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-jar-api.d.ts +0 -79
- package/dist/openapi/apis/cluster-jar-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-jar-api.js +0 -84
- package/dist/openapi/apis/cluster-jar-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +0 -79
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +0 -84
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/backup-option.d.ts +6 -0
- package/dist/openapi/models/backup-option.d.ts.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +6 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/cluster-jar-package.d.ts +0 -6
- package/dist/openapi/models/cluster-jar-package.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +8 -1
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/dms-pagination.d.ts +36 -0
- package/dist/openapi/models/dms-pagination.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +10 -1
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +10 -1
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +25 -0
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-attribute.js +29 -0
- package/dist/openapi/models/instance-template-attribute.js.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/openapi/models/instance-template-create.d.ts +66 -0
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/openapi/models/{ops-volume-expand-volumes-inner.js → instance-template-create.js} +1 -1
- package/dist/openapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/models/instance-template-env.d.ts +50 -0
- package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-env.js +16 -0
- package/dist/openapi/models/instance-template-env.js.map +1 -0
- package/dist/openapi/models/instance-template-op.d.ts +23 -0
- package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-op.js +27 -0
- package/dist/openapi/models/instance-template-op.js.map +1 -0
- package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-replicas.js +16 -0
- package/dist/openapi/models/instance-template-replicas.js.map +1 -0
- package/dist/openapi/models/instance-template-volume-expand.d.ts +32 -0
- package/dist/openapi/models/instance-template-volume-expand.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-volume-expand.js +16 -0
- package/dist/openapi/models/instance-template-volume-expand.js.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.js +16 -0
- package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/openapi/models/mode-component.d.ts +7 -0
- package/dist/openapi/models/mode-component.d.ts.map +1 -1
- package/dist/openapi/models/ops-hscale.d.ts +8 -1
- package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/openapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
- package/dist/openapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
- package/dist/openapi/models/ops-volume-expand-volumes-items0.js +16 -0
- package/dist/openapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
- package/dist/openapi/models/ops-volume-expand.d.ts +11 -4
- package/dist/openapi/models/ops-volume-expand.d.ts.map +1 -1
- package/dist/openapi/models/ops-vscale.d.ts +1 -1
- package/dist/openapi/models/show-data-request.d.ts +13 -1
- package/dist/openapi/models/show-data-request.d.ts.map +1 -1
- package/dist/openapi/models/task-retry-mode.d.ts +22 -0
- package/dist/openapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/openapi/models/task-retry-mode.js +26 -0
- package/dist/openapi/models/task-retry-mode.js.map +1 -0
- package/dist/openapi/models/task.d.ts +7 -0
- package/dist/openapi/models/task.d.ts.map +1 -1
- package/dist/openapi/models/vip-pool.d.ts +12 -0
- package/dist/openapi/models/vip-pool.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +11 -1
- package/src/adminapi/apis/cluster-jar-api.ts +0 -136
- package/src/adminapi/apis/shared-api.ts +0 -136
- package/src/adminapi/apis/task-api.ts +25 -10
- package/src/adminapi/apis/vip-pool-api.ts +128 -0
- package/src/adminapi/models/backup-option.ts +6 -0
- package/src/adminapi/models/cluster-create.ts +6 -0
- package/src/adminapi/models/cluster-jar-package.ts +0 -6
- package/src/adminapi/models/component-item-create.ts +10 -1
- package/src/adminapi/models/dms-pagination.ts +36 -0
- package/src/adminapi/models/index.ts +11 -1
- package/src/adminapi/models/instance-template-attribute.ts +34 -0
- package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/adminapi/models/instance-template-create.ts +69 -0
- package/src/adminapi/models/instance-template-env.ts +57 -0
- package/src/adminapi/models/instance-template-op.ts +32 -0
- package/src/adminapi/models/instance-template-replicas.ts +36 -0
- package/src/adminapi/models/instance-template-volume-expand.ts +39 -0
- package/src/adminapi/models/mode-component-instance-template.ts +57 -0
- package/src/adminapi/models/mode-component.ts +9 -0
- package/src/adminapi/models/ops-hscale.ts +10 -1
- package/src/adminapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
- package/src/adminapi/models/ops-volume-expand.ts +13 -4
- package/src/adminapi/models/ops-vscale.ts +1 -1
- package/src/adminapi/models/show-data-request.ts +13 -1
- package/src/adminapi/models/task-retry-mode.ts +31 -0
- package/src/adminapi/models/task.ts +9 -0
- package/src/adminapi/models/vip-pool-create.ts +6 -0
- package/src/adminapi/models/vip-pool-update.ts +30 -0
- package/src/adminapi/models/vip-pool.ts +12 -0
- package/src/adminapi.yaml +334 -64
- package/src/openapi/.openapi-generator/FILES +10 -1
- package/src/openapi/apis/cluster-jar-api.ts +0 -136
- package/src/openapi/apis/shared-api.ts +0 -136
- package/src/openapi/models/backup-option.ts +6 -0
- package/src/openapi/models/cluster-create.ts +6 -0
- package/src/openapi/models/cluster-jar-package.ts +0 -6
- package/src/openapi/models/component-item-create.ts +10 -1
- package/src/openapi/models/dms-pagination.ts +36 -0
- package/src/openapi/models/index.ts +10 -1
- package/src/openapi/models/instance-template-attribute.ts +34 -0
- package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/openapi/models/instance-template-create.ts +69 -0
- package/src/openapi/models/instance-template-env.ts +57 -0
- package/src/openapi/models/instance-template-op.ts +32 -0
- package/src/openapi/models/instance-template-replicas.ts +36 -0
- package/src/openapi/models/instance-template-volume-expand.ts +39 -0
- package/src/openapi/models/mode-component-instance-template.ts +57 -0
- package/src/openapi/models/mode-component.ts +9 -0
- package/src/openapi/models/ops-hscale.ts +10 -1
- package/src/openapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
- package/src/openapi/models/ops-volume-expand.ts +13 -4
- package/src/openapi/models/ops-vscale.ts +1 -1
- package/src/openapi/models/show-data-request.ts +13 -1
- package/src/openapi/models/task-retry-mode.ts +31 -0
- package/src/openapi/models/task.ts +9 -0
- package/src/openapi/models/vip-pool.ts +12 -0
- package/src/openapi.yaml +268 -63
- package/dist/adminapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
- package/dist/adminapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
- package/dist/openapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
- package/dist/openapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
|
@@ -27,6 +27,18 @@ export interface VipPool {
|
|
|
27
27
|
* @memberof VipPool
|
|
28
28
|
*/
|
|
29
29
|
'id'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VipPool
|
|
34
|
+
*/
|
|
35
|
+
'name'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* User facing name of the VIP Pool, used to select the pool when creating a cluster. It falls back to the IPAddressPool resource name.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VipPool
|
|
40
|
+
*/
|
|
41
|
+
'poolName'?: string;
|
|
30
42
|
/**
|
|
31
43
|
* Total number of IP addresses
|
|
32
44
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/package.json
CHANGED
|
@@ -694,6 +694,13 @@ models/instance-resource-stats-type.ts
|
|
|
694
694
|
models/instance-resource-stats.ts
|
|
695
695
|
models/instance-status.ts
|
|
696
696
|
models/instance-storage-item.ts
|
|
697
|
+
models/instance-template-attribute.ts
|
|
698
|
+
models/instance-template-create-env-inner.ts
|
|
699
|
+
models/instance-template-create.ts
|
|
700
|
+
models/instance-template-env.ts
|
|
701
|
+
models/instance-template-op.ts
|
|
702
|
+
models/instance-template-replicas.ts
|
|
703
|
+
models/instance-template-volume-expand.ts
|
|
697
704
|
models/instance.ts
|
|
698
705
|
models/integer-option.ts
|
|
699
706
|
models/international-desc.ts
|
|
@@ -766,6 +773,7 @@ models/milvus-role-list.ts
|
|
|
766
773
|
models/milvus-role-request.ts
|
|
767
774
|
models/milvus-role.ts
|
|
768
775
|
models/mode-compatible-kubeblocks-version.ts
|
|
776
|
+
models/mode-component-instance-template.ts
|
|
769
777
|
models/mode-component.ts
|
|
770
778
|
models/mode-object-storage-additional-helm-value-path.ts
|
|
771
779
|
models/mode-object-storage-service-ref.ts
|
|
@@ -872,7 +880,7 @@ models/ops-restart.ts
|
|
|
872
880
|
models/ops-start.ts
|
|
873
881
|
models/ops-stop.ts
|
|
874
882
|
models/ops-upgrade.ts
|
|
875
|
-
models/ops-volume-expand-volumes-
|
|
883
|
+
models/ops-volume-expand-volumes-items0.ts
|
|
876
884
|
models/ops-volume-expand.ts
|
|
877
885
|
models/ops-vscale.ts
|
|
878
886
|
models/org-create.ts
|
|
@@ -1131,6 +1139,7 @@ models/target.ts
|
|
|
1131
1139
|
models/task-failure-policy.ts
|
|
1132
1140
|
models/task-list-item.ts
|
|
1133
1141
|
models/task-list.ts
|
|
1142
|
+
models/task-retry-mode.ts
|
|
1134
1143
|
models/task-schedule-type.ts
|
|
1135
1144
|
models/task-schedule.ts
|
|
1136
1145
|
models/task-status.ts
|
|
@@ -1170,6 +1179,7 @@ models/user-update.ts
|
|
|
1170
1179
|
models/user.ts
|
|
1171
1180
|
models/vip-pool-create.ts
|
|
1172
1181
|
models/vip-pool-list.ts
|
|
1182
|
+
models/vip-pool-update.ts
|
|
1173
1183
|
models/vip-pool.ts
|
|
1174
1184
|
models/volume-restore-policy.ts
|
|
1175
1185
|
models/vuln-item.ts
|
|
@@ -41,59 +41,6 @@ import type { ClusterJarTask } from '../models';
|
|
|
41
41
|
*/
|
|
42
42
|
export const ClusterJarApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
43
43
|
return {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
47
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
48
|
-
* @param {string} orgName
|
|
49
|
-
* @param {string} clusterName
|
|
50
|
-
* @param {string} jarId
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
*/
|
|
54
|
-
archiveClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
56
|
-
assertParamExists('archiveClusterJar', 'engineName', engineName)
|
|
57
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
58
|
-
assertParamExists('archiveClusterJar', 'orgName', orgName)
|
|
59
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
60
|
-
assertParamExists('archiveClusterJar', 'clusterName', clusterName)
|
|
61
|
-
// verify required parameter 'jarId' is not null or undefined
|
|
62
|
-
assertParamExists('archiveClusterJar', 'jarId', jarId)
|
|
63
|
-
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
|
|
64
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
65
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
66
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
67
|
-
.replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
|
|
68
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
70
|
-
let baseOptions;
|
|
71
|
-
if (configuration) {
|
|
72
|
-
baseOptions = configuration.baseOptions;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
76
|
-
const localVarHeaderParameter = {} as any;
|
|
77
|
-
const localVarQueryParameter = {} as any;
|
|
78
|
-
|
|
79
|
-
// authentication BearerToken required
|
|
80
|
-
// http bearer authentication required
|
|
81
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
82
|
-
|
|
83
|
-
// authentication DigestAuth required
|
|
84
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
-
|
|
92
|
-
return {
|
|
93
|
-
url: toPathString(localVarUrlObj),
|
|
94
|
-
options: localVarRequestOptions,
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
44
|
/**
|
|
98
45
|
*
|
|
99
46
|
* @summary Delete an unpublished JAR version
|
|
@@ -500,22 +447,6 @@ export const ClusterJarApiAxiosParamCreator = function (configuration?: Configur
|
|
|
500
447
|
export const ClusterJarApiFp = function(configuration?: Configuration) {
|
|
501
448
|
const localVarAxiosParamCreator = ClusterJarApiAxiosParamCreator(configuration)
|
|
502
449
|
return {
|
|
503
|
-
/**
|
|
504
|
-
*
|
|
505
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
506
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
507
|
-
* @param {string} orgName
|
|
508
|
-
* @param {string} clusterName
|
|
509
|
-
* @param {string} jarId
|
|
510
|
-
* @param {*} [options] Override http request option.
|
|
511
|
-
* @throws {RequiredError}
|
|
512
|
-
*/
|
|
513
|
-
async archiveClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
514
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
|
|
515
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
516
|
-
const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.archiveClusterJar']?.[localVarOperationServerIndex]?.url;
|
|
517
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
518
|
-
},
|
|
519
450
|
/**
|
|
520
451
|
*
|
|
521
452
|
* @summary Delete an unpublished JAR version
|
|
@@ -640,16 +571,6 @@ export const ClusterJarApiFp = function(configuration?: Configuration) {
|
|
|
640
571
|
export const ClusterJarApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
641
572
|
const localVarFp = ClusterJarApiFp(configuration)
|
|
642
573
|
return {
|
|
643
|
-
/**
|
|
644
|
-
*
|
|
645
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
646
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
647
|
-
* @param {*} [options] Override http request option.
|
|
648
|
-
* @throws {RequiredError}
|
|
649
|
-
*/
|
|
650
|
-
archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
651
|
-
return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
|
|
652
|
-
},
|
|
653
574
|
/**
|
|
654
575
|
*
|
|
655
576
|
* @summary Delete an unpublished JAR version
|
|
@@ -729,16 +650,6 @@ export const ClusterJarApiFactory = function (configuration?: Configuration, bas
|
|
|
729
650
|
* @interface ClusterJarApi
|
|
730
651
|
*/
|
|
731
652
|
export interface ClusterJarApiInterface {
|
|
732
|
-
/**
|
|
733
|
-
*
|
|
734
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
735
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
* @memberof ClusterJarApiInterface
|
|
739
|
-
*/
|
|
740
|
-
archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
741
|
-
|
|
742
653
|
/**
|
|
743
654
|
*
|
|
744
655
|
* @summary Delete an unpublished JAR version
|
|
@@ -811,41 +722,6 @@ export interface ClusterJarApiInterface {
|
|
|
811
722
|
|
|
812
723
|
}
|
|
813
724
|
|
|
814
|
-
/**
|
|
815
|
-
* Request parameters for archiveClusterJar operation in ClusterJarApi.
|
|
816
|
-
* @export
|
|
817
|
-
* @interface ClusterJarApiArchiveClusterJarRequest
|
|
818
|
-
*/
|
|
819
|
-
export interface ClusterJarApiArchiveClusterJarRequest {
|
|
820
|
-
/**
|
|
821
|
-
* Doris or SelectDB engine of the target cluster.
|
|
822
|
-
* @type {string}
|
|
823
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
824
|
-
*/
|
|
825
|
-
readonly engineName: string
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
*
|
|
829
|
-
* @type {string}
|
|
830
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
831
|
-
*/
|
|
832
|
-
readonly orgName: string
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
*
|
|
836
|
-
* @type {string}
|
|
837
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
838
|
-
*/
|
|
839
|
-
readonly clusterName: string
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
*
|
|
843
|
-
* @type {string}
|
|
844
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
845
|
-
*/
|
|
846
|
-
readonly jarId: string
|
|
847
|
-
}
|
|
848
|
-
|
|
849
725
|
/**
|
|
850
726
|
* Request parameters for deleteClusterJar operation in ClusterJarApi.
|
|
851
727
|
* @export
|
|
@@ -1112,18 +988,6 @@ export interface ClusterJarApiUploadClusterJarRequest {
|
|
|
1112
988
|
* @extends {BaseAPI}
|
|
1113
989
|
*/
|
|
1114
990
|
export class ClusterJarApi extends BaseAPI implements ClusterJarApiInterface {
|
|
1115
|
-
/**
|
|
1116
|
-
*
|
|
1117
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
1118
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
1119
|
-
* @param {*} [options] Override http request option.
|
|
1120
|
-
* @throws {RequiredError}
|
|
1121
|
-
* @memberof ClusterJarApi
|
|
1122
|
-
*/
|
|
1123
|
-
public archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig) {
|
|
1124
|
-
return ClusterJarApiFp(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
991
|
/**
|
|
1128
992
|
*
|
|
1129
993
|
* @summary Delete an unpublished JAR version
|
|
@@ -764,59 +764,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
764
764
|
options: localVarRequestOptions,
|
|
765
765
|
};
|
|
766
766
|
},
|
|
767
|
-
/**
|
|
768
|
-
*
|
|
769
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
770
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
771
|
-
* @param {string} orgName
|
|
772
|
-
* @param {string} clusterName
|
|
773
|
-
* @param {string} jarId
|
|
774
|
-
* @param {*} [options] Override http request option.
|
|
775
|
-
* @throws {RequiredError}
|
|
776
|
-
*/
|
|
777
|
-
archiveClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
778
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
779
|
-
assertParamExists('archiveClusterJar', 'engineName', engineName)
|
|
780
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
781
|
-
assertParamExists('archiveClusterJar', 'orgName', orgName)
|
|
782
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
783
|
-
assertParamExists('archiveClusterJar', 'clusterName', clusterName)
|
|
784
|
-
// verify required parameter 'jarId' is not null or undefined
|
|
785
|
-
assertParamExists('archiveClusterJar', 'jarId', jarId)
|
|
786
|
-
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
|
|
787
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
788
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
789
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
790
|
-
.replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
|
|
791
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
792
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
793
|
-
let baseOptions;
|
|
794
|
-
if (configuration) {
|
|
795
|
-
baseOptions = configuration.baseOptions;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
799
|
-
const localVarHeaderParameter = {} as any;
|
|
800
|
-
const localVarQueryParameter = {} as any;
|
|
801
|
-
|
|
802
|
-
// authentication BearerToken required
|
|
803
|
-
// http bearer authentication required
|
|
804
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
805
|
-
|
|
806
|
-
// authentication DigestAuth required
|
|
807
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
812
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
813
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
814
|
-
|
|
815
|
-
return {
|
|
816
|
-
url: toPathString(localVarUrlObj),
|
|
817
|
-
options: localVarRequestOptions,
|
|
818
|
-
};
|
|
819
|
-
},
|
|
820
767
|
/**
|
|
821
768
|
* list the service version of the engine
|
|
822
769
|
* @summary list the service version of the engine
|
|
@@ -17949,22 +17896,6 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17949
17896
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.alterParameter']?.[localVarOperationServerIndex]?.url;
|
|
17950
17897
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17951
17898
|
},
|
|
17952
|
-
/**
|
|
17953
|
-
*
|
|
17954
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
17955
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
17956
|
-
* @param {string} orgName
|
|
17957
|
-
* @param {string} clusterName
|
|
17958
|
-
* @param {string} jarId
|
|
17959
|
-
* @param {*} [options] Override http request option.
|
|
17960
|
-
* @throws {RequiredError}
|
|
17961
|
-
*/
|
|
17962
|
-
async archiveClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17963
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
|
|
17964
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17965
|
-
const localVarOperationServerBasePath = operationServerMap['SharedApi.archiveClusterJar']?.[localVarOperationServerIndex]?.url;
|
|
17966
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17967
|
-
},
|
|
17968
17899
|
/**
|
|
17969
17900
|
* list the service version of the engine
|
|
17970
17901
|
* @summary list the service version of the engine
|
|
@@ -22967,16 +22898,6 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22967
22898
|
alterParameter(requestParameters: SharedApiAlterParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
22968
22899
|
return localVarFp.alterParameter(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, requestParameters.dmsObAlterParameter, options).then((request) => request(axios, basePath));
|
|
22969
22900
|
},
|
|
22970
|
-
/**
|
|
22971
|
-
*
|
|
22972
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
22973
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
22974
|
-
* @param {*} [options] Override http request option.
|
|
22975
|
-
* @throws {RequiredError}
|
|
22976
|
-
*/
|
|
22977
|
-
archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22978
|
-
return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
|
|
22979
|
-
},
|
|
22980
22901
|
/**
|
|
22981
22902
|
* list the service version of the engine
|
|
22982
22903
|
* @summary list the service version of the engine
|
|
@@ -26160,16 +26081,6 @@ export interface SharedApiInterface {
|
|
|
26160
26081
|
*/
|
|
26161
26082
|
alterParameter(requestParameters: SharedApiAlterParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
26162
26083
|
|
|
26163
|
-
/**
|
|
26164
|
-
*
|
|
26165
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
26166
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
26167
|
-
* @param {*} [options] Override http request option.
|
|
26168
|
-
* @throws {RequiredError}
|
|
26169
|
-
* @memberof SharedApiInterface
|
|
26170
|
-
*/
|
|
26171
|
-
archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26172
|
-
|
|
26173
26084
|
/**
|
|
26174
26085
|
* list the service version of the engine
|
|
26175
26086
|
* @summary list the service version of the engine
|
|
@@ -29545,41 +29456,6 @@ export interface SharedApiAlterParameterRequest {
|
|
|
29545
29456
|
readonly dmsObAlterParameter: DmsObAlterParameter
|
|
29546
29457
|
}
|
|
29547
29458
|
|
|
29548
|
-
/**
|
|
29549
|
-
* Request parameters for archiveClusterJar operation in SharedApi.
|
|
29550
|
-
* @export
|
|
29551
|
-
* @interface SharedApiArchiveClusterJarRequest
|
|
29552
|
-
*/
|
|
29553
|
-
export interface SharedApiArchiveClusterJarRequest {
|
|
29554
|
-
/**
|
|
29555
|
-
* Doris or SelectDB engine of the target cluster.
|
|
29556
|
-
* @type {string}
|
|
29557
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29558
|
-
*/
|
|
29559
|
-
readonly engineName: string
|
|
29560
|
-
|
|
29561
|
-
/**
|
|
29562
|
-
*
|
|
29563
|
-
* @type {string}
|
|
29564
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29565
|
-
*/
|
|
29566
|
-
readonly orgName: string
|
|
29567
|
-
|
|
29568
|
-
/**
|
|
29569
|
-
*
|
|
29570
|
-
* @type {string}
|
|
29571
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29572
|
-
*/
|
|
29573
|
-
readonly clusterName: string
|
|
29574
|
-
|
|
29575
|
-
/**
|
|
29576
|
-
*
|
|
29577
|
-
* @type {string}
|
|
29578
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29579
|
-
*/
|
|
29580
|
-
readonly jarId: string
|
|
29581
|
-
}
|
|
29582
|
-
|
|
29583
29459
|
/**
|
|
29584
29460
|
* Request parameters for availableServiceVersion operation in SharedApi.
|
|
29585
29461
|
* @export
|
|
@@ -40078,18 +39954,6 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
40078
39954
|
return SharedApiFp(this.configuration).alterParameter(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, requestParameters.dmsObAlterParameter, options).then((request) => request(this.axios, this.basePath));
|
|
40079
39955
|
}
|
|
40080
39956
|
|
|
40081
|
-
/**
|
|
40082
|
-
*
|
|
40083
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
40084
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
40085
|
-
* @param {*} [options] Override http request option.
|
|
40086
|
-
* @throws {RequiredError}
|
|
40087
|
-
* @memberof SharedApi
|
|
40088
|
-
*/
|
|
40089
|
-
public archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig) {
|
|
40090
|
-
return SharedApiFp(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
|
|
40091
|
-
}
|
|
40092
|
-
|
|
40093
39957
|
/**
|
|
40094
39958
|
* list the service version of the engine
|
|
40095
39959
|
* @summary list the service version of the engine
|
|
@@ -30,6 +30,8 @@ import type { Task } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { TaskList } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
+
import type { TaskRetryMode } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
33
35
|
import type { TaskTypeList } from '../models';
|
|
34
36
|
/**
|
|
35
37
|
* TaskApi - axios parameter creator
|
|
@@ -375,13 +377,14 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
375
377
|
};
|
|
376
378
|
},
|
|
377
379
|
/**
|
|
378
|
-
*
|
|
380
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
379
381
|
* @summary Retry a task
|
|
380
382
|
* @param {string} taskId ID of the task
|
|
383
|
+
* @param {TaskRetryMode} [mode] restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
381
384
|
* @param {*} [options] Override http request option.
|
|
382
385
|
* @throws {RequiredError}
|
|
383
386
|
*/
|
|
384
|
-
retryTask: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
387
|
+
retryTask: async (taskId: string, mode?: TaskRetryMode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
385
388
|
// verify required parameter 'taskId' is not null or undefined
|
|
386
389
|
assertParamExists('retryTask', 'taskId', taskId)
|
|
387
390
|
const localVarPath = `/admin/v1/tasks/{taskId}/retry`
|
|
@@ -404,6 +407,10 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
404
407
|
// authentication DigestAuth required
|
|
405
408
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
406
409
|
|
|
410
|
+
if (mode !== undefined) {
|
|
411
|
+
localVarQueryParameter['mode'] = mode;
|
|
412
|
+
}
|
|
413
|
+
|
|
407
414
|
|
|
408
415
|
|
|
409
416
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -567,14 +574,15 @@ export const TaskApiFp = function(configuration?: Configuration) {
|
|
|
567
574
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
568
575
|
},
|
|
569
576
|
/**
|
|
570
|
-
*
|
|
577
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
571
578
|
* @summary Retry a task
|
|
572
579
|
* @param {string} taskId ID of the task
|
|
580
|
+
* @param {TaskRetryMode} [mode] restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
573
581
|
* @param {*} [options] Override http request option.
|
|
574
582
|
* @throws {RequiredError}
|
|
575
583
|
*/
|
|
576
|
-
async retryTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
577
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.retryTask(taskId, options);
|
|
584
|
+
async retryTask(taskId: string, mode?: TaskRetryMode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retryTask(taskId, mode, options);
|
|
578
586
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
579
587
|
const localVarOperationServerBasePath = operationServerMap['TaskApi.retryTask']?.[localVarOperationServerIndex]?.url;
|
|
580
588
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -672,14 +680,14 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
|
|
|
672
680
|
return localVarFp.listTasks(requestParameters.start, requestParameters.end, requestParameters.orgName, requestParameters.resourceId, requestParameters.resourceType, requestParameters.taskType, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
673
681
|
},
|
|
674
682
|
/**
|
|
675
|
-
*
|
|
683
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
676
684
|
* @summary Retry a task
|
|
677
685
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
678
686
|
* @param {*} [options] Override http request option.
|
|
679
687
|
* @throws {RequiredError}
|
|
680
688
|
*/
|
|
681
689
|
retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task> {
|
|
682
|
-
return localVarFp.retryTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
690
|
+
return localVarFp.retryTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(axios, basePath));
|
|
683
691
|
},
|
|
684
692
|
/**
|
|
685
693
|
* stop task
|
|
@@ -770,7 +778,7 @@ export interface TaskApiInterface {
|
|
|
770
778
|
listTasks(requestParameters: TaskApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<TaskList>;
|
|
771
779
|
|
|
772
780
|
/**
|
|
773
|
-
*
|
|
781
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
774
782
|
* @summary Retry a task
|
|
775
783
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
776
784
|
* @param {*} [options] Override http request option.
|
|
@@ -957,6 +965,13 @@ export interface TaskApiRetryTaskRequest {
|
|
|
957
965
|
* @memberof TaskApiRetryTask
|
|
958
966
|
*/
|
|
959
967
|
readonly taskId: string
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
971
|
+
* @type {TaskRetryMode}
|
|
972
|
+
* @memberof TaskApiRetryTask
|
|
973
|
+
*/
|
|
974
|
+
readonly mode?: TaskRetryMode
|
|
960
975
|
}
|
|
961
976
|
|
|
962
977
|
/**
|
|
@@ -1064,7 +1079,7 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
1064
1079
|
}
|
|
1065
1080
|
|
|
1066
1081
|
/**
|
|
1067
|
-
*
|
|
1082
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
1068
1083
|
* @summary Retry a task
|
|
1069
1084
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
1070
1085
|
* @param {*} [options] Override http request option.
|
|
@@ -1072,7 +1087,7 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
1072
1087
|
* @memberof TaskApi
|
|
1073
1088
|
*/
|
|
1074
1089
|
public retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig) {
|
|
1075
|
-
return TaskApiFp(this.configuration).retryTask(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
1090
|
+
return TaskApiFp(this.configuration).retryTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
|
|
1076
1091
|
}
|
|
1077
1092
|
|
|
1078
1093
|
/**
|