kb-cloud-client-typescript 2.3.48 → 2.3.50
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/organization-api.d.ts +211 -2
- package/dist/adminapi/apis/organization-api.d.ts.map +1 -1
- package/dist/adminapi/apis/organization-api.js +245 -5
- package/dist/adminapi/apis/organization-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +211 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +245 -5
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +8 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +8 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/component-option.d.ts +6 -0
- package/dist/adminapi/models/component-option.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +9 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/org-configuration-item.d.ts +31 -0
- package/dist/adminapi/models/org-configuration-item.d.ts.map +1 -0
- package/dist/adminapi/models/org-configuration-item.js +16 -0
- package/dist/adminapi/models/org-configuration-item.js.map +1 -0
- package/dist/adminapi/models/org-configuration-summary.d.ts +56 -0
- package/dist/adminapi/models/org-configuration-summary.d.ts.map +1 -0
- package/dist/adminapi/models/org-configuration-summary.js +16 -0
- package/dist/adminapi/models/org-configuration-summary.js.map +1 -0
- package/dist/adminapi/models/org-deletion-action.d.ts +22 -0
- package/dist/adminapi/models/org-deletion-action.d.ts.map +1 -0
- package/dist/adminapi/models/org-deletion-action.js +26 -0
- package/dist/adminapi/models/org-deletion-action.js.map +1 -0
- package/dist/adminapi/models/org-deletion-blocker.d.ts +37 -0
- package/dist/adminapi/models/org-deletion-blocker.d.ts.map +1 -0
- package/dist/adminapi/models/org-deletion-blocker.js +16 -0
- package/dist/adminapi/models/org-deletion-blocker.js.map +1 -0
- package/dist/adminapi/models/org-deletion-preview.d.ts +82 -0
- package/dist/adminapi/models/org-deletion-preview.d.ts.map +1 -0
- package/dist/adminapi/models/org-deletion-preview.js +16 -0
- package/dist/adminapi/models/org-deletion-preview.js.map +1 -0
- package/dist/adminapi/models/org-lifecycle-request.d.ts +31 -0
- package/dist/adminapi/models/org-lifecycle-request.d.ts.map +1 -0
- package/dist/adminapi/models/org-lifecycle-request.js +16 -0
- package/dist/adminapi/models/org-lifecycle-request.js.map +1 -0
- package/dist/adminapi/models/org-purge-result.d.ts +37 -0
- package/dist/adminapi/models/org-purge-result.d.ts.map +1 -0
- package/dist/adminapi/models/org-purge-result.js +16 -0
- package/dist/adminapi/models/org-purge-result.js.map +1 -0
- package/dist/adminapi/models/org-retained-resource.d.ts +37 -0
- package/dist/adminapi/models/org-retained-resource.d.ts.map +1 -0
- package/dist/adminapi/models/org-retained-resource.js +16 -0
- package/dist/adminapi/models/org-retained-resource.js.map +1 -0
- package/dist/adminapi/models/org-status.d.ts +25 -0
- package/dist/adminapi/models/org-status.d.ts.map +1 -0
- package/dist/adminapi/models/org-status.js +29 -0
- package/dist/adminapi/models/org-status.js.map +1 -0
- package/dist/adminapi/models/org.d.ts +25 -0
- package/dist/adminapi/models/org.d.ts.map +1 -1
- package/dist/adminapi/models/organization-item.d.ts +31 -0
- package/dist/adminapi/models/organization-item.d.ts.map +1 -1
- package/dist/adminapi/models/restore-create.d.ts +1 -1
- package/dist/internalapi/apis/environment-api.d.ts +63 -0
- package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
- package/dist/internalapi/apis/environment-api.js +72 -0
- package/dist/internalapi/apis/environment-api.js.map +1 -1
- 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/dist/internalapi/models/component-item.d.ts +8 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/apis/organization-api.d.ts +211 -2
- package/dist/openapi/apis/organization-api.d.ts.map +1 -1
- package/dist/openapi/apis/organization-api.js +245 -5
- package/dist/openapi/apis/organization-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +211 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +245 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +8 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +8 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/component-option.d.ts +6 -0
- package/dist/openapi/models/component-option.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +9 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +9 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/org-configuration-item.d.ts +31 -0
- package/dist/openapi/models/org-configuration-item.d.ts.map +1 -0
- package/dist/openapi/models/org-configuration-item.js +16 -0
- package/dist/openapi/models/org-configuration-item.js.map +1 -0
- package/dist/openapi/models/org-configuration-summary.d.ts +56 -0
- package/dist/openapi/models/org-configuration-summary.d.ts.map +1 -0
- package/dist/openapi/models/org-configuration-summary.js +16 -0
- package/dist/openapi/models/org-configuration-summary.js.map +1 -0
- package/dist/openapi/models/org-deletion-action.d.ts +22 -0
- package/dist/openapi/models/org-deletion-action.d.ts.map +1 -0
- package/dist/openapi/models/org-deletion-action.js +26 -0
- package/dist/openapi/models/org-deletion-action.js.map +1 -0
- package/dist/openapi/models/org-deletion-blocker.d.ts +37 -0
- package/dist/openapi/models/org-deletion-blocker.d.ts.map +1 -0
- package/dist/openapi/models/org-deletion-blocker.js +16 -0
- package/dist/openapi/models/org-deletion-blocker.js.map +1 -0
- package/dist/openapi/models/org-deletion-preview.d.ts +82 -0
- package/dist/openapi/models/org-deletion-preview.d.ts.map +1 -0
- package/dist/openapi/models/org-deletion-preview.js +16 -0
- package/dist/openapi/models/org-deletion-preview.js.map +1 -0
- package/dist/openapi/models/org-lifecycle-request.d.ts +31 -0
- package/dist/openapi/models/org-lifecycle-request.d.ts.map +1 -0
- package/dist/openapi/models/org-lifecycle-request.js +16 -0
- package/dist/openapi/models/org-lifecycle-request.js.map +1 -0
- package/dist/openapi/models/org-purge-result.d.ts +37 -0
- package/dist/openapi/models/org-purge-result.d.ts.map +1 -0
- package/dist/openapi/models/org-purge-result.js +16 -0
- package/dist/openapi/models/org-purge-result.js.map +1 -0
- package/dist/openapi/models/org-retained-resource.d.ts +37 -0
- package/dist/openapi/models/org-retained-resource.d.ts.map +1 -0
- package/dist/openapi/models/org-retained-resource.js +16 -0
- package/dist/openapi/models/org-retained-resource.js.map +1 -0
- package/dist/openapi/models/org-status.d.ts +25 -0
- package/dist/openapi/models/org-status.d.ts.map +1 -0
- package/dist/openapi/models/org-status.js +29 -0
- package/dist/openapi/models/org-status.js.map +1 -0
- package/dist/openapi/models/org.d.ts +25 -0
- package/dist/openapi/models/org.d.ts.map +1 -1
- package/dist/openapi/models/restore-create.d.ts +1 -1
- package/dist/openapi/models/user-org.d.ts +25 -0
- package/dist/openapi/models/user-org.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +9 -0
- package/src/adminapi/apis/organization-api.ts +386 -5
- package/src/adminapi/apis/shared-api.ts +386 -5
- package/src/adminapi/models/component-item-create.ts +6 -0
- package/src/adminapi/models/component-item.ts +6 -0
- package/src/adminapi/models/component-option.ts +6 -0
- package/src/adminapi/models/index.ts +9 -0
- package/src/adminapi/models/org-configuration-item.ts +36 -0
- package/src/adminapi/models/org-configuration-summary.ts +63 -0
- package/src/adminapi/models/org-deletion-action.ts +31 -0
- package/src/adminapi/models/org-deletion-blocker.ts +42 -0
- package/src/adminapi/models/org-deletion-preview.ts +93 -0
- package/src/adminapi/models/org-lifecycle-request.ts +36 -0
- package/src/adminapi/models/org-purge-result.ts +42 -0
- package/src/adminapi/models/org-retained-resource.ts +42 -0
- package/src/adminapi/models/org-status.ts +34 -0
- package/src/adminapi/models/org.ts +29 -0
- package/src/adminapi/models/organization-item.ts +35 -0
- package/src/adminapi/models/restore-create.ts +1 -1
- package/src/adminapi.yaml +320 -1
- package/src/internalapi/apis/environment-api.ts +110 -0
- package/src/internalapi/apis/recycle-bin-cluster-api.ts +29 -14
- package/src/internalapi/models/component-item.ts +6 -0
- package/src/internalapi.yaml +38 -3
- package/src/openapi/.openapi-generator/FILES +9 -0
- package/src/openapi/apis/organization-api.ts +386 -5
- package/src/openapi/apis/shared-api.ts +386 -5
- package/src/openapi/models/component-item-create.ts +6 -0
- package/src/openapi/models/component-item.ts +6 -0
- package/src/openapi/models/component-option.ts +6 -0
- package/src/openapi/models/index.ts +9 -0
- package/src/openapi/models/org-configuration-item.ts +36 -0
- package/src/openapi/models/org-configuration-summary.ts +63 -0
- package/src/openapi/models/org-deletion-action.ts +31 -0
- package/src/openapi/models/org-deletion-blocker.ts +42 -0
- package/src/openapi/models/org-deletion-preview.ts +93 -0
- package/src/openapi/models/org-lifecycle-request.ts +36 -0
- package/src/openapi/models/org-purge-result.ts +42 -0
- package/src/openapi/models/org-retained-resource.ts +42 -0
- package/src/openapi/models/org-status.ts +34 -0
- package/src/openapi/models/org.ts +29 -0
- package/src/openapi/models/restore-create.ts +1 -1
- package/src/openapi/models/user-org.ts +29 -0
- package/src/openapi.yaml +316 -1
|
@@ -28,6 +28,14 @@ import type { Org } from '../models';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { OrgCreate } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
+
import type { OrgDeletionAction } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { OrgDeletionPreview } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { OrgLifecycleRequest } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { OrgPurgeResult } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
31
39
|
import type { OrgUpdate } from '../models';
|
|
32
40
|
// @ts-ignore
|
|
33
41
|
import type { OrganizationList } from '../models';
|
|
@@ -84,12 +92,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
84
92
|
* partially delete the specified org
|
|
85
93
|
* @summary Delete organization
|
|
86
94
|
* @param {string} orgName name of the Org
|
|
95
|
+
* @param {string} orgID
|
|
87
96
|
* @param {*} [options] Override http request option.
|
|
88
97
|
* @throws {RequiredError}
|
|
89
98
|
*/
|
|
90
|
-
deleteOrg: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
deleteOrg: async (orgName: string, orgID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
100
|
// verify required parameter 'orgName' is not null or undefined
|
|
92
101
|
assertParamExists('deleteOrg', 'orgName', orgName)
|
|
102
|
+
// verify required parameter 'orgID' is not null or undefined
|
|
103
|
+
assertParamExists('deleteOrg', 'orgID', orgID)
|
|
93
104
|
const localVarPath = `/admin/v1/organizations/{orgName}`
|
|
94
105
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
95
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -110,6 +121,10 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
110
121
|
// authentication DigestAuth required
|
|
111
122
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
112
123
|
|
|
124
|
+
if (orgID !== undefined) {
|
|
125
|
+
localVarQueryParameter['orgID'] = orgID;
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
|
|
114
129
|
|
|
115
130
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -332,6 +347,108 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
332
347
|
options: localVarRequestOptions,
|
|
333
348
|
};
|
|
334
349
|
},
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @summary Preview organization deletion or purge
|
|
353
|
+
* @param {string} orgName
|
|
354
|
+
* @param {string} orgID
|
|
355
|
+
* @param {OrgDeletionAction} action
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
previewOrgDeletion: async (orgName: string, orgID: string, action: OrgDeletionAction, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
360
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
361
|
+
assertParamExists('previewOrgDeletion', 'orgName', orgName)
|
|
362
|
+
// verify required parameter 'orgID' is not null or undefined
|
|
363
|
+
assertParamExists('previewOrgDeletion', 'orgID', orgID)
|
|
364
|
+
// verify required parameter 'action' is not null or undefined
|
|
365
|
+
assertParamExists('previewOrgDeletion', 'action', action)
|
|
366
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/deletionPreview`
|
|
367
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
370
|
+
let baseOptions;
|
|
371
|
+
if (configuration) {
|
|
372
|
+
baseOptions = configuration.baseOptions;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
376
|
+
const localVarHeaderParameter = {} as any;
|
|
377
|
+
const localVarQueryParameter = {} as any;
|
|
378
|
+
|
|
379
|
+
// authentication BearerToken required
|
|
380
|
+
// http bearer authentication required
|
|
381
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
382
|
+
|
|
383
|
+
// authentication DigestAuth required
|
|
384
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
385
|
+
|
|
386
|
+
if (orgID !== undefined) {
|
|
387
|
+
localVarQueryParameter['orgID'] = orgID;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (action !== undefined) {
|
|
391
|
+
localVarQueryParameter['action'] = action;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
399
|
+
|
|
400
|
+
return {
|
|
401
|
+
url: toPathString(localVarUrlObj),
|
|
402
|
+
options: localVarRequestOptions,
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @summary Purge organization
|
|
408
|
+
* @param {string} orgName
|
|
409
|
+
* @param {OrgLifecycleRequest} orgLifecycleRequest
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
purgeOrg: async (orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
414
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
415
|
+
assertParamExists('purgeOrg', 'orgName', orgName)
|
|
416
|
+
// verify required parameter 'orgLifecycleRequest' is not null or undefined
|
|
417
|
+
assertParamExists('purgeOrg', 'orgLifecycleRequest', orgLifecycleRequest)
|
|
418
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/purge`
|
|
419
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
428
|
+
const localVarHeaderParameter = {} as any;
|
|
429
|
+
const localVarQueryParameter = {} as any;
|
|
430
|
+
|
|
431
|
+
// authentication BearerToken required
|
|
432
|
+
// http bearer authentication required
|
|
433
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
434
|
+
|
|
435
|
+
// authentication DigestAuth required
|
|
436
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
441
|
+
|
|
442
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
444
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
445
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orgLifecycleRequest, localVarRequestOptions, configuration)
|
|
446
|
+
|
|
447
|
+
return {
|
|
448
|
+
url: toPathString(localVarUrlObj),
|
|
449
|
+
options: localVarRequestOptions,
|
|
450
|
+
};
|
|
451
|
+
},
|
|
335
452
|
/**
|
|
336
453
|
* read the specified Org
|
|
337
454
|
* @summary Get organization
|
|
@@ -373,6 +490,53 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
373
490
|
options: localVarRequestOptions,
|
|
374
491
|
};
|
|
375
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Restore organization
|
|
496
|
+
* @param {string} orgName
|
|
497
|
+
* @param {OrgLifecycleRequest} orgLifecycleRequest
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
restoreOrg: async (orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
502
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
503
|
+
assertParamExists('restoreOrg', 'orgName', orgName)
|
|
504
|
+
// verify required parameter 'orgLifecycleRequest' is not null or undefined
|
|
505
|
+
assertParamExists('restoreOrg', 'orgLifecycleRequest', orgLifecycleRequest)
|
|
506
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/restoreOrganization`
|
|
507
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
509
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
|
+
let baseOptions;
|
|
511
|
+
if (configuration) {
|
|
512
|
+
baseOptions = configuration.baseOptions;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
516
|
+
const localVarHeaderParameter = {} as any;
|
|
517
|
+
const localVarQueryParameter = {} as any;
|
|
518
|
+
|
|
519
|
+
// authentication BearerToken required
|
|
520
|
+
// http bearer authentication required
|
|
521
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
522
|
+
|
|
523
|
+
// authentication DigestAuth required
|
|
524
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
529
|
+
|
|
530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
532
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
533
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orgLifecycleRequest, localVarRequestOptions, configuration)
|
|
534
|
+
|
|
535
|
+
return {
|
|
536
|
+
url: toPathString(localVarUrlObj),
|
|
537
|
+
options: localVarRequestOptions,
|
|
538
|
+
};
|
|
539
|
+
},
|
|
376
540
|
/**
|
|
377
541
|
* unfreeze the member in org
|
|
378
542
|
* @summary unfreeze the member in org
|
|
@@ -445,11 +609,12 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
445
609
|
* partially delete the specified org
|
|
446
610
|
* @summary Delete organization
|
|
447
611
|
* @param {string} orgName name of the Org
|
|
612
|
+
* @param {string} orgID
|
|
448
613
|
* @param {*} [options] Override http request option.
|
|
449
614
|
* @throws {RequiredError}
|
|
450
615
|
*/
|
|
451
|
-
async deleteOrg(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
452
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrg(orgName, options);
|
|
616
|
+
async deleteOrg(orgName: string, orgID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrg(orgName, orgID, options);
|
|
453
618
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
454
619
|
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.deleteOrg']?.[localVarOperationServerIndex]?.url;
|
|
455
620
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -520,6 +685,35 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
520
685
|
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.patchOrg']?.[localVarOperationServerIndex]?.url;
|
|
521
686
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
522
687
|
},
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @summary Preview organization deletion or purge
|
|
691
|
+
* @param {string} orgName
|
|
692
|
+
* @param {string} orgID
|
|
693
|
+
* @param {OrgDeletionAction} action
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
async previewOrgDeletion(orgName: string, orgID: string, action: OrgDeletionAction, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgDeletionPreview>> {
|
|
698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewOrgDeletion(orgName, orgID, action, options);
|
|
699
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
700
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.previewOrgDeletion']?.[localVarOperationServerIndex]?.url;
|
|
701
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary Purge organization
|
|
706
|
+
* @param {string} orgName
|
|
707
|
+
* @param {OrgLifecycleRequest} orgLifecycleRequest
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
async purgeOrg(orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgPurgeResult>> {
|
|
712
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.purgeOrg(orgName, orgLifecycleRequest, options);
|
|
713
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
714
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.purgeOrg']?.[localVarOperationServerIndex]?.url;
|
|
715
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
716
|
+
},
|
|
523
717
|
/**
|
|
524
718
|
* read the specified Org
|
|
525
719
|
* @summary Get organization
|
|
@@ -533,6 +727,20 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
533
727
|
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.readOrg']?.[localVarOperationServerIndex]?.url;
|
|
534
728
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
535
729
|
},
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @summary Restore organization
|
|
733
|
+
* @param {string} orgName
|
|
734
|
+
* @param {OrgLifecycleRequest} orgLifecycleRequest
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
async restoreOrg(orgName: string, orgLifecycleRequest: OrgLifecycleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Org>> {
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreOrg(orgName, orgLifecycleRequest, options);
|
|
740
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
741
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationApi.restoreOrg']?.[localVarOperationServerIndex]?.url;
|
|
742
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
743
|
+
},
|
|
536
744
|
/**
|
|
537
745
|
* unfreeze the member in org
|
|
538
746
|
* @summary unfreeze the member in org
|
|
@@ -575,7 +783,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
575
783
|
* @throws {RequiredError}
|
|
576
784
|
*/
|
|
577
785
|
deleteOrg(requestParameters: OrganizationApiDeleteOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
578
|
-
return localVarFp.deleteOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
786
|
+
return localVarFp.deleteOrg(requestParameters.orgName, requestParameters.orgID, options).then((request) => request(axios, basePath));
|
|
579
787
|
},
|
|
580
788
|
/**
|
|
581
789
|
* disable the organization
|
|
@@ -626,6 +834,26 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
626
834
|
patchOrg(requestParameters: OrganizationApiPatchOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org> {
|
|
627
835
|
return localVarFp.patchOrg(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
628
836
|
},
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @summary Preview organization deletion or purge
|
|
840
|
+
* @param {OrganizationApiPreviewOrgDeletionRequest} requestParameters Request parameters.
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
previewOrgDeletion(requestParameters: OrganizationApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgDeletionPreview> {
|
|
845
|
+
return localVarFp.previewOrgDeletion(requestParameters.orgName, requestParameters.orgID, requestParameters.action, options).then((request) => request(axios, basePath));
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
*
|
|
849
|
+
* @summary Purge organization
|
|
850
|
+
* @param {OrganizationApiPurgeOrgRequest} requestParameters Request parameters.
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
purgeOrg(requestParameters: OrganizationApiPurgeOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgPurgeResult> {
|
|
855
|
+
return localVarFp.purgeOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(axios, basePath));
|
|
856
|
+
},
|
|
629
857
|
/**
|
|
630
858
|
* read the specified Org
|
|
631
859
|
* @summary Get organization
|
|
@@ -636,6 +864,16 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
636
864
|
readOrg(requestParameters: OrganizationApiReadOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org> {
|
|
637
865
|
return localVarFp.readOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
638
866
|
},
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @summary Restore organization
|
|
870
|
+
* @param {OrganizationApiRestoreOrgRequest} requestParameters Request parameters.
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
restoreOrg(requestParameters: OrganizationApiRestoreOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org> {
|
|
875
|
+
return localVarFp.restoreOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
639
877
|
/**
|
|
640
878
|
* unfreeze the member in org
|
|
641
879
|
* @summary unfreeze the member in org
|
|
@@ -724,6 +962,26 @@ export interface OrganizationApiInterface {
|
|
|
724
962
|
*/
|
|
725
963
|
patchOrg(requestParameters: OrganizationApiPatchOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org>;
|
|
726
964
|
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @summary Preview organization deletion or purge
|
|
968
|
+
* @param {OrganizationApiPreviewOrgDeletionRequest} requestParameters Request parameters.
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
* @memberof OrganizationApiInterface
|
|
972
|
+
*/
|
|
973
|
+
previewOrgDeletion(requestParameters: OrganizationApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgDeletionPreview>;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @summary Purge organization
|
|
978
|
+
* @param {OrganizationApiPurgeOrgRequest} requestParameters Request parameters.
|
|
979
|
+
* @param {*} [options] Override http request option.
|
|
980
|
+
* @throws {RequiredError}
|
|
981
|
+
* @memberof OrganizationApiInterface
|
|
982
|
+
*/
|
|
983
|
+
purgeOrg(requestParameters: OrganizationApiPurgeOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgPurgeResult>;
|
|
984
|
+
|
|
727
985
|
/**
|
|
728
986
|
* read the specified Org
|
|
729
987
|
* @summary Get organization
|
|
@@ -734,6 +992,16 @@ export interface OrganizationApiInterface {
|
|
|
734
992
|
*/
|
|
735
993
|
readOrg(requestParameters: OrganizationApiReadOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org>;
|
|
736
994
|
|
|
995
|
+
/**
|
|
996
|
+
*
|
|
997
|
+
* @summary Restore organization
|
|
998
|
+
* @param {OrganizationApiRestoreOrgRequest} requestParameters Request parameters.
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
* @memberof OrganizationApiInterface
|
|
1002
|
+
*/
|
|
1003
|
+
restoreOrg(requestParameters: OrganizationApiRestoreOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Org>;
|
|
1004
|
+
|
|
737
1005
|
/**
|
|
738
1006
|
* unfreeze the member in org
|
|
739
1007
|
* @summary unfreeze the member in org
|
|
@@ -772,6 +1040,13 @@ export interface OrganizationApiDeleteOrgRequest {
|
|
|
772
1040
|
* @memberof OrganizationApiDeleteOrg
|
|
773
1041
|
*/
|
|
774
1042
|
readonly orgName: string
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
*
|
|
1046
|
+
* @type {string}
|
|
1047
|
+
* @memberof OrganizationApiDeleteOrg
|
|
1048
|
+
*/
|
|
1049
|
+
readonly orgID: string
|
|
775
1050
|
}
|
|
776
1051
|
|
|
777
1052
|
/**
|
|
@@ -844,6 +1119,55 @@ export interface OrganizationApiPatchOrgRequest {
|
|
|
844
1119
|
readonly body: OrgUpdate
|
|
845
1120
|
}
|
|
846
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* Request parameters for previewOrgDeletion operation in OrganizationApi.
|
|
1124
|
+
* @export
|
|
1125
|
+
* @interface OrganizationApiPreviewOrgDeletionRequest
|
|
1126
|
+
*/
|
|
1127
|
+
export interface OrganizationApiPreviewOrgDeletionRequest {
|
|
1128
|
+
/**
|
|
1129
|
+
*
|
|
1130
|
+
* @type {string}
|
|
1131
|
+
* @memberof OrganizationApiPreviewOrgDeletion
|
|
1132
|
+
*/
|
|
1133
|
+
readonly orgName: string
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @type {string}
|
|
1138
|
+
* @memberof OrganizationApiPreviewOrgDeletion
|
|
1139
|
+
*/
|
|
1140
|
+
readonly orgID: string
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
*
|
|
1144
|
+
* @type {OrgDeletionAction}
|
|
1145
|
+
* @memberof OrganizationApiPreviewOrgDeletion
|
|
1146
|
+
*/
|
|
1147
|
+
readonly action: OrgDeletionAction
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Request parameters for purgeOrg operation in OrganizationApi.
|
|
1152
|
+
* @export
|
|
1153
|
+
* @interface OrganizationApiPurgeOrgRequest
|
|
1154
|
+
*/
|
|
1155
|
+
export interface OrganizationApiPurgeOrgRequest {
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @type {string}
|
|
1159
|
+
* @memberof OrganizationApiPurgeOrg
|
|
1160
|
+
*/
|
|
1161
|
+
readonly orgName: string
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
*
|
|
1165
|
+
* @type {OrgLifecycleRequest}
|
|
1166
|
+
* @memberof OrganizationApiPurgeOrg
|
|
1167
|
+
*/
|
|
1168
|
+
readonly orgLifecycleRequest: OrgLifecycleRequest
|
|
1169
|
+
}
|
|
1170
|
+
|
|
847
1171
|
/**
|
|
848
1172
|
* Request parameters for readOrg operation in OrganizationApi.
|
|
849
1173
|
* @export
|
|
@@ -858,6 +1182,27 @@ export interface OrganizationApiReadOrgRequest {
|
|
|
858
1182
|
readonly orgName: string
|
|
859
1183
|
}
|
|
860
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* Request parameters for restoreOrg operation in OrganizationApi.
|
|
1187
|
+
* @export
|
|
1188
|
+
* @interface OrganizationApiRestoreOrgRequest
|
|
1189
|
+
*/
|
|
1190
|
+
export interface OrganizationApiRestoreOrgRequest {
|
|
1191
|
+
/**
|
|
1192
|
+
*
|
|
1193
|
+
* @type {string}
|
|
1194
|
+
* @memberof OrganizationApiRestoreOrg
|
|
1195
|
+
*/
|
|
1196
|
+
readonly orgName: string
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
*
|
|
1200
|
+
* @type {OrgLifecycleRequest}
|
|
1201
|
+
* @memberof OrganizationApiRestoreOrg
|
|
1202
|
+
*/
|
|
1203
|
+
readonly orgLifecycleRequest: OrgLifecycleRequest
|
|
1204
|
+
}
|
|
1205
|
+
|
|
861
1206
|
/**
|
|
862
1207
|
* Request parameters for unfreezeMember operation in OrganizationApi.
|
|
863
1208
|
* @export
|
|
@@ -907,7 +1252,7 @@ export class OrganizationApi extends BaseAPI implements OrganizationApiInterface
|
|
|
907
1252
|
* @memberof OrganizationApi
|
|
908
1253
|
*/
|
|
909
1254
|
public deleteOrg(requestParameters: OrganizationApiDeleteOrgRequest, options?: RawAxiosRequestConfig) {
|
|
910
|
-
return OrganizationApiFp(this.configuration).deleteOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
1255
|
+
return OrganizationApiFp(this.configuration).deleteOrg(requestParameters.orgName, requestParameters.orgID, options).then((request) => request(this.axios, this.basePath));
|
|
911
1256
|
}
|
|
912
1257
|
|
|
913
1258
|
/**
|
|
@@ -969,6 +1314,30 @@ export class OrganizationApi extends BaseAPI implements OrganizationApiInterface
|
|
|
969
1314
|
return OrganizationApiFp(this.configuration).patchOrg(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
970
1315
|
}
|
|
971
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @summary Preview organization deletion or purge
|
|
1320
|
+
* @param {OrganizationApiPreviewOrgDeletionRequest} requestParameters Request parameters.
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
* @memberof OrganizationApi
|
|
1324
|
+
*/
|
|
1325
|
+
public previewOrgDeletion(requestParameters: OrganizationApiPreviewOrgDeletionRequest, options?: RawAxiosRequestConfig) {
|
|
1326
|
+
return OrganizationApiFp(this.configuration).previewOrgDeletion(requestParameters.orgName, requestParameters.orgID, requestParameters.action, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @summary Purge organization
|
|
1332
|
+
* @param {OrganizationApiPurgeOrgRequest} requestParameters Request parameters.
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
* @memberof OrganizationApi
|
|
1336
|
+
*/
|
|
1337
|
+
public purgeOrg(requestParameters: OrganizationApiPurgeOrgRequest, options?: RawAxiosRequestConfig) {
|
|
1338
|
+
return OrganizationApiFp(this.configuration).purgeOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1339
|
+
}
|
|
1340
|
+
|
|
972
1341
|
/**
|
|
973
1342
|
* read the specified Org
|
|
974
1343
|
* @summary Get organization
|
|
@@ -981,6 +1350,18 @@ export class OrganizationApi extends BaseAPI implements OrganizationApiInterface
|
|
|
981
1350
|
return OrganizationApiFp(this.configuration).readOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
982
1351
|
}
|
|
983
1352
|
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @summary Restore organization
|
|
1356
|
+
* @param {OrganizationApiRestoreOrgRequest} requestParameters Request parameters.
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
* @memberof OrganizationApi
|
|
1360
|
+
*/
|
|
1361
|
+
public restoreOrg(requestParameters: OrganizationApiRestoreOrgRequest, options?: RawAxiosRequestConfig) {
|
|
1362
|
+
return OrganizationApiFp(this.configuration).restoreOrg(requestParameters.orgName, requestParameters.orgLifecycleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1363
|
+
}
|
|
1364
|
+
|
|
984
1365
|
/**
|
|
985
1366
|
* unfreeze the member in org
|
|
986
1367
|
* @summary unfreeze the member in org
|