kb-cloud-client-typescript 2.2.135 → 2.2.137
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/internalapi/apis/recycle-bin-cluster-api.d.ts +15 -7
- package/dist/internalapi/apis/recycle-bin-cluster-api.d.ts.map +1 -1
- package/dist/internalapi/apis/recycle-bin-cluster-api.js +18 -11
- package/dist/internalapi/apis/recycle-bin-cluster-api.js.map +1 -1
- package/package.json +1 -1
- package/src/internalapi/apis/recycle-bin-cluster-api.ts +29 -14
- package/src/internalapi.yaml +9 -3
|
@@ -22,12 +22,13 @@ export declare const RecycleBinClusterApiAxiosParamCreator: (configuration?: Con
|
|
|
22
22
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
23
23
|
* @param {string} orgName name of the Org
|
|
24
24
|
* @param {string} clusterName name of the cluster
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {string} orgID
|
|
26
|
+
* @param {string} clusterID
|
|
26
27
|
* @param {string} uid the uid of the impersonating user
|
|
27
28
|
* @param {*} [options] Override http request option.
|
|
28
29
|
* @throws {RequiredError}
|
|
29
30
|
*/
|
|
30
|
-
deleteRecycleBinCluster: (orgName: string, clusterName: string,
|
|
31
|
+
deleteRecycleBinCluster: (orgName: string, clusterName: string, orgID: string, clusterID: string, uid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* RecycleBinClusterApi - functional programming interface
|
|
@@ -39,12 +40,13 @@ export declare const RecycleBinClusterApiFp: (configuration?: Configuration) =>
|
|
|
39
40
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
40
41
|
* @param {string} orgName name of the Org
|
|
41
42
|
* @param {string} clusterName name of the cluster
|
|
42
|
-
* @param {
|
|
43
|
+
* @param {string} orgID
|
|
44
|
+
* @param {string} clusterID
|
|
43
45
|
* @param {string} uid the uid of the impersonating user
|
|
44
46
|
* @param {*} [options] Override http request option.
|
|
45
47
|
* @throws {RequiredError}
|
|
46
48
|
*/
|
|
47
|
-
deleteRecycleBinCluster(orgName: string, clusterName: string,
|
|
49
|
+
deleteRecycleBinCluster(orgName: string, clusterName: string, orgID: string, clusterID: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
50
|
};
|
|
49
51
|
/**
|
|
50
52
|
* RecycleBinClusterApi - factory interface
|
|
@@ -95,11 +97,17 @@ export interface RecycleBinClusterApiDeleteRecycleBinClusterRequest {
|
|
|
95
97
|
*/
|
|
96
98
|
readonly clusterName: string;
|
|
97
99
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof RecycleBinClusterApiDeleteRecycleBinCluster
|
|
103
|
+
*/
|
|
104
|
+
readonly orgID: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
100
108
|
* @memberof RecycleBinClusterApiDeleteRecycleBinCluster
|
|
101
109
|
*/
|
|
102
|
-
readonly
|
|
110
|
+
readonly clusterID: string;
|
|
103
111
|
/**
|
|
104
112
|
* the uid of the impersonating user
|
|
105
113
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recycle-bin-cluster-api.d.ts","sourceRoot":"","sources":["../../../src/internalapi/apis/recycle-bin-cluster-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAMhF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,eAAO,MAAM,qCAAqC,GAAa,gBAAgB,aAAa;IAEpF
|
|
1
|
+
{"version":3,"file":"recycle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IG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACvB;AAED;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,OAAQ,YAAW,6BAA6B;IACtF;;;;;;;OAOG;IACI,uBAAuB,CAAC,iBAAiB,EAAE,kDAAkD,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxI"}
|
|
@@ -34,18 +34,21 @@ const RecycleBinClusterApiAxiosParamCreator = function (configuration) {
|
|
|
34
34
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
35
35
|
* @param {string} orgName name of the Org
|
|
36
36
|
* @param {string} clusterName name of the cluster
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {string} orgID
|
|
38
|
+
* @param {string} clusterID
|
|
38
39
|
* @param {string} uid the uid of the impersonating user
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
|
-
deleteRecycleBinCluster: async (orgName, clusterName,
|
|
43
|
+
deleteRecycleBinCluster: async (orgName, clusterName, orgID, clusterID, uid, options = {}) => {
|
|
43
44
|
// verify required parameter 'orgName' is not null or undefined
|
|
44
45
|
(0, common_1.assertParamExists)('deleteRecycleBinCluster', 'orgName', orgName);
|
|
45
46
|
// verify required parameter 'clusterName' is not null or undefined
|
|
46
47
|
(0, common_1.assertParamExists)('deleteRecycleBinCluster', 'clusterName', clusterName);
|
|
47
|
-
// verify required parameter '
|
|
48
|
-
(0, common_1.assertParamExists)('deleteRecycleBinCluster', '
|
|
48
|
+
// verify required parameter 'orgID' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('deleteRecycleBinCluster', 'orgID', orgID);
|
|
50
|
+
// verify required parameter 'clusterID' is not null or undefined
|
|
51
|
+
(0, common_1.assertParamExists)('deleteRecycleBinCluster', 'clusterID', clusterID);
|
|
49
52
|
// verify required parameter 'uid' is not null or undefined
|
|
50
53
|
(0, common_1.assertParamExists)('deleteRecycleBinCluster', 'uid', uid);
|
|
51
54
|
const localVarPath = `/internal/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
|
|
@@ -63,8 +66,11 @@ const RecycleBinClusterApiAxiosParamCreator = function (configuration) {
|
|
|
63
66
|
// authentication BasicAuth required
|
|
64
67
|
// http basic authentication required
|
|
65
68
|
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
66
|
-
if (
|
|
67
|
-
localVarQueryParameter['
|
|
69
|
+
if (orgID !== undefined) {
|
|
70
|
+
localVarQueryParameter['orgID'] = orgID;
|
|
71
|
+
}
|
|
72
|
+
if (clusterID !== undefined) {
|
|
73
|
+
localVarQueryParameter['clusterID'] = clusterID;
|
|
68
74
|
}
|
|
69
75
|
if (uid !== undefined) {
|
|
70
76
|
localVarQueryParameter['uid'] = uid;
|
|
@@ -92,14 +98,15 @@ const RecycleBinClusterApiFp = function (configuration) {
|
|
|
92
98
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
93
99
|
* @param {string} orgName name of the Org
|
|
94
100
|
* @param {string} clusterName name of the cluster
|
|
95
|
-
* @param {
|
|
101
|
+
* @param {string} orgID
|
|
102
|
+
* @param {string} clusterID
|
|
96
103
|
* @param {string} uid the uid of the impersonating user
|
|
97
104
|
* @param {*} [options] Override http request option.
|
|
98
105
|
* @throws {RequiredError}
|
|
99
106
|
*/
|
|
100
|
-
async deleteRecycleBinCluster(orgName, clusterName,
|
|
107
|
+
async deleteRecycleBinCluster(orgName, clusterName, orgID, clusterID, uid, options) {
|
|
101
108
|
var _a, _b, _c;
|
|
102
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecycleBinCluster(orgName, clusterName,
|
|
109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecycleBinCluster(orgName, clusterName, orgID, clusterID, uid, options);
|
|
103
110
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
104
111
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecycleBinClusterApi.deleteRecycleBinCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
105
112
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -122,7 +129,7 @@ const RecycleBinClusterApiFactory = function (configuration, basePath, axios) {
|
|
|
122
129
|
* @throws {RequiredError}
|
|
123
130
|
*/
|
|
124
131
|
deleteRecycleBinCluster(requestParameters, options) {
|
|
125
|
-
return localVarFp.deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.
|
|
132
|
+
return localVarFp.deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.orgID, requestParameters.clusterID, requestParameters.uid, options).then((request) => request(axios, basePath));
|
|
126
133
|
},
|
|
127
134
|
};
|
|
128
135
|
};
|
|
@@ -143,7 +150,7 @@ class RecycleBinClusterApi extends base_1.BaseAPI {
|
|
|
143
150
|
* @memberof RecycleBinClusterApi
|
|
144
151
|
*/
|
|
145
152
|
deleteRecycleBinCluster(requestParameters, options) {
|
|
146
|
-
return (0, exports.RecycleBinClusterApiFp)(this.configuration).deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.
|
|
153
|
+
return (0, exports.RecycleBinClusterApiFp)(this.configuration).deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.orgID, requestParameters.clusterID, requestParameters.uid, options).then((request) => request(this.axios, this.basePath));
|
|
147
154
|
}
|
|
148
155
|
}
|
|
149
156
|
exports.RecycleBinClusterApi = RecycleBinClusterApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recycle-bin-cluster-api.js","sourceRoot":"","sources":["../../../src/internalapi/apis/recycle-bin-cluster-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,qCAAqC,GAAG,UAAU,aAA6B;IACxF,OAAO;QACH
|
|
1
|
+
{"version":3,"file":"recycle-bin-cluster-api.js","sourceRoot":"","sources":["../../../src/internalapi/apis/recycle-bin-cluster-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,qCAAqC,GAAG,UAAU,aAA6B;IACxF,OAAO;QACH;;;;;;;;;;WAUG;QACH,uBAAuB,EAAE,KAAK,EAAE,OAAe,EAAE,WAAmB,EAAE,KAAa,EAAE,SAAiB,EAAE,GAAW,EAAE,UAAiC,EAAE,EAAwB,EAAE;YAC9K,+DAA+D;YAC/D,IAAA,0BAAiB,EAAC,yBAAyB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YAChE,mEAAmE;YACnE,IAAA,0BAAiB,EAAC,yBAAyB,EAAE,aAAa,EAAE,WAAW,CAAC,CAAA;YACxE,6DAA6D;YAC7D,IAAA,0BAAiB,EAAC,yBAAyB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;YAC5D,iEAAiE;YACjE,IAAA,0BAAiB,EAAC,yBAAyB,EAAE,WAAW,EAAE,SAAS,CAAC,CAAA;YACpE,2DAA2D;YAC3D,IA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,8BAAsB,EAAC,aAAa,CAAC,CAAA;IACxD,OAAO;QACH;;;;;;WAMG;QACH,uBAAuB,CAAC,iBAAqE,EAAE,OAA+B;YAC1H,OAAO,UAAU,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC1O,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,2BAA2B,+BActC;AA8DF;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,cAAO;IAC7C;;;;;;;OAOG;IACI,uBAAuB,CAAC,iBAAqE,EAAE,OAA+B;QACjI,OAAO,IAAA,8BAAsB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpR,CAAC;CACJ;AAZD,oDAYC"}
|
package/package.json
CHANGED
|
@@ -34,18 +34,21 @@ export const RecycleBinClusterApiAxiosParamCreator = function (configuration?: C
|
|
|
34
34
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
35
35
|
* @param {string} orgName name of the Org
|
|
36
36
|
* @param {string} clusterName name of the cluster
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {string} orgID
|
|
38
|
+
* @param {string} clusterID
|
|
38
39
|
* @param {string} uid the uid of the impersonating user
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
|
-
deleteRecycleBinCluster: async (orgName: string, clusterName: string,
|
|
43
|
+
deleteRecycleBinCluster: async (orgName: string, clusterName: string, orgID: string, clusterID: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
44
|
// verify required parameter 'orgName' is not null or undefined
|
|
44
45
|
assertParamExists('deleteRecycleBinCluster', 'orgName', orgName)
|
|
45
46
|
// verify required parameter 'clusterName' is not null or undefined
|
|
46
47
|
assertParamExists('deleteRecycleBinCluster', 'clusterName', clusterName)
|
|
47
|
-
// verify required parameter '
|
|
48
|
-
assertParamExists('deleteRecycleBinCluster', '
|
|
48
|
+
// verify required parameter 'orgID' is not null or undefined
|
|
49
|
+
assertParamExists('deleteRecycleBinCluster', 'orgID', orgID)
|
|
50
|
+
// verify required parameter 'clusterID' is not null or undefined
|
|
51
|
+
assertParamExists('deleteRecycleBinCluster', 'clusterID', clusterID)
|
|
49
52
|
// verify required parameter 'uid' is not null or undefined
|
|
50
53
|
assertParamExists('deleteRecycleBinCluster', 'uid', uid)
|
|
51
54
|
const localVarPath = `/internal/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
|
|
@@ -66,8 +69,12 @@ export const RecycleBinClusterApiAxiosParamCreator = function (configuration?: C
|
|
|
66
69
|
// http basic authentication required
|
|
67
70
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
68
71
|
|
|
69
|
-
if (
|
|
70
|
-
localVarQueryParameter['
|
|
72
|
+
if (orgID !== undefined) {
|
|
73
|
+
localVarQueryParameter['orgID'] = orgID;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (clusterID !== undefined) {
|
|
77
|
+
localVarQueryParameter['clusterID'] = clusterID;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
if (uid !== undefined) {
|
|
@@ -100,13 +107,14 @@ export const RecycleBinClusterApiFp = function(configuration?: Configuration) {
|
|
|
100
107
|
* @summary Delete cluster from the Recycle Bin of the Org
|
|
101
108
|
* @param {string} orgName name of the Org
|
|
102
109
|
* @param {string} clusterName name of the cluster
|
|
103
|
-
* @param {
|
|
110
|
+
* @param {string} orgID
|
|
111
|
+
* @param {string} clusterID
|
|
104
112
|
* @param {string} uid the uid of the impersonating user
|
|
105
113
|
* @param {*} [options] Override http request option.
|
|
106
114
|
* @throws {RequiredError}
|
|
107
115
|
*/
|
|
108
|
-
async deleteRecycleBinCluster(orgName: string, clusterName: string,
|
|
109
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecycleBinCluster(orgName, clusterName,
|
|
116
|
+
async deleteRecycleBinCluster(orgName: string, clusterName: string, orgID: string, clusterID: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
117
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecycleBinCluster(orgName, clusterName, orgID, clusterID, uid, options);
|
|
110
118
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
111
119
|
const localVarOperationServerBasePath = operationServerMap['RecycleBinClusterApi.deleteRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
|
|
112
120
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -129,7 +137,7 @@ export const RecycleBinClusterApiFactory = function (configuration?: Configurati
|
|
|
129
137
|
* @throws {RequiredError}
|
|
130
138
|
*/
|
|
131
139
|
deleteRecycleBinCluster(requestParameters: RecycleBinClusterApiDeleteRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
132
|
-
return localVarFp.deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.
|
|
140
|
+
return localVarFp.deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.orgID, requestParameters.clusterID, requestParameters.uid, options).then((request) => request(axios, basePath));
|
|
133
141
|
},
|
|
134
142
|
};
|
|
135
143
|
};
|
|
@@ -173,11 +181,18 @@ export interface RecycleBinClusterApiDeleteRecycleBinClusterRequest {
|
|
|
173
181
|
readonly clusterName: string
|
|
174
182
|
|
|
175
183
|
/**
|
|
176
|
-
*
|
|
177
|
-
* @type {
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof RecycleBinClusterApiDeleteRecycleBinCluster
|
|
187
|
+
*/
|
|
188
|
+
readonly orgID: string
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {string}
|
|
178
193
|
* @memberof RecycleBinClusterApiDeleteRecycleBinCluster
|
|
179
194
|
*/
|
|
180
|
-
readonly
|
|
195
|
+
readonly clusterID: string
|
|
181
196
|
|
|
182
197
|
/**
|
|
183
198
|
* the uid of the impersonating user
|
|
@@ -203,7 +218,7 @@ export class RecycleBinClusterApi extends BaseAPI implements RecycleBinClusterAp
|
|
|
203
218
|
* @memberof RecycleBinClusterApi
|
|
204
219
|
*/
|
|
205
220
|
public deleteRecycleBinCluster(requestParameters: RecycleBinClusterApiDeleteRecycleBinClusterRequest, options?: RawAxiosRequestConfig) {
|
|
206
|
-
return RecycleBinClusterApiFp(this.configuration).deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.
|
|
221
|
+
return RecycleBinClusterApiFp(this.configuration).deleteRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.orgID, requestParameters.clusterID, requestParameters.uid, options).then((request) => request(this.axios, this.basePath));
|
|
207
222
|
}
|
|
208
223
|
}
|
|
209
224
|
|
package/src/internalapi.yaml
CHANGED
|
@@ -213,12 +213,18 @@ paths:
|
|
|
213
213
|
required: true
|
|
214
214
|
schema:
|
|
215
215
|
type: string
|
|
216
|
-
- name:
|
|
216
|
+
- name: orgID
|
|
217
217
|
in: query
|
|
218
|
-
description: whether to delete the backup of the cluster
|
|
219
218
|
required: true
|
|
220
219
|
schema:
|
|
221
|
-
type:
|
|
220
|
+
type: string
|
|
221
|
+
pattern: ^[1-9][0-9]*$
|
|
222
|
+
- name: clusterID
|
|
223
|
+
in: query
|
|
224
|
+
required: true
|
|
225
|
+
schema:
|
|
226
|
+
type: string
|
|
227
|
+
pattern: ^[1-9][0-9]*$
|
|
222
228
|
- name: uid
|
|
223
229
|
in: query
|
|
224
230
|
description: the uid of the impersonating user
|