@cosmotech/api-ts 0.1.14 → 2.0.4
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/.github/workflows/publish.yaml +1 -1
- package/README.md +2 -2
- package/api.ts +1760 -499
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +855 -222
- package/dist/api.js +1751 -341
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/package-lock.json +0 -33
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 2.0.4-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,25 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* a RBAC by component
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ComponentRolePermissions
|
|
28
|
+
*/
|
|
29
|
+
export interface ComponentRolePermissions {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ComponentRolePermissions
|
|
34
|
+
*/
|
|
35
|
+
'component'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
39
|
+
* @memberof ComponentRolePermissions
|
|
40
|
+
*/
|
|
41
|
+
'roles'?: { [key: string]: Array<string>; };
|
|
42
|
+
}
|
|
24
43
|
/**
|
|
25
44
|
* a version of a Connector
|
|
26
45
|
* @export
|
|
@@ -363,16 +382,54 @@ export interface Organization {
|
|
|
363
382
|
'ownerId'?: string;
|
|
364
383
|
/**
|
|
365
384
|
*
|
|
366
|
-
* @type {
|
|
385
|
+
* @type {OrganizationServices}
|
|
367
386
|
* @memberof Organization
|
|
368
387
|
*/
|
|
369
|
-
'
|
|
388
|
+
'services'?: OrganizationServices;
|
|
370
389
|
/**
|
|
371
390
|
*
|
|
372
|
-
* @type {
|
|
391
|
+
* @type {OrganizationSecurity}
|
|
373
392
|
* @memberof Organization
|
|
374
393
|
*/
|
|
375
|
-
'
|
|
394
|
+
'security'?: OrganizationSecurity;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* a Organization access control item
|
|
398
|
+
* @export
|
|
399
|
+
* @interface OrganizationAccessControl
|
|
400
|
+
*/
|
|
401
|
+
export interface OrganizationAccessControl {
|
|
402
|
+
/**
|
|
403
|
+
* the identity id
|
|
404
|
+
* @type {string}
|
|
405
|
+
* @memberof OrganizationAccessControl
|
|
406
|
+
*/
|
|
407
|
+
'id': string;
|
|
408
|
+
/**
|
|
409
|
+
* a role
|
|
410
|
+
* @type {string}
|
|
411
|
+
* @memberof OrganizationAccessControl
|
|
412
|
+
*/
|
|
413
|
+
'role': string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* the Organization security information
|
|
417
|
+
* @export
|
|
418
|
+
* @interface OrganizationSecurity
|
|
419
|
+
*/
|
|
420
|
+
export interface OrganizationSecurity {
|
|
421
|
+
/**
|
|
422
|
+
* the role by default
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof OrganizationSecurity
|
|
425
|
+
*/
|
|
426
|
+
'default': string;
|
|
427
|
+
/**
|
|
428
|
+
* the list which can access this Organization with detailed access control information
|
|
429
|
+
* @type {Array<OrganizationAccessControl>}
|
|
430
|
+
* @memberof OrganizationSecurity
|
|
431
|
+
*/
|
|
432
|
+
'accessControlList': Array<OrganizationAccessControl>;
|
|
376
433
|
}
|
|
377
434
|
/**
|
|
378
435
|
* a cloud service resource
|
|
@@ -436,41 +493,6 @@ export interface OrganizationServices {
|
|
|
436
493
|
*/
|
|
437
494
|
'solutionsContainerRegistry'?: OrganizationService;
|
|
438
495
|
}
|
|
439
|
-
/**
|
|
440
|
-
* a User
|
|
441
|
-
* @export
|
|
442
|
-
* @interface OrganizationUser
|
|
443
|
-
*/
|
|
444
|
-
export interface OrganizationUser {
|
|
445
|
-
/**
|
|
446
|
-
* the User unique identifier, in response
|
|
447
|
-
* @type {string}
|
|
448
|
-
* @memberof OrganizationUser
|
|
449
|
-
*/
|
|
450
|
-
'id'?: string;
|
|
451
|
-
/**
|
|
452
|
-
* the User name
|
|
453
|
-
* @type {string}
|
|
454
|
-
* @memberof OrganizationUser
|
|
455
|
-
*/
|
|
456
|
-
'name'?: string;
|
|
457
|
-
/**
|
|
458
|
-
* the User\'s roles for the Organization
|
|
459
|
-
* @type {Array<string>}
|
|
460
|
-
* @memberof OrganizationUser
|
|
461
|
-
*/
|
|
462
|
-
'roles': Array<OrganizationUserRolesEnum>;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export const OrganizationUserRolesEnum = {
|
|
466
|
-
Admin: 'Admin',
|
|
467
|
-
User: 'User',
|
|
468
|
-
Viewer: 'Viewer',
|
|
469
|
-
Developer: 'Developer'
|
|
470
|
-
} as const;
|
|
471
|
-
|
|
472
|
-
export type OrganizationUserRolesEnum = typeof OrganizationUserRolesEnum[keyof typeof OrganizationUserRolesEnum];
|
|
473
|
-
|
|
474
496
|
/**
|
|
475
497
|
* a Solution Run Template
|
|
476
498
|
* @export
|
|
@@ -488,7 +510,7 @@ export interface RunTemplate {
|
|
|
488
510
|
* @type {string}
|
|
489
511
|
* @memberof RunTemplate
|
|
490
512
|
*/
|
|
491
|
-
'name'
|
|
513
|
+
'name'?: string;
|
|
492
514
|
/**
|
|
493
515
|
* the Run Template description
|
|
494
516
|
* @type {string}
|
|
@@ -651,6 +673,12 @@ export interface RunTemplate {
|
|
|
651
673
|
* @memberof RunTemplate
|
|
652
674
|
*/
|
|
653
675
|
'runTemplateSourceDir'?: string;
|
|
676
|
+
/**
|
|
677
|
+
* an optional duration in seconds in which a workflow is allowed to run
|
|
678
|
+
* @type {number}
|
|
679
|
+
* @memberof RunTemplate
|
|
680
|
+
*/
|
|
681
|
+
'executionTimeout'?: number;
|
|
654
682
|
}
|
|
655
683
|
/**
|
|
656
684
|
* the Run Template step handler identifier
|
|
@@ -687,13 +715,13 @@ export interface RunTemplateParameter {
|
|
|
687
715
|
* @type {{ [key: string]: string; }}
|
|
688
716
|
* @memberof RunTemplateParameter
|
|
689
717
|
*/
|
|
690
|
-
'labels'
|
|
718
|
+
'labels'?: { [key: string]: string; };
|
|
691
719
|
/**
|
|
692
720
|
* the variable type for the parameter. Basic types or special type %DATASETID%
|
|
693
721
|
* @type {string}
|
|
694
722
|
* @memberof RunTemplateParameter
|
|
695
723
|
*/
|
|
696
|
-
'varType'
|
|
724
|
+
'varType'?: string;
|
|
697
725
|
/**
|
|
698
726
|
* the default value for this parameter
|
|
699
727
|
* @type {string}
|
|
@@ -742,7 +770,7 @@ export interface RunTemplateParameterGroup {
|
|
|
742
770
|
* @type {{ [key: string]: string; }}
|
|
743
771
|
* @memberof RunTemplateParameterGroup
|
|
744
772
|
*/
|
|
745
|
-
'labels'
|
|
773
|
+
'labels'?: { [key: string]: string; };
|
|
746
774
|
/**
|
|
747
775
|
* does the group define a table
|
|
748
776
|
* @type {boolean}
|
|
@@ -766,7 +794,7 @@ export interface RunTemplateParameterGroup {
|
|
|
766
794
|
* @type {Array<string>}
|
|
767
795
|
* @memberof RunTemplateParameterGroup
|
|
768
796
|
*/
|
|
769
|
-
'parameters'
|
|
797
|
+
'parameters'?: Array<string>;
|
|
770
798
|
}
|
|
771
799
|
/**
|
|
772
800
|
* the value of Analysis parameter for a Scenario for this ScenarioRun
|
|
@@ -875,12 +903,6 @@ export interface Scenario {
|
|
|
875
903
|
* @memberof Scenario
|
|
876
904
|
*/
|
|
877
905
|
'workspaceId'?: string;
|
|
878
|
-
/**
|
|
879
|
-
* the list of users Id with their role
|
|
880
|
-
* @type {Array<ScenarioUser>}
|
|
881
|
-
* @memberof Scenario
|
|
882
|
-
*/
|
|
883
|
-
'users'?: Array<ScenarioUser>;
|
|
884
906
|
/**
|
|
885
907
|
*
|
|
886
908
|
* @type {ScenarioJobState}
|
|
@@ -953,6 +975,31 @@ export interface Scenario {
|
|
|
953
975
|
* @memberof Scenario
|
|
954
976
|
*/
|
|
955
977
|
'validationStatus'?: ScenarioValidationStatus;
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @type {ScenarioSecurity}
|
|
981
|
+
* @memberof Scenario
|
|
982
|
+
*/
|
|
983
|
+
'security'?: ScenarioSecurity;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* a Scenario access control item
|
|
987
|
+
* @export
|
|
988
|
+
* @interface ScenarioAccessControl
|
|
989
|
+
*/
|
|
990
|
+
export interface ScenarioAccessControl {
|
|
991
|
+
/**
|
|
992
|
+
* the identity id
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof ScenarioAccessControl
|
|
995
|
+
*/
|
|
996
|
+
'id': string;
|
|
997
|
+
/**
|
|
998
|
+
* a role
|
|
999
|
+
* @type {string}
|
|
1000
|
+
* @memberof ScenarioAccessControl
|
|
1001
|
+
*/
|
|
1002
|
+
'role': string;
|
|
956
1003
|
}
|
|
957
1004
|
/**
|
|
958
1005
|
* the difference between the values of a parameter
|
|
@@ -1670,38 +1717,24 @@ export interface ScenarioRunTemplateParameterValue {
|
|
|
1670
1717
|
'isInherited'?: boolean;
|
|
1671
1718
|
}
|
|
1672
1719
|
/**
|
|
1673
|
-
*
|
|
1720
|
+
* the Scenario security information
|
|
1674
1721
|
* @export
|
|
1675
|
-
* @interface
|
|
1722
|
+
* @interface ScenarioSecurity
|
|
1676
1723
|
*/
|
|
1677
|
-
export interface
|
|
1678
|
-
/**
|
|
1679
|
-
* the User id
|
|
1680
|
-
* @type {string}
|
|
1681
|
-
* @memberof ScenarioUser
|
|
1682
|
-
*/
|
|
1683
|
-
'id': string;
|
|
1724
|
+
export interface ScenarioSecurity {
|
|
1684
1725
|
/**
|
|
1685
|
-
* the
|
|
1726
|
+
* the role by default
|
|
1686
1727
|
* @type {string}
|
|
1687
|
-
* @memberof
|
|
1728
|
+
* @memberof ScenarioSecurity
|
|
1688
1729
|
*/
|
|
1689
|
-
'
|
|
1730
|
+
'default': string;
|
|
1690
1731
|
/**
|
|
1691
|
-
* the
|
|
1692
|
-
* @type {Array<
|
|
1693
|
-
* @memberof
|
|
1732
|
+
* the list which can access this Scenario with detailed access control information
|
|
1733
|
+
* @type {Array<ScenarioAccessControl>}
|
|
1734
|
+
* @memberof ScenarioSecurity
|
|
1694
1735
|
*/
|
|
1695
|
-
'
|
|
1736
|
+
'accessControlList': Array<ScenarioAccessControl>;
|
|
1696
1737
|
}
|
|
1697
|
-
|
|
1698
|
-
export const ScenarioUserRolesEnum = {
|
|
1699
|
-
Viewer: 'Viewer',
|
|
1700
|
-
Editor: 'Editor'
|
|
1701
|
-
} as const;
|
|
1702
|
-
|
|
1703
|
-
export type ScenarioUserRolesEnum = typeof ScenarioUserRolesEnum[keyof typeof ScenarioUserRolesEnum];
|
|
1704
|
-
|
|
1705
1738
|
/**
|
|
1706
1739
|
* the validation status of the scenario
|
|
1707
1740
|
* @export
|
|
@@ -1735,13 +1768,13 @@ export interface Solution {
|
|
|
1735
1768
|
* @type {string}
|
|
1736
1769
|
* @memberof Solution
|
|
1737
1770
|
*/
|
|
1738
|
-
'key'
|
|
1771
|
+
'key'?: string;
|
|
1739
1772
|
/**
|
|
1740
1773
|
* the Solution name
|
|
1741
1774
|
* @type {string}
|
|
1742
1775
|
* @memberof Solution
|
|
1743
1776
|
*/
|
|
1744
|
-
'name'
|
|
1777
|
+
'name'?: string;
|
|
1745
1778
|
/**
|
|
1746
1779
|
* the Solution description
|
|
1747
1780
|
* @type {string}
|
|
@@ -1753,7 +1786,7 @@ export interface Solution {
|
|
|
1753
1786
|
* @type {string}
|
|
1754
1787
|
* @memberof Solution
|
|
1755
1788
|
*/
|
|
1756
|
-
'repository'
|
|
1789
|
+
'repository'?: string;
|
|
1757
1790
|
/**
|
|
1758
1791
|
* the main Cosmo Tech simulator name used in standard Run Template
|
|
1759
1792
|
* @type {string}
|
|
@@ -1765,7 +1798,7 @@ export interface Solution {
|
|
|
1765
1798
|
* @type {string}
|
|
1766
1799
|
* @memberof Solution
|
|
1767
1800
|
*/
|
|
1768
|
-
'version'
|
|
1801
|
+
'version'?: string;
|
|
1769
1802
|
/**
|
|
1770
1803
|
* the User id which own this Solution
|
|
1771
1804
|
* @type {string}
|
|
@@ -1807,7 +1840,7 @@ export interface Solution {
|
|
|
1807
1840
|
* @type {Array<RunTemplate>}
|
|
1808
1841
|
* @memberof Solution
|
|
1809
1842
|
*/
|
|
1810
|
-
'runTemplates'
|
|
1843
|
+
'runTemplates'?: Array<RunTemplate>;
|
|
1811
1844
|
}
|
|
1812
1845
|
/**
|
|
1813
1846
|
* a User
|
|
@@ -2078,12 +2111,6 @@ export interface Workspace {
|
|
|
2078
2111
|
* @memberof Workspace
|
|
2079
2112
|
*/
|
|
2080
2113
|
'solution': WorkspaceSolution;
|
|
2081
|
-
/**
|
|
2082
|
-
* the list of users Id with their role
|
|
2083
|
-
* @type {Array<WorkspaceUser>}
|
|
2084
|
-
* @memberof Workspace
|
|
2085
|
-
*/
|
|
2086
|
-
'users'?: Array<WorkspaceUser>;
|
|
2087
2114
|
/**
|
|
2088
2115
|
*
|
|
2089
2116
|
* @type {WorkspaceWebApp}
|
|
@@ -2102,6 +2129,37 @@ export interface Workspace {
|
|
|
2102
2129
|
* @memberof Workspace
|
|
2103
2130
|
*/
|
|
2104
2131
|
'useDedicatedEventHubNamespace'?: boolean;
|
|
2132
|
+
/**
|
|
2133
|
+
* Set this property to false to not send scenario metada to Azure Event Hub Namespace for this Workspace. The Event Hub Namespace must be named \\\'<organization_id\\>-<workspace_id\\>\\\' (in lower case). This Namespace must also contain two Event Hubs named \\\'scenariometadata\\\' and \\\'scenariorunmetadata\\\'.
|
|
2134
|
+
* @type {boolean}
|
|
2135
|
+
* @memberof Workspace
|
|
2136
|
+
*/
|
|
2137
|
+
'sendScenarioMetadataToEventHub'?: boolean;
|
|
2138
|
+
/**
|
|
2139
|
+
*
|
|
2140
|
+
* @type {WorkspaceSecurity}
|
|
2141
|
+
* @memberof Workspace
|
|
2142
|
+
*/
|
|
2143
|
+
'security'?: WorkspaceSecurity;
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* a Workspace access control item
|
|
2147
|
+
* @export
|
|
2148
|
+
* @interface WorkspaceAccessControl
|
|
2149
|
+
*/
|
|
2150
|
+
export interface WorkspaceAccessControl {
|
|
2151
|
+
/**
|
|
2152
|
+
* the identity id
|
|
2153
|
+
* @type {string}
|
|
2154
|
+
* @memberof WorkspaceAccessControl
|
|
2155
|
+
*/
|
|
2156
|
+
'id': string;
|
|
2157
|
+
/**
|
|
2158
|
+
* a role
|
|
2159
|
+
* @type {string}
|
|
2160
|
+
* @memberof WorkspaceAccessControl
|
|
2161
|
+
*/
|
|
2162
|
+
'role': string;
|
|
2105
2163
|
}
|
|
2106
2164
|
/**
|
|
2107
2165
|
* a Workspace File resource
|
|
@@ -2116,6 +2174,25 @@ export interface WorkspaceFile {
|
|
|
2116
2174
|
*/
|
|
2117
2175
|
'fileName'?: string;
|
|
2118
2176
|
}
|
|
2177
|
+
/**
|
|
2178
|
+
* the workspace security information
|
|
2179
|
+
* @export
|
|
2180
|
+
* @interface WorkspaceSecurity
|
|
2181
|
+
*/
|
|
2182
|
+
export interface WorkspaceSecurity {
|
|
2183
|
+
/**
|
|
2184
|
+
* the role by default
|
|
2185
|
+
* @type {string}
|
|
2186
|
+
* @memberof WorkspaceSecurity
|
|
2187
|
+
*/
|
|
2188
|
+
'default': string;
|
|
2189
|
+
/**
|
|
2190
|
+
* the list which can access this Workspace with detailed access control information
|
|
2191
|
+
* @type {Array<WorkspaceAccessControl>}
|
|
2192
|
+
* @memberof WorkspaceSecurity
|
|
2193
|
+
*/
|
|
2194
|
+
'accessControlList': Array<WorkspaceAccessControl>;
|
|
2195
|
+
}
|
|
2119
2196
|
/**
|
|
2120
2197
|
* the Workspace Solution configuration
|
|
2121
2198
|
* @export
|
|
@@ -2141,40 +2218,6 @@ export interface WorkspaceSolution {
|
|
|
2141
2218
|
*/
|
|
2142
2219
|
'defaultRunTemplateDataset'?: { [key: string]: object; };
|
|
2143
2220
|
}
|
|
2144
|
-
/**
|
|
2145
|
-
* a Workspace user with roles
|
|
2146
|
-
* @export
|
|
2147
|
-
* @interface WorkspaceUser
|
|
2148
|
-
*/
|
|
2149
|
-
export interface WorkspaceUser {
|
|
2150
|
-
/**
|
|
2151
|
-
* the User id
|
|
2152
|
-
* @type {string}
|
|
2153
|
-
* @memberof WorkspaceUser
|
|
2154
|
-
*/
|
|
2155
|
-
'id': string;
|
|
2156
|
-
/**
|
|
2157
|
-
* the User name
|
|
2158
|
-
* @type {string}
|
|
2159
|
-
* @memberof WorkspaceUser
|
|
2160
|
-
*/
|
|
2161
|
-
'name'?: string;
|
|
2162
|
-
/**
|
|
2163
|
-
* the User roles
|
|
2164
|
-
* @type {Array<string>}
|
|
2165
|
-
* @memberof WorkspaceUser
|
|
2166
|
-
*/
|
|
2167
|
-
'roles': Array<WorkspaceUserRolesEnum>;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
export const WorkspaceUserRolesEnum = {
|
|
2171
|
-
Admin: 'Admin',
|
|
2172
|
-
User: 'User',
|
|
2173
|
-
Viewer: 'Viewer'
|
|
2174
|
-
} as const;
|
|
2175
|
-
|
|
2176
|
-
export type WorkspaceUserRolesEnum = typeof WorkspaceUserRolesEnum[keyof typeof WorkspaceUserRolesEnum];
|
|
2177
|
-
|
|
2178
2221
|
/**
|
|
2179
2222
|
* a Workspace Web Application
|
|
2180
2223
|
* @export
|
|
@@ -3283,18 +3326,18 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3283
3326
|
return {
|
|
3284
3327
|
/**
|
|
3285
3328
|
*
|
|
3286
|
-
* @summary
|
|
3329
|
+
* @summary add a control acccess to the Organization
|
|
3287
3330
|
* @param {string} organizationId the Organization identifier
|
|
3288
|
-
* @param {
|
|
3331
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3289
3332
|
* @param {*} [options] Override http request option.
|
|
3290
3333
|
* @throws {RequiredError}
|
|
3291
3334
|
*/
|
|
3292
|
-
|
|
3335
|
+
addOrganizationAccessControl: async (organizationId: string, organizationAccessControl: OrganizationAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3293
3336
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3294
|
-
assertParamExists('
|
|
3295
|
-
// verify required parameter '
|
|
3296
|
-
assertParamExists('
|
|
3297
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3337
|
+
assertParamExists('addOrganizationAccessControl', 'organizationId', organizationId)
|
|
3338
|
+
// verify required parameter 'organizationAccessControl' is not null or undefined
|
|
3339
|
+
assertParamExists('addOrganizationAccessControl', 'organizationAccessControl', organizationAccessControl)
|
|
3340
|
+
const localVarPath = `/organizations/{organization_id}/security/access`
|
|
3298
3341
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3299
3342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3300
3343
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3318,7 +3361,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3318
3361
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3319
3362
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3320
3363
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3321
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3364
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationAccessControl, localVarRequestOptions, configuration)
|
|
3322
3365
|
|
|
3323
3366
|
return {
|
|
3324
3367
|
url: toPathString(localVarUrlObj),
|
|
@@ -3399,15 +3442,12 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3399
3442
|
},
|
|
3400
3443
|
/**
|
|
3401
3444
|
*
|
|
3402
|
-
* @summary
|
|
3403
|
-
* @param {Organization} organization the Organization to register
|
|
3445
|
+
* @summary Get all permissions per components
|
|
3404
3446
|
* @param {*} [options] Override http request option.
|
|
3405
3447
|
* @throws {RequiredError}
|
|
3406
3448
|
*/
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
assertParamExists('registerOrganization', 'organization', organization)
|
|
3410
|
-
const localVarPath = `/organizations`;
|
|
3449
|
+
getAllPermissions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3450
|
+
const localVarPath = `/organizations/permissions`;
|
|
3411
3451
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3412
3452
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3413
3453
|
let baseOptions;
|
|
@@ -3415,7 +3455,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3415
3455
|
baseOptions = configuration.baseOptions;
|
|
3416
3456
|
}
|
|
3417
3457
|
|
|
3418
|
-
const localVarRequestOptions = { method: '
|
|
3458
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3419
3459
|
const localVarHeaderParameter = {} as any;
|
|
3420
3460
|
const localVarQueryParameter = {} as any;
|
|
3421
3461
|
|
|
@@ -3425,12 +3465,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3425
3465
|
|
|
3426
3466
|
|
|
3427
3467
|
|
|
3428
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3429
|
-
|
|
3430
3468
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3431
3469
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3432
3470
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3433
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3434
3471
|
|
|
3435
3472
|
return {
|
|
3436
3473
|
url: toPathString(localVarUrlObj),
|
|
@@ -3439,16 +3476,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3439
3476
|
},
|
|
3440
3477
|
/**
|
|
3441
3478
|
*
|
|
3442
|
-
* @summary
|
|
3479
|
+
* @summary get a control acccess for the Organization
|
|
3443
3480
|
* @param {string} organizationId the Organization identifier
|
|
3481
|
+
* @param {string} identityId the User identifier
|
|
3444
3482
|
* @param {*} [options] Override http request option.
|
|
3445
3483
|
* @throws {RequiredError}
|
|
3446
3484
|
*/
|
|
3447
|
-
|
|
3485
|
+
getOrganizationAccessControl: async (organizationId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3448
3486
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3449
|
-
assertParamExists('
|
|
3450
|
-
|
|
3451
|
-
|
|
3487
|
+
assertParamExists('getOrganizationAccessControl', 'organizationId', organizationId)
|
|
3488
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3489
|
+
assertParamExists('getOrganizationAccessControl', 'identityId', identityId)
|
|
3490
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
3491
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3492
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3452
3493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3453
3494
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3454
3495
|
let baseOptions;
|
|
@@ -3456,7 +3497,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3456
3497
|
baseOptions = configuration.baseOptions;
|
|
3457
3498
|
}
|
|
3458
3499
|
|
|
3459
|
-
const localVarRequestOptions = { method: '
|
|
3500
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3460
3501
|
const localVarHeaderParameter = {} as any;
|
|
3461
3502
|
const localVarQueryParameter = {} as any;
|
|
3462
3503
|
|
|
@@ -3477,20 +3518,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3477
3518
|
},
|
|
3478
3519
|
/**
|
|
3479
3520
|
*
|
|
3480
|
-
* @summary
|
|
3521
|
+
* @summary Get the Organization permissions by given role
|
|
3481
3522
|
* @param {string} organizationId the Organization identifier
|
|
3482
|
-
* @param {string}
|
|
3523
|
+
* @param {string} role the Role
|
|
3483
3524
|
* @param {*} [options] Override http request option.
|
|
3484
3525
|
* @throws {RequiredError}
|
|
3485
3526
|
*/
|
|
3486
|
-
|
|
3527
|
+
getOrganizationPermissions: async (organizationId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3487
3528
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3488
|
-
assertParamExists('
|
|
3489
|
-
// verify required parameter '
|
|
3490
|
-
assertParamExists('
|
|
3491
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3529
|
+
assertParamExists('getOrganizationPermissions', 'organizationId', organizationId)
|
|
3530
|
+
// verify required parameter 'role' is not null or undefined
|
|
3531
|
+
assertParamExists('getOrganizationPermissions', 'role', role)
|
|
3532
|
+
const localVarPath = `/organizations/{organization_id}/permissions/{role}`
|
|
3492
3533
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3493
|
-
.replace(`{${"
|
|
3534
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
3494
3535
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3495
3536
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3496
3537
|
let baseOptions;
|
|
@@ -3498,7 +3539,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3498
3539
|
baseOptions = configuration.baseOptions;
|
|
3499
3540
|
}
|
|
3500
3541
|
|
|
3501
|
-
const localVarRequestOptions = { method: '
|
|
3542
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3502
3543
|
const localVarHeaderParameter = {} as any;
|
|
3503
3544
|
const localVarQueryParameter = {} as any;
|
|
3504
3545
|
|
|
@@ -3519,15 +3560,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3519
3560
|
},
|
|
3520
3561
|
/**
|
|
3521
3562
|
*
|
|
3522
|
-
* @summary
|
|
3563
|
+
* @summary Get the Organization security information
|
|
3523
3564
|
* @param {string} organizationId the Organization identifier
|
|
3524
3565
|
* @param {*} [options] Override http request option.
|
|
3525
3566
|
* @throws {RequiredError}
|
|
3526
3567
|
*/
|
|
3527
|
-
|
|
3568
|
+
getOrganizationSecurity: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3528
3569
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3529
|
-
assertParamExists('
|
|
3530
|
-
const localVarPath = `/organizations/{organization_id}`
|
|
3570
|
+
assertParamExists('getOrganizationSecurity', 'organizationId', organizationId)
|
|
3571
|
+
const localVarPath = `/organizations/{organization_id}/security`
|
|
3531
3572
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3532
3573
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3533
3574
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3536,7 +3577,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3536
3577
|
baseOptions = configuration.baseOptions;
|
|
3537
3578
|
}
|
|
3538
3579
|
|
|
3539
|
-
const localVarRequestOptions = { method: '
|
|
3580
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3540
3581
|
const localVarHeaderParameter = {} as any;
|
|
3541
3582
|
const localVarQueryParameter = {} as any;
|
|
3542
3583
|
|
|
@@ -3557,18 +3598,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3557
3598
|
},
|
|
3558
3599
|
/**
|
|
3559
3600
|
*
|
|
3560
|
-
* @summary
|
|
3601
|
+
* @summary Get the Organization security users list
|
|
3561
3602
|
* @param {string} organizationId the Organization identifier
|
|
3562
|
-
* @param {Organization} organization the new Organization details
|
|
3563
3603
|
* @param {*} [options] Override http request option.
|
|
3564
3604
|
* @throws {RequiredError}
|
|
3565
3605
|
*/
|
|
3566
|
-
|
|
3606
|
+
getOrganizationSecurityUsers: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3567
3607
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3568
|
-
assertParamExists('
|
|
3569
|
-
|
|
3570
|
-
assertParamExists('updateOrganization', 'organization', organization)
|
|
3571
|
-
const localVarPath = `/organizations/{organization_id}`
|
|
3608
|
+
assertParamExists('getOrganizationSecurityUsers', 'organizationId', organizationId)
|
|
3609
|
+
const localVarPath = `/organizations/{organization_id}/security/users`
|
|
3572
3610
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3573
3611
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3574
3612
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3577,7 +3615,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3577
3615
|
baseOptions = configuration.baseOptions;
|
|
3578
3616
|
}
|
|
3579
3617
|
|
|
3580
|
-
const localVarRequestOptions = { method: '
|
|
3618
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3581
3619
|
const localVarHeaderParameter = {} as any;
|
|
3582
3620
|
const localVarQueryParameter = {} as any;
|
|
3583
3621
|
|
|
@@ -3587,12 +3625,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3587
3625
|
|
|
3588
3626
|
|
|
3589
3627
|
|
|
3590
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3591
|
-
|
|
3592
3628
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3593
3629
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3594
3630
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3595
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3596
3631
|
|
|
3597
3632
|
return {
|
|
3598
3633
|
url: toPathString(localVarUrlObj),
|
|
@@ -3601,19 +3636,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3601
3636
|
},
|
|
3602
3637
|
/**
|
|
3603
3638
|
*
|
|
3604
|
-
* @summary
|
|
3605
|
-
* @param {
|
|
3606
|
-
* @param {OrganizationService} organizationService the new solutions container registry configuration to use
|
|
3639
|
+
* @summary Register a new organization
|
|
3640
|
+
* @param {Organization} organization the Organization to register
|
|
3607
3641
|
* @param {*} [options] Override http request option.
|
|
3608
3642
|
* @throws {RequiredError}
|
|
3609
3643
|
*/
|
|
3610
|
-
|
|
3611
|
-
// verify required parameter '
|
|
3612
|
-
assertParamExists('
|
|
3613
|
-
|
|
3614
|
-
assertParamExists('updateSolutionsContainerRegistryByOrganizationId', 'organizationService', organizationService)
|
|
3615
|
-
const localVarPath = `/organizations/{organization_id}/services/solutionsContainerRegistry`
|
|
3616
|
-
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3644
|
+
registerOrganization: async (organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3645
|
+
// verify required parameter 'organization' is not null or undefined
|
|
3646
|
+
assertParamExists('registerOrganization', 'organization', organization)
|
|
3647
|
+
const localVarPath = `/organizations`;
|
|
3617
3648
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3618
3649
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3619
3650
|
let baseOptions;
|
|
@@ -3621,7 +3652,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3621
3652
|
baseOptions = configuration.baseOptions;
|
|
3622
3653
|
}
|
|
3623
3654
|
|
|
3624
|
-
const localVarRequestOptions = { method: '
|
|
3655
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3625
3656
|
const localVarHeaderParameter = {} as any;
|
|
3626
3657
|
const localVarQueryParameter = {} as any;
|
|
3627
3658
|
|
|
@@ -3636,7 +3667,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3636
3667
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3637
3668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3638
3669
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3639
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3670
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3640
3671
|
|
|
3641
3672
|
return {
|
|
3642
3673
|
url: toPathString(localVarUrlObj),
|
|
@@ -3645,19 +3676,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3645
3676
|
},
|
|
3646
3677
|
/**
|
|
3647
3678
|
*
|
|
3648
|
-
* @summary
|
|
3679
|
+
* @summary Remove the specified access from the given Organization
|
|
3649
3680
|
* @param {string} organizationId the Organization identifier
|
|
3650
|
-
* @param {
|
|
3681
|
+
* @param {string} identityId the User identifier
|
|
3651
3682
|
* @param {*} [options] Override http request option.
|
|
3652
3683
|
* @throws {RequiredError}
|
|
3653
3684
|
*/
|
|
3654
|
-
|
|
3685
|
+
removeOrganizationAccessControl: async (organizationId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3655
3686
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3656
|
-
assertParamExists('
|
|
3657
|
-
// verify required parameter '
|
|
3658
|
-
assertParamExists('
|
|
3659
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3660
|
-
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3687
|
+
assertParamExists('removeOrganizationAccessControl', 'organizationId', organizationId)
|
|
3688
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3689
|
+
assertParamExists('removeOrganizationAccessControl', 'identityId', identityId)
|
|
3690
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
3691
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3692
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3661
3693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3662
3694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3663
3695
|
let baseOptions;
|
|
@@ -3665,7 +3697,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3665
3697
|
baseOptions = configuration.baseOptions;
|
|
3666
3698
|
}
|
|
3667
3699
|
|
|
3668
|
-
const localVarRequestOptions = { method: '
|
|
3700
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3669
3701
|
const localVarHeaderParameter = {} as any;
|
|
3670
3702
|
const localVarQueryParameter = {} as any;
|
|
3671
3703
|
|
|
@@ -3675,12 +3707,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3675
3707
|
|
|
3676
3708
|
|
|
3677
3709
|
|
|
3678
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3679
|
-
|
|
3680
3710
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3681
3711
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3682
3712
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3683
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
3684
3713
|
|
|
3685
3714
|
return {
|
|
3686
3715
|
url: toPathString(localVarUrlObj),
|
|
@@ -3689,18 +3718,18 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3689
3718
|
},
|
|
3690
3719
|
/**
|
|
3691
3720
|
*
|
|
3692
|
-
* @summary
|
|
3721
|
+
* @summary set the Organization default security
|
|
3693
3722
|
* @param {string} organizationId the Organization identifier
|
|
3694
|
-
* @param {
|
|
3723
|
+
* @param {string} body the new Organization default security.
|
|
3695
3724
|
* @param {*} [options] Override http request option.
|
|
3696
3725
|
* @throws {RequiredError}
|
|
3697
3726
|
*/
|
|
3698
|
-
|
|
3727
|
+
setOrganizationDefaultSecurity: async (organizationId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3699
3728
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3700
|
-
assertParamExists('
|
|
3701
|
-
// verify required parameter '
|
|
3702
|
-
assertParamExists('
|
|
3703
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3729
|
+
assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId)
|
|
3730
|
+
// verify required parameter 'body' is not null or undefined
|
|
3731
|
+
assertParamExists('setOrganizationDefaultSecurity', 'body', body)
|
|
3732
|
+
const localVarPath = `/organizations/{organization_id}/security/default`
|
|
3704
3733
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3705
3734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3706
3735
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3709,7 +3738,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3709
3738
|
baseOptions = configuration.baseOptions;
|
|
3710
3739
|
}
|
|
3711
3740
|
|
|
3712
|
-
const localVarRequestOptions = { method: '
|
|
3741
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3713
3742
|
const localVarHeaderParameter = {} as any;
|
|
3714
3743
|
const localVarQueryParameter = {} as any;
|
|
3715
3744
|
|
|
@@ -3724,39 +3753,253 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3724
3753
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3725
3754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3726
3755
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3727
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3756
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
3728
3757
|
|
|
3729
3758
|
return {
|
|
3730
3759
|
url: toPathString(localVarUrlObj),
|
|
3731
3760
|
options: localVarRequestOptions,
|
|
3732
3761
|
};
|
|
3733
3762
|
},
|
|
3734
|
-
}
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
|
-
/**
|
|
3738
|
-
* OrganizationApi - functional programming interface
|
|
3739
|
-
* @export
|
|
3740
|
-
*/
|
|
3741
|
-
export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
3742
|
-
const localVarAxiosParamCreator = OrganizationApiAxiosParamCreator(configuration)
|
|
3743
|
-
return {
|
|
3744
3763
|
/**
|
|
3745
3764
|
*
|
|
3746
|
-
* @summary
|
|
3765
|
+
* @summary Unregister an organization
|
|
3747
3766
|
* @param {string} organizationId the Organization identifier
|
|
3748
|
-
* @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
|
|
3749
3767
|
* @param {*} [options] Override http request option.
|
|
3750
3768
|
* @throws {RequiredError}
|
|
3751
3769
|
*/
|
|
3752
|
-
async
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3770
|
+
unregisterOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3771
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3772
|
+
assertParamExists('unregisterOrganization', 'organizationId', organizationId)
|
|
3773
|
+
const localVarPath = `/organizations/{organization_id}`
|
|
3774
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3776
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3777
|
+
let baseOptions;
|
|
3778
|
+
if (configuration) {
|
|
3779
|
+
baseOptions = configuration.baseOptions;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3783
|
+
const localVarHeaderParameter = {} as any;
|
|
3784
|
+
const localVarQueryParameter = {} as any;
|
|
3785
|
+
|
|
3786
|
+
// authentication oAuth2AuthCode required
|
|
3787
|
+
// oauth required
|
|
3788
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3793
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3794
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3795
|
+
|
|
3796
|
+
return {
|
|
3797
|
+
url: toPathString(localVarUrlObj),
|
|
3798
|
+
options: localVarRequestOptions,
|
|
3799
|
+
};
|
|
3800
|
+
},
|
|
3801
|
+
/**
|
|
3802
|
+
*
|
|
3803
|
+
* @summary Update an Organization
|
|
3804
|
+
* @param {string} organizationId the Organization identifier
|
|
3805
|
+
* @param {Organization} organization the new Organization details
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
updateOrganization: async (organizationId: string, organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3810
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3811
|
+
assertParamExists('updateOrganization', 'organizationId', organizationId)
|
|
3812
|
+
// verify required parameter 'organization' is not null or undefined
|
|
3813
|
+
assertParamExists('updateOrganization', 'organization', organization)
|
|
3814
|
+
const localVarPath = `/organizations/{organization_id}`
|
|
3815
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3817
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3818
|
+
let baseOptions;
|
|
3819
|
+
if (configuration) {
|
|
3820
|
+
baseOptions = configuration.baseOptions;
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3824
|
+
const localVarHeaderParameter = {} as any;
|
|
3825
|
+
const localVarQueryParameter = {} as any;
|
|
3826
|
+
|
|
3827
|
+
// authentication oAuth2AuthCode required
|
|
3828
|
+
// oauth required
|
|
3829
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3834
|
+
|
|
3835
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3837
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3838
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3839
|
+
|
|
3840
|
+
return {
|
|
3841
|
+
url: toPathString(localVarUrlObj),
|
|
3842
|
+
options: localVarRequestOptions,
|
|
3843
|
+
};
|
|
3844
|
+
},
|
|
3845
|
+
/**
|
|
3846
|
+
*
|
|
3847
|
+
* @summary Update the solutions container registry configuration for the Organization specified
|
|
3848
|
+
* @param {string} organizationId the Organization identifier
|
|
3849
|
+
* @param {OrganizationService} organizationService the new solutions container registry configuration to use
|
|
3850
|
+
* @param {*} [options] Override http request option.
|
|
3851
|
+
* @throws {RequiredError}
|
|
3852
|
+
*/
|
|
3853
|
+
updateSolutionsContainerRegistryByOrganizationId: async (organizationId: string, organizationService: OrganizationService, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3854
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3855
|
+
assertParamExists('updateSolutionsContainerRegistryByOrganizationId', 'organizationId', organizationId)
|
|
3856
|
+
// verify required parameter 'organizationService' is not null or undefined
|
|
3857
|
+
assertParamExists('updateSolutionsContainerRegistryByOrganizationId', 'organizationService', organizationService)
|
|
3858
|
+
const localVarPath = `/organizations/{organization_id}/services/solutionsContainerRegistry`
|
|
3859
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3862
|
+
let baseOptions;
|
|
3863
|
+
if (configuration) {
|
|
3864
|
+
baseOptions = configuration.baseOptions;
|
|
3865
|
+
}
|
|
3866
|
+
|
|
3867
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3868
|
+
const localVarHeaderParameter = {} as any;
|
|
3869
|
+
const localVarQueryParameter = {} as any;
|
|
3870
|
+
|
|
3871
|
+
// authentication oAuth2AuthCode required
|
|
3872
|
+
// oauth required
|
|
3873
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3878
|
+
|
|
3879
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3880
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3881
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3882
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
3883
|
+
|
|
3884
|
+
return {
|
|
3885
|
+
url: toPathString(localVarUrlObj),
|
|
3886
|
+
options: localVarRequestOptions,
|
|
3887
|
+
};
|
|
3888
|
+
},
|
|
3889
|
+
/**
|
|
3890
|
+
*
|
|
3891
|
+
* @summary Update storage configuration for the Organization specified
|
|
3892
|
+
* @param {string} organizationId the Organization identifier
|
|
3893
|
+
* @param {OrganizationService} organizationService the new Storage configuration to use
|
|
3894
|
+
* @param {*} [options] Override http request option.
|
|
3895
|
+
* @throws {RequiredError}
|
|
3896
|
+
*/
|
|
3897
|
+
updateStorageByOrganizationId: async (organizationId: string, organizationService: OrganizationService, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3898
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3899
|
+
assertParamExists('updateStorageByOrganizationId', 'organizationId', organizationId)
|
|
3900
|
+
// verify required parameter 'organizationService' is not null or undefined
|
|
3901
|
+
assertParamExists('updateStorageByOrganizationId', 'organizationService', organizationService)
|
|
3902
|
+
const localVarPath = `/organizations/{organization_id}/services/storage`
|
|
3903
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3906
|
+
let baseOptions;
|
|
3907
|
+
if (configuration) {
|
|
3908
|
+
baseOptions = configuration.baseOptions;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3912
|
+
const localVarHeaderParameter = {} as any;
|
|
3913
|
+
const localVarQueryParameter = {} as any;
|
|
3914
|
+
|
|
3915
|
+
// authentication oAuth2AuthCode required
|
|
3916
|
+
// oauth required
|
|
3917
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3922
|
+
|
|
3923
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3924
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3925
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3926
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
3927
|
+
|
|
3928
|
+
return {
|
|
3929
|
+
url: toPathString(localVarUrlObj),
|
|
3930
|
+
options: localVarRequestOptions,
|
|
3931
|
+
};
|
|
3932
|
+
},
|
|
3933
|
+
/**
|
|
3934
|
+
*
|
|
3935
|
+
* @summary Update tenant credentials for the Organization specified
|
|
3936
|
+
* @param {string} organizationId the Organization identifier
|
|
3937
|
+
* @param {{ [key: string]: object; }} requestBody the new Tenant Credentials to use
|
|
3938
|
+
* @param {*} [options] Override http request option.
|
|
3939
|
+
* @throws {RequiredError}
|
|
3940
|
+
*/
|
|
3941
|
+
updateTenantCredentialsByOrganizationId: async (organizationId: string, requestBody: { [key: string]: object; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3942
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3943
|
+
assertParamExists('updateTenantCredentialsByOrganizationId', 'organizationId', organizationId)
|
|
3944
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
3945
|
+
assertParamExists('updateTenantCredentialsByOrganizationId', 'requestBody', requestBody)
|
|
3946
|
+
const localVarPath = `/organizations/{organization_id}/services/tenantCredentials`
|
|
3947
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3950
|
+
let baseOptions;
|
|
3951
|
+
if (configuration) {
|
|
3952
|
+
baseOptions = configuration.baseOptions;
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3956
|
+
const localVarHeaderParameter = {} as any;
|
|
3957
|
+
const localVarQueryParameter = {} as any;
|
|
3958
|
+
|
|
3959
|
+
// authentication oAuth2AuthCode required
|
|
3960
|
+
// oauth required
|
|
3961
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3966
|
+
|
|
3967
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3968
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3969
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3970
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
3971
|
+
|
|
3972
|
+
return {
|
|
3973
|
+
url: toPathString(localVarUrlObj),
|
|
3974
|
+
options: localVarRequestOptions,
|
|
3975
|
+
};
|
|
3976
|
+
},
|
|
3977
|
+
}
|
|
3978
|
+
};
|
|
3979
|
+
|
|
3980
|
+
/**
|
|
3981
|
+
* OrganizationApi - functional programming interface
|
|
3982
|
+
* @export
|
|
3983
|
+
*/
|
|
3984
|
+
export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
3985
|
+
const localVarAxiosParamCreator = OrganizationApiAxiosParamCreator(configuration)
|
|
3986
|
+
return {
|
|
3987
|
+
/**
|
|
3988
|
+
*
|
|
3989
|
+
* @summary add a control acccess to the Organization
|
|
3990
|
+
* @param {string} organizationId the Organization identifier
|
|
3991
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3992
|
+
* @param {*} [options] Override http request option.
|
|
3993
|
+
* @throws {RequiredError}
|
|
3994
|
+
*/
|
|
3995
|
+
async addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
3996
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationAccessControl(organizationId, organizationAccessControl, options);
|
|
3997
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3998
|
+
},
|
|
3999
|
+
/**
|
|
4000
|
+
*
|
|
4001
|
+
* @summary List all Organizations
|
|
4002
|
+
* @param {*} [options] Override http request option.
|
|
3760
4003
|
* @throws {RequiredError}
|
|
3761
4004
|
*/
|
|
3762
4005
|
async findAllOrganizations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>> {
|
|
@@ -3770,8 +4013,64 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3770
4013
|
* @param {*} [options] Override http request option.
|
|
3771
4014
|
* @throws {RequiredError}
|
|
3772
4015
|
*/
|
|
3773
|
-
async findOrganizationById(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
3774
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.findOrganizationById(organizationId, options);
|
|
4016
|
+
async findOrganizationById(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
4017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOrganizationById(organizationId, options);
|
|
4018
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4019
|
+
},
|
|
4020
|
+
/**
|
|
4021
|
+
*
|
|
4022
|
+
* @summary Get all permissions per components
|
|
4023
|
+
* @param {*} [options] Override http request option.
|
|
4024
|
+
* @throws {RequiredError}
|
|
4025
|
+
*/
|
|
4026
|
+
async getAllPermissions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ComponentRolePermissions>>> {
|
|
4027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPermissions(options);
|
|
4028
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4029
|
+
},
|
|
4030
|
+
/**
|
|
4031
|
+
*
|
|
4032
|
+
* @summary get a control acccess for the Organization
|
|
4033
|
+
* @param {string} organizationId the Organization identifier
|
|
4034
|
+
* @param {string} identityId the User identifier
|
|
4035
|
+
* @param {*} [options] Override http request option.
|
|
4036
|
+
* @throws {RequiredError}
|
|
4037
|
+
*/
|
|
4038
|
+
async getOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
4039
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAccessControl(organizationId, identityId, options);
|
|
4040
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4041
|
+
},
|
|
4042
|
+
/**
|
|
4043
|
+
*
|
|
4044
|
+
* @summary Get the Organization permissions by given role
|
|
4045
|
+
* @param {string} organizationId the Organization identifier
|
|
4046
|
+
* @param {string} role the Role
|
|
4047
|
+
* @param {*} [options] Override http request option.
|
|
4048
|
+
* @throws {RequiredError}
|
|
4049
|
+
*/
|
|
4050
|
+
async getOrganizationPermissions(organizationId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4051
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationPermissions(organizationId, role, options);
|
|
4052
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4053
|
+
},
|
|
4054
|
+
/**
|
|
4055
|
+
*
|
|
4056
|
+
* @summary Get the Organization security information
|
|
4057
|
+
* @param {string} organizationId the Organization identifier
|
|
4058
|
+
* @param {*} [options] Override http request option.
|
|
4059
|
+
* @throws {RequiredError}
|
|
4060
|
+
*/
|
|
4061
|
+
async getOrganizationSecurity(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
|
|
4062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurity(organizationId, options);
|
|
4063
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4064
|
+
},
|
|
4065
|
+
/**
|
|
4066
|
+
*
|
|
4067
|
+
* @summary Get the Organization security users list
|
|
4068
|
+
* @param {string} organizationId the Organization identifier
|
|
4069
|
+
* @param {*} [options] Override http request option.
|
|
4070
|
+
* @throws {RequiredError}
|
|
4071
|
+
*/
|
|
4072
|
+
async getOrganizationSecurityUsers(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options);
|
|
3775
4074
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3776
4075
|
},
|
|
3777
4076
|
/**
|
|
@@ -3787,25 +4086,26 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3787
4086
|
},
|
|
3788
4087
|
/**
|
|
3789
4088
|
*
|
|
3790
|
-
* @summary Remove
|
|
4089
|
+
* @summary Remove the specified access from the given Organization
|
|
3791
4090
|
* @param {string} organizationId the Organization identifier
|
|
4091
|
+
* @param {string} identityId the User identifier
|
|
3792
4092
|
* @param {*} [options] Override http request option.
|
|
3793
4093
|
* @throws {RequiredError}
|
|
3794
4094
|
*/
|
|
3795
|
-
async
|
|
3796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4095
|
+
async removeOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeOrganizationAccessControl(organizationId, identityId, options);
|
|
3797
4097
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3798
4098
|
},
|
|
3799
4099
|
/**
|
|
3800
4100
|
*
|
|
3801
|
-
* @summary
|
|
4101
|
+
* @summary set the Organization default security
|
|
3802
4102
|
* @param {string} organizationId the Organization identifier
|
|
3803
|
-
* @param {string}
|
|
4103
|
+
* @param {string} body the new Organization default security.
|
|
3804
4104
|
* @param {*} [options] Override http request option.
|
|
3805
4105
|
* @throws {RequiredError}
|
|
3806
4106
|
*/
|
|
3807
|
-
async
|
|
3808
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4107
|
+
async setOrganizationDefaultSecurity(organizationId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
|
|
4108
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, body, options);
|
|
3809
4109
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3810
4110
|
},
|
|
3811
4111
|
/**
|
|
@@ -3879,14 +4179,14 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3879
4179
|
return {
|
|
3880
4180
|
/**
|
|
3881
4181
|
*
|
|
3882
|
-
* @summary
|
|
4182
|
+
* @summary add a control acccess to the Organization
|
|
3883
4183
|
* @param {string} organizationId the Organization identifier
|
|
3884
|
-
* @param {
|
|
4184
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3885
4185
|
* @param {*} [options] Override http request option.
|
|
3886
4186
|
* @throws {RequiredError}
|
|
3887
4187
|
*/
|
|
3888
|
-
|
|
3889
|
-
return localVarFp.
|
|
4188
|
+
addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4189
|
+
return localVarFp.addOrganizationAccessControl(organizationId, organizationAccessControl, options).then((request) => request(axios, basePath));
|
|
3890
4190
|
},
|
|
3891
4191
|
/**
|
|
3892
4192
|
*
|
|
@@ -3907,6 +4207,57 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3907
4207
|
findOrganizationById(organizationId: string, options?: any): AxiosPromise<Organization> {
|
|
3908
4208
|
return localVarFp.findOrganizationById(organizationId, options).then((request) => request(axios, basePath));
|
|
3909
4209
|
},
|
|
4210
|
+
/**
|
|
4211
|
+
*
|
|
4212
|
+
* @summary Get all permissions per components
|
|
4213
|
+
* @param {*} [options] Override http request option.
|
|
4214
|
+
* @throws {RequiredError}
|
|
4215
|
+
*/
|
|
4216
|
+
getAllPermissions(options?: any): AxiosPromise<Array<ComponentRolePermissions>> {
|
|
4217
|
+
return localVarFp.getAllPermissions(options).then((request) => request(axios, basePath));
|
|
4218
|
+
},
|
|
4219
|
+
/**
|
|
4220
|
+
*
|
|
4221
|
+
* @summary get a control acccess for the Organization
|
|
4222
|
+
* @param {string} organizationId the Organization identifier
|
|
4223
|
+
* @param {string} identityId the User identifier
|
|
4224
|
+
* @param {*} [options] Override http request option.
|
|
4225
|
+
* @throws {RequiredError}
|
|
4226
|
+
*/
|
|
4227
|
+
getOrganizationAccessControl(organizationId: string, identityId: string, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4228
|
+
return localVarFp.getOrganizationAccessControl(organizationId, identityId, options).then((request) => request(axios, basePath));
|
|
4229
|
+
},
|
|
4230
|
+
/**
|
|
4231
|
+
*
|
|
4232
|
+
* @summary Get the Organization permissions by given role
|
|
4233
|
+
* @param {string} organizationId the Organization identifier
|
|
4234
|
+
* @param {string} role the Role
|
|
4235
|
+
* @param {*} [options] Override http request option.
|
|
4236
|
+
* @throws {RequiredError}
|
|
4237
|
+
*/
|
|
4238
|
+
getOrganizationPermissions(organizationId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
4239
|
+
return localVarFp.getOrganizationPermissions(organizationId, role, options).then((request) => request(axios, basePath));
|
|
4240
|
+
},
|
|
4241
|
+
/**
|
|
4242
|
+
*
|
|
4243
|
+
* @summary Get the Organization security information
|
|
4244
|
+
* @param {string} organizationId the Organization identifier
|
|
4245
|
+
* @param {*} [options] Override http request option.
|
|
4246
|
+
* @throws {RequiredError}
|
|
4247
|
+
*/
|
|
4248
|
+
getOrganizationSecurity(organizationId: string, options?: any): AxiosPromise<OrganizationSecurity> {
|
|
4249
|
+
return localVarFp.getOrganizationSecurity(organizationId, options).then((request) => request(axios, basePath));
|
|
4250
|
+
},
|
|
4251
|
+
/**
|
|
4252
|
+
*
|
|
4253
|
+
* @summary Get the Organization security users list
|
|
4254
|
+
* @param {string} organizationId the Organization identifier
|
|
4255
|
+
* @param {*} [options] Override http request option.
|
|
4256
|
+
* @throws {RequiredError}
|
|
4257
|
+
*/
|
|
4258
|
+
getOrganizationSecurityUsers(organizationId: string, options?: any): AxiosPromise<Array<string>> {
|
|
4259
|
+
return localVarFp.getOrganizationSecurityUsers(organizationId, options).then((request) => request(axios, basePath));
|
|
4260
|
+
},
|
|
3910
4261
|
/**
|
|
3911
4262
|
*
|
|
3912
4263
|
* @summary Register a new organization
|
|
@@ -3919,24 +4270,25 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3919
4270
|
},
|
|
3920
4271
|
/**
|
|
3921
4272
|
*
|
|
3922
|
-
* @summary Remove
|
|
4273
|
+
* @summary Remove the specified access from the given Organization
|
|
3923
4274
|
* @param {string} organizationId the Organization identifier
|
|
4275
|
+
* @param {string} identityId the User identifier
|
|
3924
4276
|
* @param {*} [options] Override http request option.
|
|
3925
4277
|
* @throws {RequiredError}
|
|
3926
4278
|
*/
|
|
3927
|
-
|
|
3928
|
-
return localVarFp.
|
|
4279
|
+
removeOrganizationAccessControl(organizationId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
4280
|
+
return localVarFp.removeOrganizationAccessControl(organizationId, identityId, options).then((request) => request(axios, basePath));
|
|
3929
4281
|
},
|
|
3930
4282
|
/**
|
|
3931
4283
|
*
|
|
3932
|
-
* @summary
|
|
4284
|
+
* @summary set the Organization default security
|
|
3933
4285
|
* @param {string} organizationId the Organization identifier
|
|
3934
|
-
* @param {string}
|
|
4286
|
+
* @param {string} body the new Organization default security.
|
|
3935
4287
|
* @param {*} [options] Override http request option.
|
|
3936
4288
|
* @throws {RequiredError}
|
|
3937
4289
|
*/
|
|
3938
|
-
|
|
3939
|
-
return localVarFp.
|
|
4290
|
+
setOrganizationDefaultSecurity(organizationId: string, body: string, options?: any): AxiosPromise<OrganizationSecurity> {
|
|
4291
|
+
return localVarFp.setOrganizationDefaultSecurity(organizationId, body, options).then((request) => request(axios, basePath));
|
|
3940
4292
|
},
|
|
3941
4293
|
/**
|
|
3942
4294
|
*
|
|
@@ -4004,15 +4356,15 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4004
4356
|
export class OrganizationApi extends BaseAPI {
|
|
4005
4357
|
/**
|
|
4006
4358
|
*
|
|
4007
|
-
* @summary
|
|
4359
|
+
* @summary add a control acccess to the Organization
|
|
4008
4360
|
* @param {string} organizationId the Organization identifier
|
|
4009
|
-
* @param {
|
|
4361
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
4010
4362
|
* @param {*} [options] Override http request option.
|
|
4011
4363
|
* @throws {RequiredError}
|
|
4012
4364
|
* @memberof OrganizationApi
|
|
4013
4365
|
*/
|
|
4014
|
-
public
|
|
4015
|
-
return OrganizationApiFp(this.configuration).
|
|
4366
|
+
public addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: AxiosRequestConfig) {
|
|
4367
|
+
return OrganizationApiFp(this.configuration).addOrganizationAccessControl(organizationId, organizationAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
4016
4368
|
}
|
|
4017
4369
|
|
|
4018
4370
|
/**
|
|
@@ -4038,6 +4390,67 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4038
4390
|
return OrganizationApiFp(this.configuration).findOrganizationById(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4039
4391
|
}
|
|
4040
4392
|
|
|
4393
|
+
/**
|
|
4394
|
+
*
|
|
4395
|
+
* @summary Get all permissions per components
|
|
4396
|
+
* @param {*} [options] Override http request option.
|
|
4397
|
+
* @throws {RequiredError}
|
|
4398
|
+
* @memberof OrganizationApi
|
|
4399
|
+
*/
|
|
4400
|
+
public getAllPermissions(options?: AxiosRequestConfig) {
|
|
4401
|
+
return OrganizationApiFp(this.configuration).getAllPermissions(options).then((request) => request(this.axios, this.basePath));
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
/**
|
|
4405
|
+
*
|
|
4406
|
+
* @summary get a control acccess for the Organization
|
|
4407
|
+
* @param {string} organizationId the Organization identifier
|
|
4408
|
+
* @param {string} identityId the User identifier
|
|
4409
|
+
* @param {*} [options] Override http request option.
|
|
4410
|
+
* @throws {RequiredError}
|
|
4411
|
+
* @memberof OrganizationApi
|
|
4412
|
+
*/
|
|
4413
|
+
public getOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
4414
|
+
return OrganizationApiFp(this.configuration).getOrganizationAccessControl(organizationId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4417
|
+
/**
|
|
4418
|
+
*
|
|
4419
|
+
* @summary Get the Organization permissions by given role
|
|
4420
|
+
* @param {string} organizationId the Organization identifier
|
|
4421
|
+
* @param {string} role the Role
|
|
4422
|
+
* @param {*} [options] Override http request option.
|
|
4423
|
+
* @throws {RequiredError}
|
|
4424
|
+
* @memberof OrganizationApi
|
|
4425
|
+
*/
|
|
4426
|
+
public getOrganizationPermissions(organizationId: string, role: string, options?: AxiosRequestConfig) {
|
|
4427
|
+
return OrganizationApiFp(this.configuration).getOrganizationPermissions(organizationId, role, options).then((request) => request(this.axios, this.basePath));
|
|
4428
|
+
}
|
|
4429
|
+
|
|
4430
|
+
/**
|
|
4431
|
+
*
|
|
4432
|
+
* @summary Get the Organization security information
|
|
4433
|
+
* @param {string} organizationId the Organization identifier
|
|
4434
|
+
* @param {*} [options] Override http request option.
|
|
4435
|
+
* @throws {RequiredError}
|
|
4436
|
+
* @memberof OrganizationApi
|
|
4437
|
+
*/
|
|
4438
|
+
public getOrganizationSecurity(organizationId: string, options?: AxiosRequestConfig) {
|
|
4439
|
+
return OrganizationApiFp(this.configuration).getOrganizationSecurity(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
*
|
|
4444
|
+
* @summary Get the Organization security users list
|
|
4445
|
+
* @param {string} organizationId the Organization identifier
|
|
4446
|
+
* @param {*} [options] Override http request option.
|
|
4447
|
+
* @throws {RequiredError}
|
|
4448
|
+
* @memberof OrganizationApi
|
|
4449
|
+
*/
|
|
4450
|
+
public getOrganizationSecurityUsers(organizationId: string, options?: AxiosRequestConfig) {
|
|
4451
|
+
return OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4041
4454
|
/**
|
|
4042
4455
|
*
|
|
4043
4456
|
* @summary Register a new organization
|
|
@@ -4052,27 +4465,28 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4052
4465
|
|
|
4053
4466
|
/**
|
|
4054
4467
|
*
|
|
4055
|
-
* @summary Remove
|
|
4468
|
+
* @summary Remove the specified access from the given Organization
|
|
4056
4469
|
* @param {string} organizationId the Organization identifier
|
|
4470
|
+
* @param {string} identityId the User identifier
|
|
4057
4471
|
* @param {*} [options] Override http request option.
|
|
4058
4472
|
* @throws {RequiredError}
|
|
4059
4473
|
* @memberof OrganizationApi
|
|
4060
4474
|
*/
|
|
4061
|
-
public
|
|
4062
|
-
return OrganizationApiFp(this.configuration).
|
|
4475
|
+
public removeOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
4476
|
+
return OrganizationApiFp(this.configuration).removeOrganizationAccessControl(organizationId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
4063
4477
|
}
|
|
4064
4478
|
|
|
4065
4479
|
/**
|
|
4066
4480
|
*
|
|
4067
|
-
* @summary
|
|
4481
|
+
* @summary set the Organization default security
|
|
4068
4482
|
* @param {string} organizationId the Organization identifier
|
|
4069
|
-
* @param {string}
|
|
4483
|
+
* @param {string} body the new Organization default security.
|
|
4070
4484
|
* @param {*} [options] Override http request option.
|
|
4071
4485
|
* @throws {RequiredError}
|
|
4072
4486
|
* @memberof OrganizationApi
|
|
4073
4487
|
*/
|
|
4074
|
-
public
|
|
4075
|
-
return OrganizationApiFp(this.configuration).
|
|
4488
|
+
public setOrganizationDefaultSecurity(organizationId: string, body: string, options?: AxiosRequestConfig) {
|
|
4489
|
+
return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, body, options).then((request) => request(this.axios, this.basePath));
|
|
4076
4490
|
}
|
|
4077
4491
|
|
|
4078
4492
|
/**
|
|
@@ -4201,24 +4615,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4201
4615
|
},
|
|
4202
4616
|
/**
|
|
4203
4617
|
*
|
|
4204
|
-
* @summary
|
|
4618
|
+
* @summary add a control acccess to the Scenario
|
|
4205
4619
|
* @param {string} organizationId the Organization identifier
|
|
4206
4620
|
* @param {string} workspaceId the Workspace identifier
|
|
4207
4621
|
* @param {string} scenarioId the Scenario identifier
|
|
4208
|
-
* @param {
|
|
4622
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
4209
4623
|
* @param {*} [options] Override http request option.
|
|
4210
4624
|
* @throws {RequiredError}
|
|
4211
4625
|
*/
|
|
4212
|
-
|
|
4626
|
+
addScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4213
4627
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4214
|
-
assertParamExists('
|
|
4628
|
+
assertParamExists('addScenarioAccessControl', 'organizationId', organizationId)
|
|
4215
4629
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4216
|
-
assertParamExists('
|
|
4630
|
+
assertParamExists('addScenarioAccessControl', 'workspaceId', workspaceId)
|
|
4217
4631
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4218
|
-
assertParamExists('
|
|
4219
|
-
// verify required parameter '
|
|
4220
|
-
assertParamExists('
|
|
4221
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/
|
|
4632
|
+
assertParamExists('addScenarioAccessControl', 'scenarioId', scenarioId)
|
|
4633
|
+
// verify required parameter 'scenarioAccessControl' is not null or undefined
|
|
4634
|
+
assertParamExists('addScenarioAccessControl', 'scenarioAccessControl', scenarioAccessControl)
|
|
4635
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access`
|
|
4222
4636
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4223
4637
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4224
4638
|
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
@@ -4244,7 +4658,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4244
4658
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4245
4659
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4246
4660
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4247
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4661
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioAccessControl, localVarRequestOptions, configuration)
|
|
4248
4662
|
|
|
4249
4663
|
return {
|
|
4250
4664
|
url: toPathString(localVarUrlObj),
|
|
@@ -4490,20 +4904,212 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4490
4904
|
},
|
|
4491
4905
|
/**
|
|
4492
4906
|
*
|
|
4493
|
-
* @summary List all Scenarios
|
|
4907
|
+
* @summary List all Scenarios
|
|
4908
|
+
* @param {string} organizationId the Organization identifier
|
|
4909
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4910
|
+
* @param {*} [options] Override http request option.
|
|
4911
|
+
* @throws {RequiredError}
|
|
4912
|
+
*/
|
|
4913
|
+
findAllScenarios: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4914
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4915
|
+
assertParamExists('findAllScenarios', 'organizationId', organizationId)
|
|
4916
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4917
|
+
assertParamExists('findAllScenarios', 'workspaceId', workspaceId)
|
|
4918
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios`
|
|
4919
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4920
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4922
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4923
|
+
let baseOptions;
|
|
4924
|
+
if (configuration) {
|
|
4925
|
+
baseOptions = configuration.baseOptions;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4929
|
+
const localVarHeaderParameter = {} as any;
|
|
4930
|
+
const localVarQueryParameter = {} as any;
|
|
4931
|
+
|
|
4932
|
+
// authentication oAuth2AuthCode required
|
|
4933
|
+
// oauth required
|
|
4934
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4935
|
+
|
|
4936
|
+
|
|
4937
|
+
|
|
4938
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4940
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4941
|
+
|
|
4942
|
+
return {
|
|
4943
|
+
url: toPathString(localVarUrlObj),
|
|
4944
|
+
options: localVarRequestOptions,
|
|
4945
|
+
};
|
|
4946
|
+
},
|
|
4947
|
+
/**
|
|
4948
|
+
*
|
|
4949
|
+
* @summary List all Scenarios by validation status
|
|
4950
|
+
* @param {string} organizationId the Organization identifier
|
|
4951
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4952
|
+
* @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
|
|
4953
|
+
* @param {*} [options] Override http request option.
|
|
4954
|
+
* @throws {RequiredError}
|
|
4955
|
+
*/
|
|
4956
|
+
findAllScenariosByValidationStatus: async (organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4957
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4958
|
+
assertParamExists('findAllScenariosByValidationStatus', 'organizationId', organizationId)
|
|
4959
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4960
|
+
assertParamExists('findAllScenariosByValidationStatus', 'workspaceId', workspaceId)
|
|
4961
|
+
// verify required parameter 'validationStatus' is not null or undefined
|
|
4962
|
+
assertParamExists('findAllScenariosByValidationStatus', 'validationStatus', validationStatus)
|
|
4963
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/{validationStatus}`
|
|
4964
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4965
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4966
|
+
.replace(`{${"validationStatus"}}`, encodeURIComponent(String(validationStatus)));
|
|
4967
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4968
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4969
|
+
let baseOptions;
|
|
4970
|
+
if (configuration) {
|
|
4971
|
+
baseOptions = configuration.baseOptions;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4974
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4975
|
+
const localVarHeaderParameter = {} as any;
|
|
4976
|
+
const localVarQueryParameter = {} as any;
|
|
4977
|
+
|
|
4978
|
+
// authentication oAuth2AuthCode required
|
|
4979
|
+
// oauth required
|
|
4980
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4981
|
+
|
|
4982
|
+
|
|
4983
|
+
|
|
4984
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4986
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4987
|
+
|
|
4988
|
+
return {
|
|
4989
|
+
url: toPathString(localVarUrlObj),
|
|
4990
|
+
options: localVarRequestOptions,
|
|
4991
|
+
};
|
|
4992
|
+
},
|
|
4993
|
+
/**
|
|
4994
|
+
*
|
|
4995
|
+
* @summary Get the details of an scenario
|
|
4996
|
+
* @param {string} organizationId the Organization identifier
|
|
4997
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4998
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4999
|
+
* @param {*} [options] Override http request option.
|
|
5000
|
+
* @throws {RequiredError}
|
|
5001
|
+
*/
|
|
5002
|
+
findScenarioById: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5003
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5004
|
+
assertParamExists('findScenarioById', 'organizationId', organizationId)
|
|
5005
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5006
|
+
assertParamExists('findScenarioById', 'workspaceId', workspaceId)
|
|
5007
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5008
|
+
assertParamExists('findScenarioById', 'scenarioId', scenarioId)
|
|
5009
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}`
|
|
5010
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5011
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5012
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
5013
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5014
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5015
|
+
let baseOptions;
|
|
5016
|
+
if (configuration) {
|
|
5017
|
+
baseOptions = configuration.baseOptions;
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5021
|
+
const localVarHeaderParameter = {} as any;
|
|
5022
|
+
const localVarQueryParameter = {} as any;
|
|
5023
|
+
|
|
5024
|
+
// authentication oAuth2AuthCode required
|
|
5025
|
+
// oauth required
|
|
5026
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5027
|
+
|
|
5028
|
+
|
|
5029
|
+
|
|
5030
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5031
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5032
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5033
|
+
|
|
5034
|
+
return {
|
|
5035
|
+
url: toPathString(localVarUrlObj),
|
|
5036
|
+
options: localVarRequestOptions,
|
|
5037
|
+
};
|
|
5038
|
+
},
|
|
5039
|
+
/**
|
|
5040
|
+
*
|
|
5041
|
+
* @summary get a control acccess for the Scenario
|
|
5042
|
+
* @param {string} organizationId the Organization identifier
|
|
5043
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5044
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5045
|
+
* @param {string} identityId the User identifier
|
|
5046
|
+
* @param {*} [options] Override http request option.
|
|
5047
|
+
* @throws {RequiredError}
|
|
5048
|
+
*/
|
|
5049
|
+
getScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5050
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5051
|
+
assertParamExists('getScenarioAccessControl', 'organizationId', organizationId)
|
|
5052
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5053
|
+
assertParamExists('getScenarioAccessControl', 'workspaceId', workspaceId)
|
|
5054
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5055
|
+
assertParamExists('getScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5056
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5057
|
+
assertParamExists('getScenarioAccessControl', 'identityId', identityId)
|
|
5058
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
5059
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5060
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5061
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5062
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
5063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5064
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5065
|
+
let baseOptions;
|
|
5066
|
+
if (configuration) {
|
|
5067
|
+
baseOptions = configuration.baseOptions;
|
|
5068
|
+
}
|
|
5069
|
+
|
|
5070
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5071
|
+
const localVarHeaderParameter = {} as any;
|
|
5072
|
+
const localVarQueryParameter = {} as any;
|
|
5073
|
+
|
|
5074
|
+
// authentication oAuth2AuthCode required
|
|
5075
|
+
// oauth required
|
|
5076
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5077
|
+
|
|
5078
|
+
|
|
5079
|
+
|
|
5080
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5081
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5082
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5083
|
+
|
|
5084
|
+
return {
|
|
5085
|
+
url: toPathString(localVarUrlObj),
|
|
5086
|
+
options: localVarRequestOptions,
|
|
5087
|
+
};
|
|
5088
|
+
},
|
|
5089
|
+
/**
|
|
5090
|
+
*
|
|
5091
|
+
* @summary Get Scenario data download URL
|
|
4494
5092
|
* @param {string} organizationId the Organization identifier
|
|
4495
5093
|
* @param {string} workspaceId the Workspace identifier
|
|
5094
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5095
|
+
* @param {string} downloadId the Scenario Download identifier
|
|
4496
5096
|
* @param {*} [options] Override http request option.
|
|
4497
5097
|
* @throws {RequiredError}
|
|
4498
5098
|
*/
|
|
4499
|
-
|
|
5099
|
+
getScenarioDataDownloadJobInfo: async (organizationId: string, workspaceId: string, scenarioId: string, downloadId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4500
5100
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4501
|
-
assertParamExists('
|
|
5101
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'organizationId', organizationId)
|
|
4502
5102
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4503
|
-
assertParamExists('
|
|
4504
|
-
|
|
5103
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'workspaceId', workspaceId)
|
|
5104
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5105
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'scenarioId', scenarioId)
|
|
5106
|
+
// verify required parameter 'downloadId' is not null or undefined
|
|
5107
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'downloadId', downloadId)
|
|
5108
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads/{download_id}`
|
|
4505
5109
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4506
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5110
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5111
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5112
|
+
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
4507
5113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4508
5114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4509
5115
|
let baseOptions;
|
|
@@ -4532,24 +5138,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4532
5138
|
},
|
|
4533
5139
|
/**
|
|
4534
5140
|
*
|
|
4535
|
-
* @summary
|
|
5141
|
+
* @summary Get the Scenario permission by given role
|
|
4536
5142
|
* @param {string} organizationId the Organization identifier
|
|
4537
5143
|
* @param {string} workspaceId the Workspace identifier
|
|
4538
|
-
* @param {
|
|
5144
|
+
* @param {string} role the Role
|
|
4539
5145
|
* @param {*} [options] Override http request option.
|
|
4540
5146
|
* @throws {RequiredError}
|
|
4541
5147
|
*/
|
|
4542
|
-
|
|
5148
|
+
getScenarioPermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4543
5149
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4544
|
-
assertParamExists('
|
|
5150
|
+
assertParamExists('getScenarioPermissions', 'organizationId', organizationId)
|
|
4545
5151
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4546
|
-
assertParamExists('
|
|
4547
|
-
// verify required parameter '
|
|
4548
|
-
assertParamExists('
|
|
4549
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/{
|
|
5152
|
+
assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId)
|
|
5153
|
+
// verify required parameter 'role' is not null or undefined
|
|
5154
|
+
assertParamExists('getScenarioPermissions', 'role', role)
|
|
5155
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}`
|
|
4550
5156
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4551
5157
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4552
|
-
.replace(`{${"
|
|
5158
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
4553
5159
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4554
5160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4555
5161
|
let baseOptions;
|
|
@@ -4578,21 +5184,21 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4578
5184
|
},
|
|
4579
5185
|
/**
|
|
4580
5186
|
*
|
|
4581
|
-
* @summary Get the
|
|
5187
|
+
* @summary Get the Scenario security information
|
|
4582
5188
|
* @param {string} organizationId the Organization identifier
|
|
4583
5189
|
* @param {string} workspaceId the Workspace identifier
|
|
4584
5190
|
* @param {string} scenarioId the Scenario identifier
|
|
4585
5191
|
* @param {*} [options] Override http request option.
|
|
4586
5192
|
* @throws {RequiredError}
|
|
4587
5193
|
*/
|
|
4588
|
-
|
|
5194
|
+
getScenarioSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4589
5195
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4590
|
-
assertParamExists('
|
|
5196
|
+
assertParamExists('getScenarioSecurity', 'organizationId', organizationId)
|
|
4591
5197
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4592
|
-
assertParamExists('
|
|
5198
|
+
assertParamExists('getScenarioSecurity', 'workspaceId', workspaceId)
|
|
4593
5199
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4594
|
-
assertParamExists('
|
|
4595
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}`
|
|
5200
|
+
assertParamExists('getScenarioSecurity', 'scenarioId', scenarioId)
|
|
5201
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security`
|
|
4596
5202
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4597
5203
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4598
5204
|
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
@@ -4624,28 +5230,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4624
5230
|
},
|
|
4625
5231
|
/**
|
|
4626
5232
|
*
|
|
4627
|
-
* @summary Get Scenario
|
|
5233
|
+
* @summary Get the Scenario security users list
|
|
4628
5234
|
* @param {string} organizationId the Organization identifier
|
|
4629
5235
|
* @param {string} workspaceId the Workspace identifier
|
|
4630
5236
|
* @param {string} scenarioId the Scenario identifier
|
|
4631
|
-
* @param {string} downloadId the Scenario Download identifier
|
|
4632
5237
|
* @param {*} [options] Override http request option.
|
|
4633
5238
|
* @throws {RequiredError}
|
|
4634
5239
|
*/
|
|
4635
|
-
|
|
5240
|
+
getScenarioSecurityUsers: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4636
5241
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4637
|
-
assertParamExists('
|
|
5242
|
+
assertParamExists('getScenarioSecurityUsers', 'organizationId', organizationId)
|
|
4638
5243
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4639
|
-
assertParamExists('
|
|
5244
|
+
assertParamExists('getScenarioSecurityUsers', 'workspaceId', workspaceId)
|
|
4640
5245
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4641
|
-
assertParamExists('
|
|
4642
|
-
|
|
4643
|
-
assertParamExists('getScenarioDataDownloadJobInfo', 'downloadId', downloadId)
|
|
4644
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads/{download_id}`
|
|
5246
|
+
assertParamExists('getScenarioSecurityUsers', 'scenarioId', scenarioId)
|
|
5247
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/users`
|
|
4645
5248
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4646
5249
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4647
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4648
|
-
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
5250
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4649
5251
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4650
5252
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4651
5253
|
let baseOptions;
|
|
@@ -4808,24 +5410,28 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4808
5410
|
},
|
|
4809
5411
|
/**
|
|
4810
5412
|
*
|
|
4811
|
-
* @summary Remove
|
|
5413
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
4812
5414
|
* @param {string} organizationId the Organization identifier
|
|
4813
5415
|
* @param {string} workspaceId the Workspace identifier
|
|
4814
5416
|
* @param {string} scenarioId the Scenario identifier
|
|
5417
|
+
* @param {string} identityId the User identifier
|
|
4815
5418
|
* @param {*} [options] Override http request option.
|
|
4816
5419
|
* @throws {RequiredError}
|
|
4817
5420
|
*/
|
|
4818
|
-
|
|
5421
|
+
removeScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4819
5422
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4820
|
-
assertParamExists('
|
|
5423
|
+
assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId)
|
|
4821
5424
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4822
|
-
assertParamExists('
|
|
5425
|
+
assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId)
|
|
4823
5426
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4824
|
-
assertParamExists('
|
|
4825
|
-
|
|
5427
|
+
assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5428
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5429
|
+
assertParamExists('removeScenarioAccessControl', 'identityId', identityId)
|
|
5430
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
4826
5431
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4827
5432
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4828
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5433
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5434
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4829
5435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4830
5436
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4831
5437
|
let baseOptions;
|
|
@@ -4854,28 +5460,27 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4854
5460
|
},
|
|
4855
5461
|
/**
|
|
4856
5462
|
*
|
|
4857
|
-
* @summary
|
|
5463
|
+
* @summary set the Scenario default security
|
|
4858
5464
|
* @param {string} organizationId the Organization identifier
|
|
4859
5465
|
* @param {string} workspaceId the Workspace identifier
|
|
4860
5466
|
* @param {string} scenarioId the Scenario identifier
|
|
4861
|
-
* @param {string}
|
|
5467
|
+
* @param {string} body the new Scenario default security.
|
|
4862
5468
|
* @param {*} [options] Override http request option.
|
|
4863
5469
|
* @throws {RequiredError}
|
|
4864
5470
|
*/
|
|
4865
|
-
|
|
5471
|
+
setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4866
5472
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4867
|
-
assertParamExists('
|
|
5473
|
+
assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId)
|
|
4868
5474
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4869
|
-
assertParamExists('
|
|
5475
|
+
assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId)
|
|
4870
5476
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4871
|
-
assertParamExists('
|
|
4872
|
-
// verify required parameter '
|
|
4873
|
-
assertParamExists('
|
|
4874
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/
|
|
5477
|
+
assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId)
|
|
5478
|
+
// verify required parameter 'body' is not null or undefined
|
|
5479
|
+
assertParamExists('setScenarioDefaultSecurity', 'body', body)
|
|
5480
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default`
|
|
4875
5481
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4876
5482
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4877
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4878
|
-
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
5483
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4879
5484
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4880
5485
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4881
5486
|
let baseOptions;
|
|
@@ -4883,7 +5488,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4883
5488
|
baseOptions = configuration.baseOptions;
|
|
4884
5489
|
}
|
|
4885
5490
|
|
|
4886
|
-
const localVarRequestOptions = { method: '
|
|
5491
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4887
5492
|
const localVarHeaderParameter = {} as any;
|
|
4888
5493
|
const localVarQueryParameter = {} as any;
|
|
4889
5494
|
|
|
@@ -4893,9 +5498,12 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4893
5498
|
|
|
4894
5499
|
|
|
4895
5500
|
|
|
5501
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5502
|
+
|
|
4896
5503
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4897
5504
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4898
5505
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5506
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
4899
5507
|
|
|
4900
5508
|
return {
|
|
4901
5509
|
url: toPathString(localVarUrlObj),
|
|
@@ -4980,16 +5588,16 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
4980
5588
|
},
|
|
4981
5589
|
/**
|
|
4982
5590
|
*
|
|
4983
|
-
* @summary
|
|
5591
|
+
* @summary add a control acccess to the Scenario
|
|
4984
5592
|
* @param {string} organizationId the Organization identifier
|
|
4985
5593
|
* @param {string} workspaceId the Workspace identifier
|
|
4986
5594
|
* @param {string} scenarioId the Scenario identifier
|
|
4987
|
-
* @param {
|
|
5595
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
4988
5596
|
* @param {*} [options] Override http request option.
|
|
4989
5597
|
* @throws {RequiredError}
|
|
4990
5598
|
*/
|
|
4991
|
-
async
|
|
4992
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5599
|
+
async addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
5600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options);
|
|
4993
5601
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4994
5602
|
},
|
|
4995
5603
|
/**
|
|
@@ -5096,6 +5704,20 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5096
5704
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findScenarioById(organizationId, workspaceId, scenarioId, options);
|
|
5097
5705
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5098
5706
|
},
|
|
5707
|
+
/**
|
|
5708
|
+
*
|
|
5709
|
+
* @summary get a control acccess for the Scenario
|
|
5710
|
+
* @param {string} organizationId the Organization identifier
|
|
5711
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5712
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5713
|
+
* @param {string} identityId the User identifier
|
|
5714
|
+
* @param {*} [options] Override http request option.
|
|
5715
|
+
* @throws {RequiredError}
|
|
5716
|
+
*/
|
|
5717
|
+
async getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
5718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options);
|
|
5719
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5720
|
+
},
|
|
5099
5721
|
/**
|
|
5100
5722
|
*
|
|
5101
5723
|
* @summary Get Scenario data download URL
|
|
@@ -5110,6 +5732,45 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5110
5732
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options);
|
|
5111
5733
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5112
5734
|
},
|
|
5735
|
+
/**
|
|
5736
|
+
*
|
|
5737
|
+
* @summary Get the Scenario permission by given role
|
|
5738
|
+
* @param {string} organizationId the Organization identifier
|
|
5739
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5740
|
+
* @param {string} role the Role
|
|
5741
|
+
* @param {*} [options] Override http request option.
|
|
5742
|
+
* @throws {RequiredError}
|
|
5743
|
+
*/
|
|
5744
|
+
async getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options);
|
|
5746
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5747
|
+
},
|
|
5748
|
+
/**
|
|
5749
|
+
*
|
|
5750
|
+
* @summary Get the Scenario security information
|
|
5751
|
+
* @param {string} organizationId the Organization identifier
|
|
5752
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5753
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5754
|
+
* @param {*} [options] Override http request option.
|
|
5755
|
+
* @throws {RequiredError}
|
|
5756
|
+
*/
|
|
5757
|
+
async getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
|
|
5758
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioSecurity(organizationId, workspaceId, scenarioId, options);
|
|
5759
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5760
|
+
},
|
|
5761
|
+
/**
|
|
5762
|
+
*
|
|
5763
|
+
* @summary Get the Scenario security users list
|
|
5764
|
+
* @param {string} organizationId the Organization identifier
|
|
5765
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5766
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5767
|
+
* @param {*} [options] Override http request option.
|
|
5768
|
+
* @throws {RequiredError}
|
|
5769
|
+
*/
|
|
5770
|
+
async getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options);
|
|
5772
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5773
|
+
},
|
|
5113
5774
|
/**
|
|
5114
5775
|
*
|
|
5115
5776
|
* @summary Get the validation status of an scenario
|
|
@@ -5150,29 +5811,30 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5150
5811
|
},
|
|
5151
5812
|
/**
|
|
5152
5813
|
*
|
|
5153
|
-
* @summary Remove
|
|
5814
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5154
5815
|
* @param {string} organizationId the Organization identifier
|
|
5155
5816
|
* @param {string} workspaceId the Workspace identifier
|
|
5156
5817
|
* @param {string} scenarioId the Scenario identifier
|
|
5818
|
+
* @param {string} identityId the User identifier
|
|
5157
5819
|
* @param {*} [options] Override http request option.
|
|
5158
5820
|
* @throws {RequiredError}
|
|
5159
5821
|
*/
|
|
5160
|
-
async
|
|
5161
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5822
|
+
async removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options);
|
|
5162
5824
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5163
5825
|
},
|
|
5164
5826
|
/**
|
|
5165
5827
|
*
|
|
5166
|
-
* @summary
|
|
5828
|
+
* @summary set the Scenario default security
|
|
5167
5829
|
* @param {string} organizationId the Organization identifier
|
|
5168
5830
|
* @param {string} workspaceId the Workspace identifier
|
|
5169
5831
|
* @param {string} scenarioId the Scenario identifier
|
|
5170
|
-
* @param {string}
|
|
5832
|
+
* @param {string} body the new Scenario default security.
|
|
5171
5833
|
* @param {*} [options] Override http request option.
|
|
5172
5834
|
* @throws {RequiredError}
|
|
5173
5835
|
*/
|
|
5174
|
-
async
|
|
5175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5836
|
+
async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
|
|
5837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options);
|
|
5176
5838
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5177
5839
|
},
|
|
5178
5840
|
/**
|
|
@@ -5214,16 +5876,16 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5214
5876
|
},
|
|
5215
5877
|
/**
|
|
5216
5878
|
*
|
|
5217
|
-
* @summary
|
|
5879
|
+
* @summary add a control acccess to the Scenario
|
|
5218
5880
|
* @param {string} organizationId the Organization identifier
|
|
5219
5881
|
* @param {string} workspaceId the Workspace identifier
|
|
5220
5882
|
* @param {string} scenarioId the Scenario identifier
|
|
5221
|
-
* @param {
|
|
5883
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
5222
5884
|
* @param {*} [options] Override http request option.
|
|
5223
5885
|
* @throws {RequiredError}
|
|
5224
5886
|
*/
|
|
5225
|
-
|
|
5226
|
-
return localVarFp.
|
|
5887
|
+
addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
5888
|
+
return localVarFp.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then((request) => request(axios, basePath));
|
|
5227
5889
|
},
|
|
5228
5890
|
/**
|
|
5229
5891
|
*
|
|
@@ -5321,6 +5983,19 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5321
5983
|
findScenarioById(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<Scenario> {
|
|
5322
5984
|
return localVarFp.findScenarioById(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
5323
5985
|
},
|
|
5986
|
+
/**
|
|
5987
|
+
*
|
|
5988
|
+
* @summary get a control acccess for the Scenario
|
|
5989
|
+
* @param {string} organizationId the Organization identifier
|
|
5990
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5991
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5992
|
+
* @param {string} identityId the User identifier
|
|
5993
|
+
* @param {*} [options] Override http request option.
|
|
5994
|
+
* @throws {RequiredError}
|
|
5995
|
+
*/
|
|
5996
|
+
getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
5997
|
+
return localVarFp.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(axios, basePath));
|
|
5998
|
+
},
|
|
5324
5999
|
/**
|
|
5325
6000
|
*
|
|
5326
6001
|
* @summary Get Scenario data download URL
|
|
@@ -5334,6 +6009,42 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5334
6009
|
getScenarioDataDownloadJobInfo(organizationId: string, workspaceId: string, scenarioId: string, downloadId: string, options?: any): AxiosPromise<ScenarioDataDownloadInfo> {
|
|
5335
6010
|
return localVarFp.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then((request) => request(axios, basePath));
|
|
5336
6011
|
},
|
|
6012
|
+
/**
|
|
6013
|
+
*
|
|
6014
|
+
* @summary Get the Scenario permission by given role
|
|
6015
|
+
* @param {string} organizationId the Organization identifier
|
|
6016
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6017
|
+
* @param {string} role the Role
|
|
6018
|
+
* @param {*} [options] Override http request option.
|
|
6019
|
+
* @throws {RequiredError}
|
|
6020
|
+
*/
|
|
6021
|
+
getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
6022
|
+
return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(axios, basePath));
|
|
6023
|
+
},
|
|
6024
|
+
/**
|
|
6025
|
+
*
|
|
6026
|
+
* @summary Get the Scenario security information
|
|
6027
|
+
* @param {string} organizationId the Organization identifier
|
|
6028
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6029
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6030
|
+
* @param {*} [options] Override http request option.
|
|
6031
|
+
* @throws {RequiredError}
|
|
6032
|
+
*/
|
|
6033
|
+
getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<ScenarioSecurity> {
|
|
6034
|
+
return localVarFp.getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
6035
|
+
},
|
|
6036
|
+
/**
|
|
6037
|
+
*
|
|
6038
|
+
* @summary Get the Scenario security users list
|
|
6039
|
+
* @param {string} organizationId the Organization identifier
|
|
6040
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6041
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6042
|
+
* @param {*} [options] Override http request option.
|
|
6043
|
+
* @throws {RequiredError}
|
|
6044
|
+
*/
|
|
6045
|
+
getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<Array<string>> {
|
|
6046
|
+
return localVarFp.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
6047
|
+
},
|
|
5337
6048
|
/**
|
|
5338
6049
|
*
|
|
5339
6050
|
* @summary Get the validation status of an scenario
|
|
@@ -5371,28 +6082,29 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5371
6082
|
},
|
|
5372
6083
|
/**
|
|
5373
6084
|
*
|
|
5374
|
-
* @summary Remove
|
|
6085
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5375
6086
|
* @param {string} organizationId the Organization identifier
|
|
5376
6087
|
* @param {string} workspaceId the Workspace identifier
|
|
5377
6088
|
* @param {string} scenarioId the Scenario identifier
|
|
6089
|
+
* @param {string} identityId the User identifier
|
|
5378
6090
|
* @param {*} [options] Override http request option.
|
|
5379
6091
|
* @throws {RequiredError}
|
|
5380
6092
|
*/
|
|
5381
|
-
|
|
5382
|
-
return localVarFp.
|
|
6093
|
+
removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
6094
|
+
return localVarFp.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(axios, basePath));
|
|
5383
6095
|
},
|
|
5384
6096
|
/**
|
|
5385
6097
|
*
|
|
5386
|
-
* @summary
|
|
6098
|
+
* @summary set the Scenario default security
|
|
5387
6099
|
* @param {string} organizationId the Organization identifier
|
|
5388
6100
|
* @param {string} workspaceId the Workspace identifier
|
|
5389
6101
|
* @param {string} scenarioId the Scenario identifier
|
|
5390
|
-
* @param {string}
|
|
6102
|
+
* @param {string} body the new Scenario default security.
|
|
5391
6103
|
* @param {*} [options] Override http request option.
|
|
5392
6104
|
* @throws {RequiredError}
|
|
5393
6105
|
*/
|
|
5394
|
-
|
|
5395
|
-
return localVarFp.
|
|
6106
|
+
setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: any): AxiosPromise<ScenarioSecurity> {
|
|
6107
|
+
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then((request) => request(axios, basePath));
|
|
5396
6108
|
},
|
|
5397
6109
|
/**
|
|
5398
6110
|
*
|
|
@@ -5434,17 +6146,17 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5434
6146
|
|
|
5435
6147
|
/**
|
|
5436
6148
|
*
|
|
5437
|
-
* @summary
|
|
6149
|
+
* @summary add a control acccess to the Scenario
|
|
5438
6150
|
* @param {string} organizationId the Organization identifier
|
|
5439
6151
|
* @param {string} workspaceId the Workspace identifier
|
|
5440
6152
|
* @param {string} scenarioId the Scenario identifier
|
|
5441
|
-
* @param {
|
|
6153
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
5442
6154
|
* @param {*} [options] Override http request option.
|
|
5443
6155
|
* @throws {RequiredError}
|
|
5444
6156
|
* @memberof ScenarioApi
|
|
5445
6157
|
*/
|
|
5446
|
-
public
|
|
5447
|
-
return ScenarioApiFp(this.configuration).
|
|
6158
|
+
public addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: AxiosRequestConfig) {
|
|
6159
|
+
return ScenarioApiFp(this.configuration).addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
5448
6160
|
}
|
|
5449
6161
|
|
|
5450
6162
|
/**
|
|
@@ -5559,6 +6271,21 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5559
6271
|
return ScenarioApiFp(this.configuration).findScenarioById(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
5560
6272
|
}
|
|
5561
6273
|
|
|
6274
|
+
/**
|
|
6275
|
+
*
|
|
6276
|
+
* @summary get a control acccess for the Scenario
|
|
6277
|
+
* @param {string} organizationId the Organization identifier
|
|
6278
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6279
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6280
|
+
* @param {string} identityId the User identifier
|
|
6281
|
+
* @param {*} [options] Override http request option.
|
|
6282
|
+
* @throws {RequiredError}
|
|
6283
|
+
* @memberof ScenarioApi
|
|
6284
|
+
*/
|
|
6285
|
+
public getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
6286
|
+
return ScenarioApiFp(this.configuration).getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
6287
|
+
}
|
|
6288
|
+
|
|
5562
6289
|
/**
|
|
5563
6290
|
*
|
|
5564
6291
|
* @summary Get Scenario data download URL
|
|
@@ -5574,6 +6301,48 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5574
6301
|
return ScenarioApiFp(this.configuration).getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then((request) => request(this.axios, this.basePath));
|
|
5575
6302
|
}
|
|
5576
6303
|
|
|
6304
|
+
/**
|
|
6305
|
+
*
|
|
6306
|
+
* @summary Get the Scenario permission by given role
|
|
6307
|
+
* @param {string} organizationId the Organization identifier
|
|
6308
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6309
|
+
* @param {string} role the Role
|
|
6310
|
+
* @param {*} [options] Override http request option.
|
|
6311
|
+
* @throws {RequiredError}
|
|
6312
|
+
* @memberof ScenarioApi
|
|
6313
|
+
*/
|
|
6314
|
+
public getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig) {
|
|
6315
|
+
return ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(this.axios, this.basePath));
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
/**
|
|
6319
|
+
*
|
|
6320
|
+
* @summary Get the Scenario security information
|
|
6321
|
+
* @param {string} organizationId the Organization identifier
|
|
6322
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6323
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6324
|
+
* @param {*} [options] Override http request option.
|
|
6325
|
+
* @throws {RequiredError}
|
|
6326
|
+
* @memberof ScenarioApi
|
|
6327
|
+
*/
|
|
6328
|
+
public getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
6329
|
+
return ScenarioApiFp(this.configuration).getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
6330
|
+
}
|
|
6331
|
+
|
|
6332
|
+
/**
|
|
6333
|
+
*
|
|
6334
|
+
* @summary Get the Scenario security users list
|
|
6335
|
+
* @param {string} organizationId the Organization identifier
|
|
6336
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6337
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6338
|
+
* @param {*} [options] Override http request option.
|
|
6339
|
+
* @throws {RequiredError}
|
|
6340
|
+
* @memberof ScenarioApi
|
|
6341
|
+
*/
|
|
6342
|
+
public getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
6343
|
+
return ScenarioApiFp(this.configuration).getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
6344
|
+
}
|
|
6345
|
+
|
|
5577
6346
|
/**
|
|
5578
6347
|
*
|
|
5579
6348
|
* @summary Get the validation status of an scenario
|
|
@@ -5617,56 +6386,141 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5617
6386
|
|
|
5618
6387
|
/**
|
|
5619
6388
|
*
|
|
5620
|
-
* @summary Remove
|
|
6389
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5621
6390
|
* @param {string} organizationId the Organization identifier
|
|
5622
6391
|
* @param {string} workspaceId the Workspace identifier
|
|
5623
6392
|
* @param {string} scenarioId the Scenario identifier
|
|
6393
|
+
* @param {string} identityId the User identifier
|
|
5624
6394
|
* @param {*} [options] Override http request option.
|
|
5625
6395
|
* @throws {RequiredError}
|
|
5626
6396
|
* @memberof ScenarioApi
|
|
5627
6397
|
*/
|
|
5628
|
-
public
|
|
5629
|
-
return ScenarioApiFp(this.configuration).
|
|
6398
|
+
public removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
6399
|
+
return ScenarioApiFp(this.configuration).removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
5630
6400
|
}
|
|
5631
6401
|
|
|
5632
6402
|
/**
|
|
5633
6403
|
*
|
|
5634
|
-
* @summary
|
|
6404
|
+
* @summary set the Scenario default security
|
|
5635
6405
|
* @param {string} organizationId the Organization identifier
|
|
5636
6406
|
* @param {string} workspaceId the Workspace identifier
|
|
5637
6407
|
* @param {string} scenarioId the Scenario identifier
|
|
5638
|
-
* @param {string}
|
|
6408
|
+
* @param {string} body the new Scenario default security.
|
|
6409
|
+
* @param {*} [options] Override http request option.
|
|
6410
|
+
* @throws {RequiredError}
|
|
6411
|
+
* @memberof ScenarioApi
|
|
6412
|
+
*/
|
|
6413
|
+
public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: AxiosRequestConfig) {
|
|
6414
|
+
return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then((request) => request(this.axios, this.basePath));
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
/**
|
|
6418
|
+
*
|
|
6419
|
+
* @summary Update a scenario
|
|
6420
|
+
* @param {string} organizationId the Organization identifier
|
|
6421
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6422
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6423
|
+
* @param {Scenario} scenario the new Scenario details.
|
|
5639
6424
|
* @param {*} [options] Override http request option.
|
|
5640
6425
|
* @throws {RequiredError}
|
|
5641
6426
|
* @memberof ScenarioApi
|
|
5642
6427
|
*/
|
|
5643
|
-
public
|
|
5644
|
-
return ScenarioApiFp(this.configuration).
|
|
6428
|
+
public updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: AxiosRequestConfig) {
|
|
6429
|
+
return ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(this.axios, this.basePath));
|
|
5645
6430
|
}
|
|
6431
|
+
}
|
|
6432
|
+
|
|
6433
|
+
|
|
6434
|
+
/**
|
|
6435
|
+
* ScenariorunApi - axios parameter creator
|
|
6436
|
+
* @export
|
|
6437
|
+
*/
|
|
6438
|
+
export const ScenariorunApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6439
|
+
return {
|
|
6440
|
+
/**
|
|
6441
|
+
*
|
|
6442
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
6443
|
+
* @param {string} organizationId the Organization identifier
|
|
6444
|
+
* @param {*} [options] Override http request option.
|
|
6445
|
+
* @throws {RequiredError}
|
|
6446
|
+
*/
|
|
6447
|
+
deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6448
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6449
|
+
assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
|
|
6450
|
+
const localVarPath = `/organizations/{organization_id}/scenarioruns/deletehistoricaldata`
|
|
6451
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
6452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6453
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6454
|
+
let baseOptions;
|
|
6455
|
+
if (configuration) {
|
|
6456
|
+
baseOptions = configuration.baseOptions;
|
|
6457
|
+
}
|
|
6458
|
+
|
|
6459
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6460
|
+
const localVarHeaderParameter = {} as any;
|
|
6461
|
+
const localVarQueryParameter = {} as any;
|
|
6462
|
+
|
|
6463
|
+
// authentication oAuth2AuthCode required
|
|
6464
|
+
// oauth required
|
|
6465
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6466
|
+
|
|
6467
|
+
|
|
6468
|
+
|
|
6469
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6471
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6472
|
+
|
|
6473
|
+
return {
|
|
6474
|
+
url: toPathString(localVarUrlObj),
|
|
6475
|
+
options: localVarRequestOptions,
|
|
6476
|
+
};
|
|
6477
|
+
},
|
|
6478
|
+
/**
|
|
6479
|
+
*
|
|
6480
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
6481
|
+
* @param {string} organizationId the Organization identifier
|
|
6482
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6483
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6484
|
+
* @param {*} [options] Override http request option.
|
|
6485
|
+
* @throws {RequiredError}
|
|
6486
|
+
*/
|
|
6487
|
+
deleteHistoricalScenarioRunsByScenario: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6488
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6489
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId)
|
|
6490
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6491
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId)
|
|
6492
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
6493
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId)
|
|
6494
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns`
|
|
6495
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6496
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
6497
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
6498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6500
|
+
let baseOptions;
|
|
6501
|
+
if (configuration) {
|
|
6502
|
+
baseOptions = configuration.baseOptions;
|
|
6503
|
+
}
|
|
5646
6504
|
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
* @param {*} [options] Override http request option.
|
|
5655
|
-
* @throws {RequiredError}
|
|
5656
|
-
* @memberof ScenarioApi
|
|
5657
|
-
*/
|
|
5658
|
-
public updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: AxiosRequestConfig) {
|
|
5659
|
-
return ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(this.axios, this.basePath));
|
|
5660
|
-
}
|
|
5661
|
-
}
|
|
6505
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6506
|
+
const localVarHeaderParameter = {} as any;
|
|
6507
|
+
const localVarQueryParameter = {} as any;
|
|
6508
|
+
|
|
6509
|
+
// authentication oAuth2AuthCode required
|
|
6510
|
+
// oauth required
|
|
6511
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5662
6512
|
|
|
5663
6513
|
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
6514
|
+
|
|
6515
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6517
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6518
|
+
|
|
6519
|
+
return {
|
|
6520
|
+
url: toPathString(localVarUrlObj),
|
|
6521
|
+
options: localVarRequestOptions,
|
|
6522
|
+
};
|
|
6523
|
+
},
|
|
5670
6524
|
/**
|
|
5671
6525
|
*
|
|
5672
6526
|
* @summary Delete a scenariorun
|
|
@@ -6151,6 +7005,30 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6151
7005
|
export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
6152
7006
|
const localVarAxiosParamCreator = ScenariorunApiAxiosParamCreator(configuration)
|
|
6153
7007
|
return {
|
|
7008
|
+
/**
|
|
7009
|
+
*
|
|
7010
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7011
|
+
* @param {string} organizationId the Organization identifier
|
|
7012
|
+
* @param {*} [options] Override http request option.
|
|
7013
|
+
* @throws {RequiredError}
|
|
7014
|
+
*/
|
|
7015
|
+
async deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
|
|
7017
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7018
|
+
},
|
|
7019
|
+
/**
|
|
7020
|
+
*
|
|
7021
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7022
|
+
* @param {string} organizationId the Organization identifier
|
|
7023
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7024
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7025
|
+
* @param {*} [options] Override http request option.
|
|
7026
|
+
* @throws {RequiredError}
|
|
7027
|
+
*/
|
|
7028
|
+
async deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options);
|
|
7030
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7031
|
+
},
|
|
6154
7032
|
/**
|
|
6155
7033
|
*
|
|
6156
7034
|
* @summary Delete a scenariorun
|
|
@@ -6295,6 +7173,28 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
6295
7173
|
export const ScenariorunApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6296
7174
|
const localVarFp = ScenariorunApiFp(configuration)
|
|
6297
7175
|
return {
|
|
7176
|
+
/**
|
|
7177
|
+
*
|
|
7178
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7179
|
+
* @param {string} organizationId the Organization identifier
|
|
7180
|
+
* @param {*} [options] Override http request option.
|
|
7181
|
+
* @throws {RequiredError}
|
|
7182
|
+
*/
|
|
7183
|
+
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
7184
|
+
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
7185
|
+
},
|
|
7186
|
+
/**
|
|
7187
|
+
*
|
|
7188
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7189
|
+
* @param {string} organizationId the Organization identifier
|
|
7190
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7191
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7192
|
+
* @param {*} [options] Override http request option.
|
|
7193
|
+
* @throws {RequiredError}
|
|
7194
|
+
*/
|
|
7195
|
+
deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<void> {
|
|
7196
|
+
return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
7197
|
+
},
|
|
6298
7198
|
/**
|
|
6299
7199
|
*
|
|
6300
7200
|
* @summary Delete a scenariorun
|
|
@@ -6428,6 +7328,32 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
6428
7328
|
* @extends {BaseAPI}
|
|
6429
7329
|
*/
|
|
6430
7330
|
export class ScenariorunApi extends BaseAPI {
|
|
7331
|
+
/**
|
|
7332
|
+
*
|
|
7333
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7334
|
+
* @param {string} organizationId the Organization identifier
|
|
7335
|
+
* @param {*} [options] Override http request option.
|
|
7336
|
+
* @throws {RequiredError}
|
|
7337
|
+
* @memberof ScenariorunApi
|
|
7338
|
+
*/
|
|
7339
|
+
public deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig) {
|
|
7340
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
7341
|
+
}
|
|
7342
|
+
|
|
7343
|
+
/**
|
|
7344
|
+
*
|
|
7345
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7346
|
+
* @param {string} organizationId the Organization identifier
|
|
7347
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7348
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7349
|
+
* @param {*} [options] Override http request option.
|
|
7350
|
+
* @throws {RequiredError}
|
|
7351
|
+
* @memberof ScenariorunApi
|
|
7352
|
+
*/
|
|
7353
|
+
public deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
7354
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
7355
|
+
}
|
|
7356
|
+
|
|
6431
7357
|
/**
|
|
6432
7358
|
*
|
|
6433
7359
|
* @summary Delete a scenariorun
|
|
@@ -9395,21 +10321,197 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9395
10321
|
return {
|
|
9396
10322
|
/**
|
|
9397
10323
|
*
|
|
9398
|
-
* @summary
|
|
10324
|
+
* @summary add a control acccess to the Workspace
|
|
10325
|
+
* @param {string} organizationId the Organization identifier
|
|
10326
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10327
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10328
|
+
* @param {*} [options] Override http request option.
|
|
10329
|
+
* @throws {RequiredError}
|
|
10330
|
+
*/
|
|
10331
|
+
addWorkspaceAccessControl: async (organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10332
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10333
|
+
assertParamExists('addWorkspaceAccessControl', 'organizationId', organizationId)
|
|
10334
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10335
|
+
assertParamExists('addWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
10336
|
+
// verify required parameter 'workspaceAccessControl' is not null or undefined
|
|
10337
|
+
assertParamExists('addWorkspaceAccessControl', 'workspaceAccessControl', workspaceAccessControl)
|
|
10338
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access`
|
|
10339
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10340
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10341
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10342
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10343
|
+
let baseOptions;
|
|
10344
|
+
if (configuration) {
|
|
10345
|
+
baseOptions = configuration.baseOptions;
|
|
10346
|
+
}
|
|
10347
|
+
|
|
10348
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10349
|
+
const localVarHeaderParameter = {} as any;
|
|
10350
|
+
const localVarQueryParameter = {} as any;
|
|
10351
|
+
|
|
10352
|
+
// authentication oAuth2AuthCode required
|
|
10353
|
+
// oauth required
|
|
10354
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10355
|
+
|
|
10356
|
+
|
|
10357
|
+
|
|
10358
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10359
|
+
|
|
10360
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10362
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10363
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceAccessControl, localVarRequestOptions, configuration)
|
|
10364
|
+
|
|
10365
|
+
return {
|
|
10366
|
+
url: toPathString(localVarUrlObj),
|
|
10367
|
+
options: localVarRequestOptions,
|
|
10368
|
+
};
|
|
10369
|
+
},
|
|
10370
|
+
/**
|
|
10371
|
+
*
|
|
10372
|
+
* @summary Create a new workspace
|
|
10373
|
+
* @param {string} organizationId the Organization identifier
|
|
10374
|
+
* @param {Workspace} workspace the Workspace to create
|
|
10375
|
+
* @param {*} [options] Override http request option.
|
|
10376
|
+
* @throws {RequiredError}
|
|
10377
|
+
*/
|
|
10378
|
+
createWorkspace: async (organizationId: string, workspace: Workspace, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10379
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10380
|
+
assertParamExists('createWorkspace', 'organizationId', organizationId)
|
|
10381
|
+
// verify required parameter 'workspace' is not null or undefined
|
|
10382
|
+
assertParamExists('createWorkspace', 'workspace', workspace)
|
|
10383
|
+
const localVarPath = `/organizations/{organization_id}/workspaces`
|
|
10384
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
10385
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10386
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10387
|
+
let baseOptions;
|
|
10388
|
+
if (configuration) {
|
|
10389
|
+
baseOptions = configuration.baseOptions;
|
|
10390
|
+
}
|
|
10391
|
+
|
|
10392
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10393
|
+
const localVarHeaderParameter = {} as any;
|
|
10394
|
+
const localVarQueryParameter = {} as any;
|
|
10395
|
+
|
|
10396
|
+
// authentication oAuth2AuthCode required
|
|
10397
|
+
// oauth required
|
|
10398
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10399
|
+
|
|
10400
|
+
|
|
10401
|
+
|
|
10402
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10403
|
+
|
|
10404
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10406
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10407
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
|
|
10408
|
+
|
|
10409
|
+
return {
|
|
10410
|
+
url: toPathString(localVarUrlObj),
|
|
10411
|
+
options: localVarRequestOptions,
|
|
10412
|
+
};
|
|
10413
|
+
},
|
|
10414
|
+
/**
|
|
10415
|
+
*
|
|
10416
|
+
* @summary Delete all Workspace files
|
|
10417
|
+
* @param {string} organizationId the Organization identifier
|
|
10418
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10419
|
+
* @param {*} [options] Override http request option.
|
|
10420
|
+
* @throws {RequiredError}
|
|
10421
|
+
*/
|
|
10422
|
+
deleteAllWorkspaceFiles: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10423
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10424
|
+
assertParamExists('deleteAllWorkspaceFiles', 'organizationId', organizationId)
|
|
10425
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10426
|
+
assertParamExists('deleteAllWorkspaceFiles', 'workspaceId', workspaceId)
|
|
10427
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files`
|
|
10428
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10429
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10431
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10432
|
+
let baseOptions;
|
|
10433
|
+
if (configuration) {
|
|
10434
|
+
baseOptions = configuration.baseOptions;
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10438
|
+
const localVarHeaderParameter = {} as any;
|
|
10439
|
+
const localVarQueryParameter = {} as any;
|
|
10440
|
+
|
|
10441
|
+
// authentication oAuth2AuthCode required
|
|
10442
|
+
// oauth required
|
|
10443
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10444
|
+
|
|
10445
|
+
|
|
10446
|
+
|
|
10447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10449
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10450
|
+
|
|
10451
|
+
return {
|
|
10452
|
+
url: toPathString(localVarUrlObj),
|
|
10453
|
+
options: localVarRequestOptions,
|
|
10454
|
+
};
|
|
10455
|
+
},
|
|
10456
|
+
/**
|
|
10457
|
+
*
|
|
10458
|
+
* @summary Delete a workspace
|
|
10459
|
+
* @param {string} organizationId the Organization identifier
|
|
10460
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10461
|
+
* @param {*} [options] Override http request option.
|
|
10462
|
+
* @throws {RequiredError}
|
|
10463
|
+
*/
|
|
10464
|
+
deleteWorkspace: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10465
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10466
|
+
assertParamExists('deleteWorkspace', 'organizationId', organizationId)
|
|
10467
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10468
|
+
assertParamExists('deleteWorkspace', 'workspaceId', workspaceId)
|
|
10469
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
10470
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10471
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10474
|
+
let baseOptions;
|
|
10475
|
+
if (configuration) {
|
|
10476
|
+
baseOptions = configuration.baseOptions;
|
|
10477
|
+
}
|
|
10478
|
+
|
|
10479
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10480
|
+
const localVarHeaderParameter = {} as any;
|
|
10481
|
+
const localVarQueryParameter = {} as any;
|
|
10482
|
+
|
|
10483
|
+
// authentication oAuth2AuthCode required
|
|
10484
|
+
// oauth required
|
|
10485
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10486
|
+
|
|
10487
|
+
|
|
10488
|
+
|
|
10489
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10491
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10492
|
+
|
|
10493
|
+
return {
|
|
10494
|
+
url: toPathString(localVarUrlObj),
|
|
10495
|
+
options: localVarRequestOptions,
|
|
10496
|
+
};
|
|
10497
|
+
},
|
|
10498
|
+
/**
|
|
10499
|
+
*
|
|
10500
|
+
* @summary Delete a workspace file
|
|
9399
10501
|
* @param {string} organizationId the Organization identifier
|
|
9400
10502
|
* @param {string} workspaceId the Workspace identifier
|
|
9401
|
-
* @param {
|
|
10503
|
+
* @param {string} fileName the file name
|
|
9402
10504
|
* @param {*} [options] Override http request option.
|
|
9403
10505
|
* @throws {RequiredError}
|
|
9404
10506
|
*/
|
|
9405
|
-
|
|
10507
|
+
deleteWorkspaceFile: async (organizationId: string, workspaceId: string, fileName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9406
10508
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9407
|
-
assertParamExists('
|
|
10509
|
+
assertParamExists('deleteWorkspaceFile', 'organizationId', organizationId)
|
|
9408
10510
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9409
|
-
assertParamExists('
|
|
9410
|
-
// verify required parameter '
|
|
9411
|
-
assertParamExists('
|
|
9412
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
10511
|
+
assertParamExists('deleteWorkspaceFile', 'workspaceId', workspaceId)
|
|
10512
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
10513
|
+
assertParamExists('deleteWorkspaceFile', 'fileName', fileName)
|
|
10514
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files/delete`
|
|
9413
10515
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9414
10516
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9415
10517
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9419,7 +10521,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9419
10521
|
baseOptions = configuration.baseOptions;
|
|
9420
10522
|
}
|
|
9421
10523
|
|
|
9422
|
-
const localVarRequestOptions = { method: '
|
|
10524
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9423
10525
|
const localVarHeaderParameter = {} as any;
|
|
9424
10526
|
const localVarQueryParameter = {} as any;
|
|
9425
10527
|
|
|
@@ -9427,14 +10529,15 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9427
10529
|
// oauth required
|
|
9428
10530
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9429
10531
|
|
|
10532
|
+
if (fileName !== undefined) {
|
|
10533
|
+
localVarQueryParameter['file_name'] = fileName;
|
|
10534
|
+
}
|
|
10535
|
+
|
|
9430
10536
|
|
|
9431
10537
|
|
|
9432
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9433
|
-
|
|
9434
10538
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9435
10539
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9436
10540
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9437
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workspaceUser, localVarRequestOptions, configuration)
|
|
9438
10541
|
|
|
9439
10542
|
return {
|
|
9440
10543
|
url: toPathString(localVarUrlObj),
|
|
@@ -9443,19 +10546,23 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9443
10546
|
},
|
|
9444
10547
|
/**
|
|
9445
10548
|
*
|
|
9446
|
-
* @summary
|
|
10549
|
+
* @summary Download the Workspace File specified
|
|
9447
10550
|
* @param {string} organizationId the Organization identifier
|
|
9448
|
-
* @param {
|
|
10551
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10552
|
+
* @param {string} fileName the file name
|
|
9449
10553
|
* @param {*} [options] Override http request option.
|
|
9450
10554
|
* @throws {RequiredError}
|
|
9451
10555
|
*/
|
|
9452
|
-
|
|
10556
|
+
downloadWorkspaceFile: async (organizationId: string, workspaceId: string, fileName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9453
10557
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9454
|
-
assertParamExists('
|
|
9455
|
-
// verify required parameter '
|
|
9456
|
-
assertParamExists('
|
|
9457
|
-
|
|
9458
|
-
|
|
10558
|
+
assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId)
|
|
10559
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10560
|
+
assertParamExists('downloadWorkspaceFile', 'workspaceId', workspaceId)
|
|
10561
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
10562
|
+
assertParamExists('downloadWorkspaceFile', 'fileName', fileName)
|
|
10563
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files/download`
|
|
10564
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10565
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9459
10566
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9460
10567
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9461
10568
|
let baseOptions;
|
|
@@ -9463,7 +10570,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9463
10570
|
baseOptions = configuration.baseOptions;
|
|
9464
10571
|
}
|
|
9465
10572
|
|
|
9466
|
-
const localVarRequestOptions = { method: '
|
|
10573
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9467
10574
|
const localVarHeaderParameter = {} as any;
|
|
9468
10575
|
const localVarQueryParameter = {} as any;
|
|
9469
10576
|
|
|
@@ -9471,14 +10578,15 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9471
10578
|
// oauth required
|
|
9472
10579
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9473
10580
|
|
|
10581
|
+
if (fileName !== undefined) {
|
|
10582
|
+
localVarQueryParameter['file_name'] = fileName;
|
|
10583
|
+
}
|
|
10584
|
+
|
|
9474
10585
|
|
|
9475
10586
|
|
|
9476
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9477
|
-
|
|
9478
10587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9479
10588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9480
10589
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9481
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
|
|
9482
10590
|
|
|
9483
10591
|
return {
|
|
9484
10592
|
url: toPathString(localVarUrlObj),
|
|
@@ -9487,17 +10595,17 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9487
10595
|
},
|
|
9488
10596
|
/**
|
|
9489
10597
|
*
|
|
9490
|
-
* @summary
|
|
10598
|
+
* @summary List all Workspace files
|
|
9491
10599
|
* @param {string} organizationId the Organization identifier
|
|
9492
10600
|
* @param {string} workspaceId the Workspace identifier
|
|
9493
10601
|
* @param {*} [options] Override http request option.
|
|
9494
10602
|
* @throws {RequiredError}
|
|
9495
10603
|
*/
|
|
9496
|
-
|
|
10604
|
+
findAllWorkspaceFiles: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9497
10605
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9498
|
-
assertParamExists('
|
|
10606
|
+
assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId)
|
|
9499
10607
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9500
|
-
assertParamExists('
|
|
10608
|
+
assertParamExists('findAllWorkspaceFiles', 'workspaceId', workspaceId)
|
|
9501
10609
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files`
|
|
9502
10610
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9503
10611
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -9508,7 +10616,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9508
10616
|
baseOptions = configuration.baseOptions;
|
|
9509
10617
|
}
|
|
9510
10618
|
|
|
9511
|
-
const localVarRequestOptions = { method: '
|
|
10619
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9512
10620
|
const localVarHeaderParameter = {} as any;
|
|
9513
10621
|
const localVarQueryParameter = {} as any;
|
|
9514
10622
|
|
|
@@ -9529,20 +10637,16 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9529
10637
|
},
|
|
9530
10638
|
/**
|
|
9531
10639
|
*
|
|
9532
|
-
* @summary
|
|
10640
|
+
* @summary List all Workspaces
|
|
9533
10641
|
* @param {string} organizationId the Organization identifier
|
|
9534
|
-
* @param {string} workspaceId the Workspace identifier
|
|
9535
10642
|
* @param {*} [options] Override http request option.
|
|
9536
10643
|
* @throws {RequiredError}
|
|
9537
10644
|
*/
|
|
9538
|
-
|
|
10645
|
+
findAllWorkspaces: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9539
10646
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9540
|
-
assertParamExists('
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
9544
|
-
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9545
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10647
|
+
assertParamExists('findAllWorkspaces', 'organizationId', organizationId)
|
|
10648
|
+
const localVarPath = `/organizations/{organization_id}/workspaces`
|
|
10649
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
9546
10650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9547
10651
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9548
10652
|
let baseOptions;
|
|
@@ -9550,7 +10654,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9550
10654
|
baseOptions = configuration.baseOptions;
|
|
9551
10655
|
}
|
|
9552
10656
|
|
|
9553
|
-
const localVarRequestOptions = { method: '
|
|
10657
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9554
10658
|
const localVarHeaderParameter = {} as any;
|
|
9555
10659
|
const localVarQueryParameter = {} as any;
|
|
9556
10660
|
|
|
@@ -9571,21 +10675,18 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9571
10675
|
},
|
|
9572
10676
|
/**
|
|
9573
10677
|
*
|
|
9574
|
-
* @summary
|
|
10678
|
+
* @summary Get the details of an workspace
|
|
9575
10679
|
* @param {string} organizationId the Organization identifier
|
|
9576
10680
|
* @param {string} workspaceId the Workspace identifier
|
|
9577
|
-
* @param {string} fileName the file name
|
|
9578
10681
|
* @param {*} [options] Override http request option.
|
|
9579
10682
|
* @throws {RequiredError}
|
|
9580
10683
|
*/
|
|
9581
|
-
|
|
10684
|
+
findWorkspaceById: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9582
10685
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9583
|
-
assertParamExists('
|
|
10686
|
+
assertParamExists('findWorkspaceById', 'organizationId', organizationId)
|
|
9584
10687
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9585
|
-
assertParamExists('
|
|
9586
|
-
|
|
9587
|
-
assertParamExists('deleteWorkspaceFile', 'fileName', fileName)
|
|
9588
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files/delete`
|
|
10688
|
+
assertParamExists('findWorkspaceById', 'workspaceId', workspaceId)
|
|
10689
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
9589
10690
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9590
10691
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9591
10692
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9595,7 +10696,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9595
10696
|
baseOptions = configuration.baseOptions;
|
|
9596
10697
|
}
|
|
9597
10698
|
|
|
9598
|
-
const localVarRequestOptions = { method: '
|
|
10699
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9599
10700
|
const localVarHeaderParameter = {} as any;
|
|
9600
10701
|
const localVarQueryParameter = {} as any;
|
|
9601
10702
|
|
|
@@ -9603,10 +10704,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9603
10704
|
// oauth required
|
|
9604
10705
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9605
10706
|
|
|
9606
|
-
if (fileName !== undefined) {
|
|
9607
|
-
localVarQueryParameter['file_name'] = fileName;
|
|
9608
|
-
}
|
|
9609
|
-
|
|
9610
10707
|
|
|
9611
10708
|
|
|
9612
10709
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9620,23 +10717,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9620
10717
|
},
|
|
9621
10718
|
/**
|
|
9622
10719
|
*
|
|
9623
|
-
* @summary
|
|
10720
|
+
* @summary get a control acccess for the Workspace
|
|
9624
10721
|
* @param {string} organizationId the Organization identifier
|
|
9625
10722
|
* @param {string} workspaceId the Workspace identifier
|
|
9626
|
-
* @param {string}
|
|
10723
|
+
* @param {string} identityId the User identifier
|
|
9627
10724
|
* @param {*} [options] Override http request option.
|
|
9628
10725
|
* @throws {RequiredError}
|
|
9629
10726
|
*/
|
|
9630
|
-
|
|
10727
|
+
getWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9631
10728
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9632
|
-
assertParamExists('
|
|
10729
|
+
assertParamExists('getWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9633
10730
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9634
|
-
assertParamExists('
|
|
9635
|
-
// verify required parameter '
|
|
9636
|
-
assertParamExists('
|
|
9637
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
10731
|
+
assertParamExists('getWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
10732
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
10733
|
+
assertParamExists('getWorkspaceAccessControl', 'identityId', identityId)
|
|
10734
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
9638
10735
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9639
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10736
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10737
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9640
10738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9641
10739
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9642
10740
|
let baseOptions;
|
|
@@ -9652,10 +10750,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9652
10750
|
// oauth required
|
|
9653
10751
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9654
10752
|
|
|
9655
|
-
if (fileName !== undefined) {
|
|
9656
|
-
localVarQueryParameter['file_name'] = fileName;
|
|
9657
|
-
}
|
|
9658
|
-
|
|
9659
10753
|
|
|
9660
10754
|
|
|
9661
10755
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9669,20 +10763,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9669
10763
|
},
|
|
9670
10764
|
/**
|
|
9671
10765
|
*
|
|
9672
|
-
* @summary
|
|
10766
|
+
* @summary Get the Workspace permission by given role
|
|
9673
10767
|
* @param {string} organizationId the Organization identifier
|
|
9674
10768
|
* @param {string} workspaceId the Workspace identifier
|
|
10769
|
+
* @param {string} role the Role
|
|
9675
10770
|
* @param {*} [options] Override http request option.
|
|
9676
10771
|
* @throws {RequiredError}
|
|
9677
10772
|
*/
|
|
9678
|
-
|
|
10773
|
+
getWorkspacePermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9679
10774
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9680
|
-
assertParamExists('
|
|
10775
|
+
assertParamExists('getWorkspacePermissions', 'organizationId', organizationId)
|
|
9681
10776
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9682
|
-
assertParamExists('
|
|
9683
|
-
|
|
10777
|
+
assertParamExists('getWorkspacePermissions', 'workspaceId', workspaceId)
|
|
10778
|
+
// verify required parameter 'role' is not null or undefined
|
|
10779
|
+
assertParamExists('getWorkspacePermissions', 'role', role)
|
|
10780
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}`
|
|
9684
10781
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9685
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10782
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10783
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
9686
10784
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9687
10785
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9688
10786
|
let baseOptions;
|
|
@@ -9711,16 +10809,20 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9711
10809
|
},
|
|
9712
10810
|
/**
|
|
9713
10811
|
*
|
|
9714
|
-
* @summary
|
|
10812
|
+
* @summary Get the Workspace security information
|
|
9715
10813
|
* @param {string} organizationId the Organization identifier
|
|
10814
|
+
* @param {string} workspaceId the Workspace identifier
|
|
9716
10815
|
* @param {*} [options] Override http request option.
|
|
9717
10816
|
* @throws {RequiredError}
|
|
9718
10817
|
*/
|
|
9719
|
-
|
|
10818
|
+
getWorkspaceSecurity: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9720
10819
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9721
|
-
assertParamExists('
|
|
9722
|
-
|
|
9723
|
-
|
|
10820
|
+
assertParamExists('getWorkspaceSecurity', 'organizationId', organizationId)
|
|
10821
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10822
|
+
assertParamExists('getWorkspaceSecurity', 'workspaceId', workspaceId)
|
|
10823
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security`
|
|
10824
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10825
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9724
10826
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9725
10827
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9726
10828
|
let baseOptions;
|
|
@@ -9749,18 +10851,18 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9749
10851
|
},
|
|
9750
10852
|
/**
|
|
9751
10853
|
*
|
|
9752
|
-
* @summary Get the
|
|
10854
|
+
* @summary Get the Workspace security users list
|
|
9753
10855
|
* @param {string} organizationId the Organization identifier
|
|
9754
10856
|
* @param {string} workspaceId the Workspace identifier
|
|
9755
10857
|
* @param {*} [options] Override http request option.
|
|
9756
10858
|
* @throws {RequiredError}
|
|
9757
10859
|
*/
|
|
9758
|
-
|
|
10860
|
+
getWorkspaceSecurityUsers: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9759
10861
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9760
|
-
assertParamExists('
|
|
10862
|
+
assertParamExists('getWorkspaceSecurityUsers', 'organizationId', organizationId)
|
|
9761
10863
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9762
|
-
assertParamExists('
|
|
9763
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
10864
|
+
assertParamExists('getWorkspaceSecurityUsers', 'workspaceId', workspaceId)
|
|
10865
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/users`
|
|
9764
10866
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9765
10867
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9766
10868
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9791,20 +10893,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9791
10893
|
},
|
|
9792
10894
|
/**
|
|
9793
10895
|
*
|
|
9794
|
-
* @summary Remove
|
|
10896
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
9795
10897
|
* @param {string} organizationId the Organization identifier
|
|
9796
10898
|
* @param {string} workspaceId the Workspace identifier
|
|
10899
|
+
* @param {string} identityId the User identifier
|
|
9797
10900
|
* @param {*} [options] Override http request option.
|
|
9798
10901
|
* @throws {RequiredError}
|
|
9799
10902
|
*/
|
|
9800
|
-
|
|
10903
|
+
removeWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9801
10904
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9802
|
-
assertParamExists('
|
|
10905
|
+
assertParamExists('removeWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9803
10906
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9804
|
-
assertParamExists('
|
|
9805
|
-
|
|
10907
|
+
assertParamExists('removeWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
10908
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
10909
|
+
assertParamExists('removeWorkspaceAccessControl', 'identityId', identityId)
|
|
10910
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
9806
10911
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9807
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10912
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10913
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9808
10914
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9809
10915
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9810
10916
|
let baseOptions;
|
|
@@ -9833,24 +10939,23 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9833
10939
|
},
|
|
9834
10940
|
/**
|
|
9835
10941
|
*
|
|
9836
|
-
* @summary
|
|
10942
|
+
* @summary set the Workspace default security
|
|
9837
10943
|
* @param {string} organizationId the Organization identifier
|
|
9838
10944
|
* @param {string} workspaceId the Workspace identifier
|
|
9839
|
-
* @param {string}
|
|
10945
|
+
* @param {string} body the new Workspace default security.
|
|
9840
10946
|
* @param {*} [options] Override http request option.
|
|
9841
10947
|
* @throws {RequiredError}
|
|
9842
10948
|
*/
|
|
9843
|
-
|
|
10949
|
+
setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9844
10950
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9845
|
-
assertParamExists('
|
|
10951
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId)
|
|
9846
10952
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9847
|
-
assertParamExists('
|
|
9848
|
-
// verify required parameter '
|
|
9849
|
-
assertParamExists('
|
|
9850
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
10953
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId)
|
|
10954
|
+
// verify required parameter 'body' is not null or undefined
|
|
10955
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'body', body)
|
|
10956
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/default`
|
|
9851
10957
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9852
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
9853
|
-
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
10958
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9854
10959
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9855
10960
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9856
10961
|
let baseOptions;
|
|
@@ -9858,7 +10963,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9858
10963
|
baseOptions = configuration.baseOptions;
|
|
9859
10964
|
}
|
|
9860
10965
|
|
|
9861
|
-
const localVarRequestOptions = { method: '
|
|
10966
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9862
10967
|
const localVarHeaderParameter = {} as any;
|
|
9863
10968
|
const localVarQueryParameter = {} as any;
|
|
9864
10969
|
|
|
@@ -9868,9 +10973,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9868
10973
|
|
|
9869
10974
|
|
|
9870
10975
|
|
|
10976
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10977
|
+
|
|
9871
10978
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9872
10979
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9873
10980
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10981
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
9874
10982
|
|
|
9875
10983
|
return {
|
|
9876
10984
|
url: toPathString(localVarUrlObj),
|
|
@@ -10000,15 +11108,15 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10000
11108
|
return {
|
|
10001
11109
|
/**
|
|
10002
11110
|
*
|
|
10003
|
-
* @summary
|
|
11111
|
+
* @summary add a control acccess to the Workspace
|
|
10004
11112
|
* @param {string} organizationId the Organization identifier
|
|
10005
11113
|
* @param {string} workspaceId the Workspace identifier
|
|
10006
|
-
* @param {
|
|
11114
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10007
11115
|
* @param {*} [options] Override http request option.
|
|
10008
11116
|
* @throws {RequiredError}
|
|
10009
11117
|
*/
|
|
10010
|
-
async
|
|
10011
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11118
|
+
async addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11119
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options);
|
|
10012
11120
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10013
11121
|
},
|
|
10014
11122
|
/**
|
|
@@ -10110,27 +11218,78 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10110
11218
|
},
|
|
10111
11219
|
/**
|
|
10112
11220
|
*
|
|
10113
|
-
* @summary
|
|
11221
|
+
* @summary get a control acccess for the Workspace
|
|
10114
11222
|
* @param {string} organizationId the Organization identifier
|
|
10115
11223
|
* @param {string} workspaceId the Workspace identifier
|
|
11224
|
+
* @param {string} identityId the User identifier
|
|
10116
11225
|
* @param {*} [options] Override http request option.
|
|
10117
11226
|
* @throws {RequiredError}
|
|
10118
11227
|
*/
|
|
10119
|
-
async
|
|
10120
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11228
|
+
async getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options);
|
|
10121
11230
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10122
11231
|
},
|
|
10123
11232
|
/**
|
|
10124
11233
|
*
|
|
10125
|
-
* @summary
|
|
11234
|
+
* @summary Get the Workspace permission by given role
|
|
10126
11235
|
* @param {string} organizationId the Organization identifier
|
|
10127
11236
|
* @param {string} workspaceId the Workspace identifier
|
|
10128
|
-
* @param {string}
|
|
11237
|
+
* @param {string} role the Role
|
|
11238
|
+
* @param {*} [options] Override http request option.
|
|
11239
|
+
* @throws {RequiredError}
|
|
11240
|
+
*/
|
|
11241
|
+
async getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
11242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspacePermissions(organizationId, workspaceId, role, options);
|
|
11243
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11244
|
+
},
|
|
11245
|
+
/**
|
|
11246
|
+
*
|
|
11247
|
+
* @summary Get the Workspace security information
|
|
11248
|
+
* @param {string} organizationId the Organization identifier
|
|
11249
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11250
|
+
* @param {*} [options] Override http request option.
|
|
11251
|
+
* @throws {RequiredError}
|
|
11252
|
+
*/
|
|
11253
|
+
async getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
|
|
11254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurity(organizationId, workspaceId, options);
|
|
11255
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11256
|
+
},
|
|
11257
|
+
/**
|
|
11258
|
+
*
|
|
11259
|
+
* @summary Get the Workspace security users list
|
|
11260
|
+
* @param {string} organizationId the Organization identifier
|
|
11261
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11262
|
+
* @param {*} [options] Override http request option.
|
|
11263
|
+
* @throws {RequiredError}
|
|
11264
|
+
*/
|
|
11265
|
+
async getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
11266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options);
|
|
11267
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11268
|
+
},
|
|
11269
|
+
/**
|
|
11270
|
+
*
|
|
11271
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
11272
|
+
* @param {string} organizationId the Organization identifier
|
|
11273
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11274
|
+
* @param {string} identityId the User identifier
|
|
11275
|
+
* @param {*} [options] Override http request option.
|
|
11276
|
+
* @throws {RequiredError}
|
|
11277
|
+
*/
|
|
11278
|
+
async removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
11279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options);
|
|
11280
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11281
|
+
},
|
|
11282
|
+
/**
|
|
11283
|
+
*
|
|
11284
|
+
* @summary set the Workspace default security
|
|
11285
|
+
* @param {string} organizationId the Organization identifier
|
|
11286
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11287
|
+
* @param {string} body the new Workspace default security.
|
|
10129
11288
|
* @param {*} [options] Override http request option.
|
|
10130
11289
|
* @throws {RequiredError}
|
|
10131
11290
|
*/
|
|
10132
|
-
async
|
|
10133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11291
|
+
async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
|
|
11292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options);
|
|
10134
11293
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10135
11294
|
},
|
|
10136
11295
|
/**
|
|
@@ -10173,15 +11332,15 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10173
11332
|
return {
|
|
10174
11333
|
/**
|
|
10175
11334
|
*
|
|
10176
|
-
* @summary
|
|
11335
|
+
* @summary add a control acccess to the Workspace
|
|
10177
11336
|
* @param {string} organizationId the Organization identifier
|
|
10178
11337
|
* @param {string} workspaceId the Workspace identifier
|
|
10179
|
-
* @param {
|
|
11338
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10180
11339
|
* @param {*} [options] Override http request option.
|
|
10181
11340
|
* @throws {RequiredError}
|
|
10182
11341
|
*/
|
|
10183
|
-
|
|
10184
|
-
return localVarFp.
|
|
11342
|
+
addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11343
|
+
return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(axios, basePath));
|
|
10185
11344
|
},
|
|
10186
11345
|
/**
|
|
10187
11346
|
*
|
|
@@ -10274,26 +11433,73 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10274
11433
|
},
|
|
10275
11434
|
/**
|
|
10276
11435
|
*
|
|
10277
|
-
* @summary
|
|
11436
|
+
* @summary get a control acccess for the Workspace
|
|
10278
11437
|
* @param {string} organizationId the Organization identifier
|
|
10279
11438
|
* @param {string} workspaceId the Workspace identifier
|
|
11439
|
+
* @param {string} identityId the User identifier
|
|
10280
11440
|
* @param {*} [options] Override http request option.
|
|
10281
11441
|
* @throws {RequiredError}
|
|
10282
11442
|
*/
|
|
10283
|
-
|
|
10284
|
-
return localVarFp.
|
|
11443
|
+
getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11444
|
+
return localVarFp.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(axios, basePath));
|
|
10285
11445
|
},
|
|
10286
11446
|
/**
|
|
10287
11447
|
*
|
|
10288
|
-
* @summary
|
|
11448
|
+
* @summary Get the Workspace permission by given role
|
|
10289
11449
|
* @param {string} organizationId the Organization identifier
|
|
10290
11450
|
* @param {string} workspaceId the Workspace identifier
|
|
10291
|
-
* @param {string}
|
|
11451
|
+
* @param {string} role the Role
|
|
11452
|
+
* @param {*} [options] Override http request option.
|
|
11453
|
+
* @throws {RequiredError}
|
|
11454
|
+
*/
|
|
11455
|
+
getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
11456
|
+
return localVarFp.getWorkspacePermissions(organizationId, workspaceId, role, options).then((request) => request(axios, basePath));
|
|
11457
|
+
},
|
|
11458
|
+
/**
|
|
11459
|
+
*
|
|
11460
|
+
* @summary Get the Workspace security information
|
|
11461
|
+
* @param {string} organizationId the Organization identifier
|
|
11462
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11463
|
+
* @param {*} [options] Override http request option.
|
|
11464
|
+
* @throws {RequiredError}
|
|
11465
|
+
*/
|
|
11466
|
+
getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: any): AxiosPromise<WorkspaceSecurity> {
|
|
11467
|
+
return localVarFp.getWorkspaceSecurity(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
11468
|
+
},
|
|
11469
|
+
/**
|
|
11470
|
+
*
|
|
11471
|
+
* @summary Get the Workspace security users list
|
|
11472
|
+
* @param {string} organizationId the Organization identifier
|
|
11473
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11474
|
+
* @param {*} [options] Override http request option.
|
|
11475
|
+
* @throws {RequiredError}
|
|
11476
|
+
*/
|
|
11477
|
+
getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<string>> {
|
|
11478
|
+
return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
11479
|
+
},
|
|
11480
|
+
/**
|
|
11481
|
+
*
|
|
11482
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
11483
|
+
* @param {string} organizationId the Organization identifier
|
|
11484
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11485
|
+
* @param {string} identityId the User identifier
|
|
11486
|
+
* @param {*} [options] Override http request option.
|
|
11487
|
+
* @throws {RequiredError}
|
|
11488
|
+
*/
|
|
11489
|
+
removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
11490
|
+
return localVarFp.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(axios, basePath));
|
|
11491
|
+
},
|
|
11492
|
+
/**
|
|
11493
|
+
*
|
|
11494
|
+
* @summary set the Workspace default security
|
|
11495
|
+
* @param {string} organizationId the Organization identifier
|
|
11496
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11497
|
+
* @param {string} body the new Workspace default security.
|
|
10292
11498
|
* @param {*} [options] Override http request option.
|
|
10293
11499
|
* @throws {RequiredError}
|
|
10294
11500
|
*/
|
|
10295
|
-
|
|
10296
|
-
return localVarFp.
|
|
11501
|
+
setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: any): AxiosPromise<WorkspaceSecurity> {
|
|
11502
|
+
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then((request) => request(axios, basePath));
|
|
10297
11503
|
},
|
|
10298
11504
|
/**
|
|
10299
11505
|
*
|
|
@@ -10333,16 +11539,16 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10333
11539
|
export class WorkspaceApi extends BaseAPI {
|
|
10334
11540
|
/**
|
|
10335
11541
|
*
|
|
10336
|
-
* @summary
|
|
11542
|
+
* @summary add a control acccess to the Workspace
|
|
10337
11543
|
* @param {string} organizationId the Organization identifier
|
|
10338
11544
|
* @param {string} workspaceId the Workspace identifier
|
|
10339
|
-
* @param {
|
|
11545
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10340
11546
|
* @param {*} [options] Override http request option.
|
|
10341
11547
|
* @throws {RequiredError}
|
|
10342
11548
|
* @memberof WorkspaceApi
|
|
10343
11549
|
*/
|
|
10344
|
-
public
|
|
10345
|
-
return WorkspaceApiFp(this.configuration).
|
|
11550
|
+
public addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: AxiosRequestConfig) {
|
|
11551
|
+
return WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
10346
11552
|
}
|
|
10347
11553
|
|
|
10348
11554
|
/**
|
|
@@ -10452,29 +11658,84 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
10452
11658
|
|
|
10453
11659
|
/**
|
|
10454
11660
|
*
|
|
10455
|
-
* @summary
|
|
11661
|
+
* @summary get a control acccess for the Workspace
|
|
10456
11662
|
* @param {string} organizationId the Organization identifier
|
|
10457
11663
|
* @param {string} workspaceId the Workspace identifier
|
|
11664
|
+
* @param {string} identityId the User identifier
|
|
10458
11665
|
* @param {*} [options] Override http request option.
|
|
10459
11666
|
* @throws {RequiredError}
|
|
10460
11667
|
* @memberof WorkspaceApi
|
|
10461
11668
|
*/
|
|
10462
|
-
public
|
|
10463
|
-
return WorkspaceApiFp(this.configuration).
|
|
11669
|
+
public getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
11670
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
10464
11671
|
}
|
|
10465
11672
|
|
|
10466
11673
|
/**
|
|
10467
11674
|
*
|
|
10468
|
-
* @summary
|
|
11675
|
+
* @summary Get the Workspace permission by given role
|
|
10469
11676
|
* @param {string} organizationId the Organization identifier
|
|
10470
11677
|
* @param {string} workspaceId the Workspace identifier
|
|
10471
|
-
* @param {string}
|
|
11678
|
+
* @param {string} role the Role
|
|
11679
|
+
* @param {*} [options] Override http request option.
|
|
11680
|
+
* @throws {RequiredError}
|
|
11681
|
+
* @memberof WorkspaceApi
|
|
11682
|
+
*/
|
|
11683
|
+
public getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig) {
|
|
11684
|
+
return WorkspaceApiFp(this.configuration).getWorkspacePermissions(organizationId, workspaceId, role, options).then((request) => request(this.axios, this.basePath));
|
|
11685
|
+
}
|
|
11686
|
+
|
|
11687
|
+
/**
|
|
11688
|
+
*
|
|
11689
|
+
* @summary Get the Workspace security information
|
|
11690
|
+
* @param {string} organizationId the Organization identifier
|
|
11691
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11692
|
+
* @param {*} [options] Override http request option.
|
|
11693
|
+
* @throws {RequiredError}
|
|
11694
|
+
* @memberof WorkspaceApi
|
|
11695
|
+
*/
|
|
11696
|
+
public getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
11697
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceSecurity(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
11698
|
+
}
|
|
11699
|
+
|
|
11700
|
+
/**
|
|
11701
|
+
*
|
|
11702
|
+
* @summary Get the Workspace security users list
|
|
11703
|
+
* @param {string} organizationId the Organization identifier
|
|
11704
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11705
|
+
* @param {*} [options] Override http request option.
|
|
11706
|
+
* @throws {RequiredError}
|
|
11707
|
+
* @memberof WorkspaceApi
|
|
11708
|
+
*/
|
|
11709
|
+
public getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
11710
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
11711
|
+
}
|
|
11712
|
+
|
|
11713
|
+
/**
|
|
11714
|
+
*
|
|
11715
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
11716
|
+
* @param {string} organizationId the Organization identifier
|
|
11717
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11718
|
+
* @param {string} identityId the User identifier
|
|
11719
|
+
* @param {*} [options] Override http request option.
|
|
11720
|
+
* @throws {RequiredError}
|
|
11721
|
+
* @memberof WorkspaceApi
|
|
11722
|
+
*/
|
|
11723
|
+
public removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
11724
|
+
return WorkspaceApiFp(this.configuration).removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
11725
|
+
}
|
|
11726
|
+
|
|
11727
|
+
/**
|
|
11728
|
+
*
|
|
11729
|
+
* @summary set the Workspace default security
|
|
11730
|
+
* @param {string} organizationId the Organization identifier
|
|
11731
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11732
|
+
* @param {string} body the new Workspace default security.
|
|
10472
11733
|
* @param {*} [options] Override http request option.
|
|
10473
11734
|
* @throws {RequiredError}
|
|
10474
11735
|
* @memberof WorkspaceApi
|
|
10475
11736
|
*/
|
|
10476
|
-
public
|
|
10477
|
-
return WorkspaceApiFp(this.configuration).
|
|
11737
|
+
public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: AxiosRequestConfig) {
|
|
11738
|
+
return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then((request) => request(this.axios, this.basePath));
|
|
10478
11739
|
}
|
|
10479
11740
|
|
|
10480
11741
|
/**
|