kb-cloud-client-typescript 2.3.0-alpha.214 → 2.3.0-alpha.216
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/disaster-recovery-api.d.ts +271 -0
- package/dist/adminapi/apis/disaster-recovery-api.d.ts.map +1 -1
- package/dist/adminapi/apis/disaster-recovery-api.js +307 -0
- package/dist/adminapi/apis/disaster-recovery-api.js.map +1 -1
- package/dist/adminapi/models/disaster-recovery-event-type.d.ts +23 -0
- package/dist/adminapi/models/disaster-recovery-event-type.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-event-type.js +27 -0
- package/dist/adminapi/models/disaster-recovery-event-type.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history-item.d.ts +105 -0
- package/dist/adminapi/models/disaster-recovery-history-item.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history-item.js +16 -0
- package/dist/adminapi/models/disaster-recovery-history-item.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history.d.ts +26 -0
- package/dist/adminapi/models/disaster-recovery-history.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history.js +16 -0
- package/dist/adminapi/models/disaster-recovery-history.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-promote.d.ts +31 -0
- package/dist/adminapi/models/disaster-recovery-promote.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-promote.js +16 -0
- package/dist/adminapi/models/disaster-recovery-promote.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status-response.d.ts +79 -0
- package/dist/adminapi/models/disaster-recovery-status-response.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status-response.js +16 -0
- package/dist/adminapi/models/disaster-recovery-status-response.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status.d.ts +25 -0
- package/dist/adminapi/models/disaster-recovery-status.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status.js +29 -0
- package/dist/adminapi/models/disaster-recovery-status.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +6 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +6 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +6 -0
- package/src/adminapi/apis/disaster-recovery-api.ts +482 -0
- package/src/adminapi/models/disaster-recovery-event-type.ts +32 -0
- package/src/adminapi/models/disaster-recovery-history-item.ts +116 -0
- package/src/adminapi/models/disaster-recovery-history.ts +33 -0
- package/src/adminapi/models/disaster-recovery-promote.ts +36 -0
- package/src/adminapi/models/disaster-recovery-status-response.ts +84 -0
- package/src/adminapi/models/disaster-recovery-status.ts +34 -0
- package/src/adminapi/models/index.ts +6 -0
- package/src/adminapi.yaml +308 -9
|
@@ -28,6 +28,12 @@ import type { DisasterRecoveryClusterList } from '../models';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { DisasterRecoveryCreate } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
+
import type { DisasterRecoveryHistory } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { DisasterRecoveryPromote } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { DisasterRecoveryStatusResponse } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
31
37
|
import type { DisasterRecoveryTask } from '../models';
|
|
32
38
|
/**
|
|
33
39
|
* DisasterRecoveryApi - axios parameter creator
|
|
@@ -86,6 +92,147 @@ export const DisasterRecoveryApiAxiosParamCreator = function (configuration?: Co
|
|
|
86
92
|
options: localVarRequestOptions,
|
|
87
93
|
};
|
|
88
94
|
},
|
|
95
|
+
/**
|
|
96
|
+
* Delete a specific disaster recovery instance
|
|
97
|
+
* @summary Delete a disaster recovery instance
|
|
98
|
+
* @param {string} orgName name of the org
|
|
99
|
+
* @param {string} [logicalInstanceID] The ID of the disaster recovery logical instance
|
|
100
|
+
* @param {string} [clusterID] The ID of the disaster recovery cluster
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
deleteDisasterRecovery: async (orgName: string, logicalInstanceID?: string, clusterID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
106
|
+
assertParamExists('deleteDisasterRecovery', 'orgName', orgName)
|
|
107
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/disasterRecovery`
|
|
108
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
117
|
+
const localVarHeaderParameter = {} as any;
|
|
118
|
+
const localVarQueryParameter = {} as any;
|
|
119
|
+
|
|
120
|
+
// authentication BearerToken required
|
|
121
|
+
// http bearer authentication required
|
|
122
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
|
+
|
|
124
|
+
// authentication DigestAuth required
|
|
125
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
126
|
+
|
|
127
|
+
if (logicalInstanceID !== undefined) {
|
|
128
|
+
localVarQueryParameter['logicalInstanceID'] = logicalInstanceID;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (clusterID !== undefined) {
|
|
132
|
+
localVarQueryParameter['clusterID'] = clusterID;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
148
|
+
* @summary Get switch history of a disaster recovery instance
|
|
149
|
+
* @param {string} clusterID The ID of the disaster recovery instance
|
|
150
|
+
* @param {string} orgName name of the org
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
getDisasterRecoveryHistory: async (clusterID: string, orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
155
|
+
// verify required parameter 'clusterID' is not null or undefined
|
|
156
|
+
assertParamExists('getDisasterRecoveryHistory', 'clusterID', clusterID)
|
|
157
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
158
|
+
assertParamExists('getDisasterRecoveryHistory', 'orgName', orgName)
|
|
159
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/switchHistory`
|
|
160
|
+
.replace(`{${"clusterID"}}`, encodeURIComponent(String(clusterID)))
|
|
161
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
164
|
+
let baseOptions;
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
170
|
+
const localVarHeaderParameter = {} as any;
|
|
171
|
+
const localVarQueryParameter = {} as any;
|
|
172
|
+
|
|
173
|
+
// authentication BearerToken required
|
|
174
|
+
// http bearer authentication required
|
|
175
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
176
|
+
|
|
177
|
+
// authentication DigestAuth required
|
|
178
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
185
|
+
|
|
186
|
+
return {
|
|
187
|
+
url: toPathString(localVarUrlObj),
|
|
188
|
+
options: localVarRequestOptions,
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
193
|
+
* @summary Retrieve Disaster Recovery Instance Status
|
|
194
|
+
* @param {string} clusterID Unique identifier of the disaster recovery instance
|
|
195
|
+
* @param {string} orgName Name of the organization
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
getDisasterRecoveryStatus: async (clusterID: string, orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
|
+
// verify required parameter 'clusterID' is not null or undefined
|
|
201
|
+
assertParamExists('getDisasterRecoveryStatus', 'clusterID', clusterID)
|
|
202
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
203
|
+
assertParamExists('getDisasterRecoveryStatus', 'orgName', orgName)
|
|
204
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/status`
|
|
205
|
+
.replace(`{${"clusterID"}}`, encodeURIComponent(String(clusterID)))
|
|
206
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
if (configuration) {
|
|
211
|
+
baseOptions = configuration.baseOptions;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
215
|
+
const localVarHeaderParameter = {} as any;
|
|
216
|
+
const localVarQueryParameter = {} as any;
|
|
217
|
+
|
|
218
|
+
// authentication BearerToken required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
221
|
+
|
|
222
|
+
// authentication DigestAuth required
|
|
223
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
url: toPathString(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
89
236
|
/**
|
|
90
237
|
* Retrieve a list of disaster recovery instances for a specific database cluster.
|
|
91
238
|
* @summary List Disaster Recovery instances under the main cluster
|
|
@@ -126,6 +273,57 @@ export const DisasterRecoveryApiAxiosParamCreator = function (configuration?: Co
|
|
|
126
273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
274
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
275
|
|
|
276
|
+
return {
|
|
277
|
+
url: toPathString(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Promote the disaster recovery instance to the primary database instance.
|
|
283
|
+
* @summary Promote a disaster recovery instance to the main instance
|
|
284
|
+
* @param {string} clusterID The ID of the disaster recovery instance
|
|
285
|
+
* @param {string} orgName name of the org
|
|
286
|
+
* @param {DisasterRecoveryPromote} body
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
promoteDisasterRecovery: async (clusterID: string, orgName: string, body: DisasterRecoveryPromote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
291
|
+
// verify required parameter 'clusterID' is not null or undefined
|
|
292
|
+
assertParamExists('promoteDisasterRecovery', 'clusterID', clusterID)
|
|
293
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
294
|
+
assertParamExists('promoteDisasterRecovery', 'orgName', orgName)
|
|
295
|
+
// verify required parameter 'body' is not null or undefined
|
|
296
|
+
assertParamExists('promoteDisasterRecovery', 'body', body)
|
|
297
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/promote`
|
|
298
|
+
.replace(`{${"clusterID"}}`, encodeURIComponent(String(clusterID)))
|
|
299
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
302
|
+
let baseOptions;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
308
|
+
const localVarHeaderParameter = {} as any;
|
|
309
|
+
const localVarQueryParameter = {} as any;
|
|
310
|
+
|
|
311
|
+
// authentication BearerToken required
|
|
312
|
+
// http bearer authentication required
|
|
313
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
314
|
+
|
|
315
|
+
// authentication DigestAuth required
|
|
316
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
321
|
+
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
325
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
326
|
+
|
|
129
327
|
return {
|
|
130
328
|
url: toPathString(localVarUrlObj),
|
|
131
329
|
options: localVarRequestOptions,
|
|
@@ -156,6 +354,49 @@ export const DisasterRecoveryApiFp = function(configuration?: Configuration) {
|
|
|
156
354
|
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.createDisasterRecovery']?.[localVarOperationServerIndex]?.url;
|
|
157
355
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
158
356
|
},
|
|
357
|
+
/**
|
|
358
|
+
* Delete a specific disaster recovery instance
|
|
359
|
+
* @summary Delete a disaster recovery instance
|
|
360
|
+
* @param {string} orgName name of the org
|
|
361
|
+
* @param {string} [logicalInstanceID] The ID of the disaster recovery logical instance
|
|
362
|
+
* @param {string} [clusterID] The ID of the disaster recovery cluster
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
async deleteDisasterRecovery(orgName: string, logicalInstanceID?: string, clusterID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisasterRecoveryTask>> {
|
|
367
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDisasterRecovery(orgName, logicalInstanceID, clusterID, options);
|
|
368
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
369
|
+
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.deleteDisasterRecovery']?.[localVarOperationServerIndex]?.url;
|
|
370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
374
|
+
* @summary Get switch history of a disaster recovery instance
|
|
375
|
+
* @param {string} clusterID The ID of the disaster recovery instance
|
|
376
|
+
* @param {string} orgName name of the org
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async getDisasterRecoveryHistory(clusterID: string, orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisasterRecoveryHistory>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDisasterRecoveryHistory(clusterID, orgName, options);
|
|
382
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
383
|
+
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.getDisasterRecoveryHistory']?.[localVarOperationServerIndex]?.url;
|
|
384
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
388
|
+
* @summary Retrieve Disaster Recovery Instance Status
|
|
389
|
+
* @param {string} clusterID Unique identifier of the disaster recovery instance
|
|
390
|
+
* @param {string} orgName Name of the organization
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
async getDisasterRecoveryStatus(clusterID: string, orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisasterRecoveryStatusResponse>> {
|
|
395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDisasterRecoveryStatus(clusterID, orgName, options);
|
|
396
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
397
|
+
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.getDisasterRecoveryStatus']?.[localVarOperationServerIndex]?.url;
|
|
398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
399
|
+
},
|
|
159
400
|
/**
|
|
160
401
|
* Retrieve a list of disaster recovery instances for a specific database cluster.
|
|
161
402
|
* @summary List Disaster Recovery instances under the main cluster
|
|
@@ -170,6 +411,21 @@ export const DisasterRecoveryApiFp = function(configuration?: Configuration) {
|
|
|
170
411
|
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.listDisasterRecovery']?.[localVarOperationServerIndex]?.url;
|
|
171
412
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
172
413
|
},
|
|
414
|
+
/**
|
|
415
|
+
* Promote the disaster recovery instance to the primary database instance.
|
|
416
|
+
* @summary Promote a disaster recovery instance to the main instance
|
|
417
|
+
* @param {string} clusterID The ID of the disaster recovery instance
|
|
418
|
+
* @param {string} orgName name of the org
|
|
419
|
+
* @param {DisasterRecoveryPromote} body
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
async promoteDisasterRecovery(clusterID: string, orgName: string, body: DisasterRecoveryPromote, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisasterRecoveryTask>> {
|
|
424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promoteDisasterRecovery(clusterID, orgName, body, options);
|
|
425
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
426
|
+
const localVarOperationServerBasePath = operationServerMap['DisasterRecoveryApi.promoteDisasterRecovery']?.[localVarOperationServerIndex]?.url;
|
|
427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
428
|
+
},
|
|
173
429
|
}
|
|
174
430
|
};
|
|
175
431
|
|
|
@@ -190,6 +446,36 @@ export const DisasterRecoveryApiFactory = function (configuration?: Configuratio
|
|
|
190
446
|
createDisasterRecovery(requestParameters: DisasterRecoveryApiCreateDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask> {
|
|
191
447
|
return localVarFp.createDisasterRecovery(requestParameters.parentClusterID, requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
192
448
|
},
|
|
449
|
+
/**
|
|
450
|
+
* Delete a specific disaster recovery instance
|
|
451
|
+
* @summary Delete a disaster recovery instance
|
|
452
|
+
* @param {DisasterRecoveryApiDeleteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
deleteDisasterRecovery(requestParameters: DisasterRecoveryApiDeleteDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask> {
|
|
457
|
+
return localVarFp.deleteDisasterRecovery(requestParameters.orgName, requestParameters.logicalInstanceID, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
458
|
+
},
|
|
459
|
+
/**
|
|
460
|
+
* Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
461
|
+
* @summary Get switch history of a disaster recovery instance
|
|
462
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryHistoryRequest} requestParameters Request parameters.
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
getDisasterRecoveryHistory(requestParameters: DisasterRecoveryApiGetDisasterRecoveryHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryHistory> {
|
|
467
|
+
return localVarFp.getDisasterRecoveryHistory(requestParameters.clusterID, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
471
|
+
* @summary Retrieve Disaster Recovery Instance Status
|
|
472
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryStatusRequest} requestParameters Request parameters.
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
getDisasterRecoveryStatus(requestParameters: DisasterRecoveryApiGetDisasterRecoveryStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryStatusResponse> {
|
|
477
|
+
return localVarFp.getDisasterRecoveryStatus(requestParameters.clusterID, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
478
|
+
},
|
|
193
479
|
/**
|
|
194
480
|
* Retrieve a list of disaster recovery instances for a specific database cluster.
|
|
195
481
|
* @summary List Disaster Recovery instances under the main cluster
|
|
@@ -200,6 +486,16 @@ export const DisasterRecoveryApiFactory = function (configuration?: Configuratio
|
|
|
200
486
|
listDisasterRecovery(requestParameters: DisasterRecoveryApiListDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryClusterList> {
|
|
201
487
|
return localVarFp.listDisasterRecovery(requestParameters.parentClusterID, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
202
488
|
},
|
|
489
|
+
/**
|
|
490
|
+
* Promote the disaster recovery instance to the primary database instance.
|
|
491
|
+
* @summary Promote a disaster recovery instance to the main instance
|
|
492
|
+
* @param {DisasterRecoveryApiPromoteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
promoteDisasterRecovery(requestParameters: DisasterRecoveryApiPromoteDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask> {
|
|
497
|
+
return localVarFp.promoteDisasterRecovery(requestParameters.clusterID, requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
498
|
+
},
|
|
203
499
|
};
|
|
204
500
|
};
|
|
205
501
|
|
|
@@ -219,6 +515,36 @@ export interface DisasterRecoveryApiInterface {
|
|
|
219
515
|
*/
|
|
220
516
|
createDisasterRecovery(requestParameters: DisasterRecoveryApiCreateDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask>;
|
|
221
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Delete a specific disaster recovery instance
|
|
520
|
+
* @summary Delete a disaster recovery instance
|
|
521
|
+
* @param {DisasterRecoveryApiDeleteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof DisasterRecoveryApiInterface
|
|
525
|
+
*/
|
|
526
|
+
deleteDisasterRecovery(requestParameters: DisasterRecoveryApiDeleteDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask>;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
530
|
+
* @summary Get switch history of a disaster recovery instance
|
|
531
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryHistoryRequest} requestParameters Request parameters.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
* @memberof DisasterRecoveryApiInterface
|
|
535
|
+
*/
|
|
536
|
+
getDisasterRecoveryHistory(requestParameters: DisasterRecoveryApiGetDisasterRecoveryHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryHistory>;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
540
|
+
* @summary Retrieve Disaster Recovery Instance Status
|
|
541
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryStatusRequest} requestParameters Request parameters.
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
* @memberof DisasterRecoveryApiInterface
|
|
545
|
+
*/
|
|
546
|
+
getDisasterRecoveryStatus(requestParameters: DisasterRecoveryApiGetDisasterRecoveryStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryStatusResponse>;
|
|
547
|
+
|
|
222
548
|
/**
|
|
223
549
|
* Retrieve a list of disaster recovery instances for a specific database cluster.
|
|
224
550
|
* @summary List Disaster Recovery instances under the main cluster
|
|
@@ -229,6 +555,16 @@ export interface DisasterRecoveryApiInterface {
|
|
|
229
555
|
*/
|
|
230
556
|
listDisasterRecovery(requestParameters: DisasterRecoveryApiListDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryClusterList>;
|
|
231
557
|
|
|
558
|
+
/**
|
|
559
|
+
* Promote the disaster recovery instance to the primary database instance.
|
|
560
|
+
* @summary Promote a disaster recovery instance to the main instance
|
|
561
|
+
* @param {DisasterRecoveryApiPromoteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
* @memberof DisasterRecoveryApiInterface
|
|
565
|
+
*/
|
|
566
|
+
promoteDisasterRecovery(requestParameters: DisasterRecoveryApiPromoteDisasterRecoveryRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisasterRecoveryTask>;
|
|
567
|
+
|
|
232
568
|
}
|
|
233
569
|
|
|
234
570
|
/**
|
|
@@ -259,6 +595,76 @@ export interface DisasterRecoveryApiCreateDisasterRecoveryRequest {
|
|
|
259
595
|
readonly body: DisasterRecoveryCreate
|
|
260
596
|
}
|
|
261
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Request parameters for deleteDisasterRecovery operation in DisasterRecoveryApi.
|
|
600
|
+
* @export
|
|
601
|
+
* @interface DisasterRecoveryApiDeleteDisasterRecoveryRequest
|
|
602
|
+
*/
|
|
603
|
+
export interface DisasterRecoveryApiDeleteDisasterRecoveryRequest {
|
|
604
|
+
/**
|
|
605
|
+
* name of the org
|
|
606
|
+
* @type {string}
|
|
607
|
+
* @memberof DisasterRecoveryApiDeleteDisasterRecovery
|
|
608
|
+
*/
|
|
609
|
+
readonly orgName: string
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* The ID of the disaster recovery logical instance
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof DisasterRecoveryApiDeleteDisasterRecovery
|
|
615
|
+
*/
|
|
616
|
+
readonly logicalInstanceID?: string
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* The ID of the disaster recovery cluster
|
|
620
|
+
* @type {string}
|
|
621
|
+
* @memberof DisasterRecoveryApiDeleteDisasterRecovery
|
|
622
|
+
*/
|
|
623
|
+
readonly clusterID?: string
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Request parameters for getDisasterRecoveryHistory operation in DisasterRecoveryApi.
|
|
628
|
+
* @export
|
|
629
|
+
* @interface DisasterRecoveryApiGetDisasterRecoveryHistoryRequest
|
|
630
|
+
*/
|
|
631
|
+
export interface DisasterRecoveryApiGetDisasterRecoveryHistoryRequest {
|
|
632
|
+
/**
|
|
633
|
+
* The ID of the disaster recovery instance
|
|
634
|
+
* @type {string}
|
|
635
|
+
* @memberof DisasterRecoveryApiGetDisasterRecoveryHistory
|
|
636
|
+
*/
|
|
637
|
+
readonly clusterID: string
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* name of the org
|
|
641
|
+
* @type {string}
|
|
642
|
+
* @memberof DisasterRecoveryApiGetDisasterRecoveryHistory
|
|
643
|
+
*/
|
|
644
|
+
readonly orgName: string
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Request parameters for getDisasterRecoveryStatus operation in DisasterRecoveryApi.
|
|
649
|
+
* @export
|
|
650
|
+
* @interface DisasterRecoveryApiGetDisasterRecoveryStatusRequest
|
|
651
|
+
*/
|
|
652
|
+
export interface DisasterRecoveryApiGetDisasterRecoveryStatusRequest {
|
|
653
|
+
/**
|
|
654
|
+
* Unique identifier of the disaster recovery instance
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof DisasterRecoveryApiGetDisasterRecoveryStatus
|
|
657
|
+
*/
|
|
658
|
+
readonly clusterID: string
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Name of the organization
|
|
662
|
+
* @type {string}
|
|
663
|
+
* @memberof DisasterRecoveryApiGetDisasterRecoveryStatus
|
|
664
|
+
*/
|
|
665
|
+
readonly orgName: string
|
|
666
|
+
}
|
|
667
|
+
|
|
262
668
|
/**
|
|
263
669
|
* Request parameters for listDisasterRecovery operation in DisasterRecoveryApi.
|
|
264
670
|
* @export
|
|
@@ -280,6 +686,34 @@ export interface DisasterRecoveryApiListDisasterRecoveryRequest {
|
|
|
280
686
|
readonly orgName: string
|
|
281
687
|
}
|
|
282
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Request parameters for promoteDisasterRecovery operation in DisasterRecoveryApi.
|
|
691
|
+
* @export
|
|
692
|
+
* @interface DisasterRecoveryApiPromoteDisasterRecoveryRequest
|
|
693
|
+
*/
|
|
694
|
+
export interface DisasterRecoveryApiPromoteDisasterRecoveryRequest {
|
|
695
|
+
/**
|
|
696
|
+
* The ID of the disaster recovery instance
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof DisasterRecoveryApiPromoteDisasterRecovery
|
|
699
|
+
*/
|
|
700
|
+
readonly clusterID: string
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* name of the org
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof DisasterRecoveryApiPromoteDisasterRecovery
|
|
706
|
+
*/
|
|
707
|
+
readonly orgName: string
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @type {DisasterRecoveryPromote}
|
|
712
|
+
* @memberof DisasterRecoveryApiPromoteDisasterRecovery
|
|
713
|
+
*/
|
|
714
|
+
readonly body: DisasterRecoveryPromote
|
|
715
|
+
}
|
|
716
|
+
|
|
283
717
|
/**
|
|
284
718
|
* DisasterRecoveryApi - object-oriented interface
|
|
285
719
|
* @export
|
|
@@ -299,6 +733,42 @@ export class DisasterRecoveryApi extends BaseAPI implements DisasterRecoveryApiI
|
|
|
299
733
|
return DisasterRecoveryApiFp(this.configuration).createDisasterRecovery(requestParameters.parentClusterID, requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
300
734
|
}
|
|
301
735
|
|
|
736
|
+
/**
|
|
737
|
+
* Delete a specific disaster recovery instance
|
|
738
|
+
* @summary Delete a disaster recovery instance
|
|
739
|
+
* @param {DisasterRecoveryApiDeleteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
* @memberof DisasterRecoveryApi
|
|
743
|
+
*/
|
|
744
|
+
public deleteDisasterRecovery(requestParameters: DisasterRecoveryApiDeleteDisasterRecoveryRequest, options?: RawAxiosRequestConfig) {
|
|
745
|
+
return DisasterRecoveryApiFp(this.configuration).deleteDisasterRecovery(requestParameters.orgName, requestParameters.logicalInstanceID, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
750
|
+
* @summary Get switch history of a disaster recovery instance
|
|
751
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryHistoryRequest} requestParameters Request parameters.
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
* @memberof DisasterRecoveryApi
|
|
755
|
+
*/
|
|
756
|
+
public getDisasterRecoveryHistory(requestParameters: DisasterRecoveryApiGetDisasterRecoveryHistoryRequest, options?: RawAxiosRequestConfig) {
|
|
757
|
+
return DisasterRecoveryApiFp(this.configuration).getDisasterRecoveryHistory(requestParameters.clusterID, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
762
|
+
* @summary Retrieve Disaster Recovery Instance Status
|
|
763
|
+
* @param {DisasterRecoveryApiGetDisasterRecoveryStatusRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
* @memberof DisasterRecoveryApi
|
|
767
|
+
*/
|
|
768
|
+
public getDisasterRecoveryStatus(requestParameters: DisasterRecoveryApiGetDisasterRecoveryStatusRequest, options?: RawAxiosRequestConfig) {
|
|
769
|
+
return DisasterRecoveryApiFp(this.configuration).getDisasterRecoveryStatus(requestParameters.clusterID, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
770
|
+
}
|
|
771
|
+
|
|
302
772
|
/**
|
|
303
773
|
* Retrieve a list of disaster recovery instances for a specific database cluster.
|
|
304
774
|
* @summary List Disaster Recovery instances under the main cluster
|
|
@@ -310,5 +780,17 @@ export class DisasterRecoveryApi extends BaseAPI implements DisasterRecoveryApiI
|
|
|
310
780
|
public listDisasterRecovery(requestParameters: DisasterRecoveryApiListDisasterRecoveryRequest, options?: RawAxiosRequestConfig) {
|
|
311
781
|
return DisasterRecoveryApiFp(this.configuration).listDisasterRecovery(requestParameters.parentClusterID, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
312
782
|
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Promote the disaster recovery instance to the primary database instance.
|
|
786
|
+
* @summary Promote a disaster recovery instance to the main instance
|
|
787
|
+
* @param {DisasterRecoveryApiPromoteDisasterRecoveryRequest} requestParameters Request parameters.
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
* @memberof DisasterRecoveryApi
|
|
791
|
+
*/
|
|
792
|
+
public promoteDisasterRecovery(requestParameters: DisasterRecoveryApiPromoteDisasterRecoveryRequest, options?: RawAxiosRequestConfig) {
|
|
793
|
+
return DisasterRecoveryApiFp(this.configuration).promoteDisasterRecovery(requestParameters.clusterID, requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
794
|
+
}
|
|
313
795
|
}
|
|
314
796
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* the event type of disasterRecovery history, support values: [CreateInstance, DeleteInstance, Promote]
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const DisasterRecoveryEventType = {
|
|
24
|
+
CreateInstance: 'CreateInstance',
|
|
25
|
+
DeleteInstance: 'DeleteInstance',
|
|
26
|
+
Promote: 'Promote'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type DisasterRecoveryEventType = typeof DisasterRecoveryEventType[keyof typeof DisasterRecoveryEventType];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|