@cosmotech/api-ts 0.1.14 → 2.0.6
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 +2140 -558
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/cosmotech-api-typescript-client.iml +9 -0
- package/dist/api.d.ts +1032 -225
- package/dist/api.js +2009 -278
- 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-lock.json +68 -8
- package/package.json +1 -1
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.6-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,67 @@ 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 Role
|
|
417
|
+
* @export
|
|
418
|
+
* @interface OrganizationRole
|
|
419
|
+
*/
|
|
420
|
+
export interface OrganizationRole {
|
|
421
|
+
/**
|
|
422
|
+
* the Organization Role
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof OrganizationRole
|
|
425
|
+
*/
|
|
426
|
+
'role': string;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* the Organization security information
|
|
430
|
+
* @export
|
|
431
|
+
* @interface OrganizationSecurity
|
|
432
|
+
*/
|
|
433
|
+
export interface OrganizationSecurity {
|
|
434
|
+
/**
|
|
435
|
+
* the role by default
|
|
436
|
+
* @type {string}
|
|
437
|
+
* @memberof OrganizationSecurity
|
|
438
|
+
*/
|
|
439
|
+
'default': string;
|
|
440
|
+
/**
|
|
441
|
+
* the list which can access this Organization with detailed access control information
|
|
442
|
+
* @type {Array<OrganizationAccessControl>}
|
|
443
|
+
* @memberof OrganizationSecurity
|
|
444
|
+
*/
|
|
445
|
+
'accessControlList': Array<OrganizationAccessControl>;
|
|
376
446
|
}
|
|
377
447
|
/**
|
|
378
448
|
* a cloud service resource
|
|
@@ -436,41 +506,6 @@ export interface OrganizationServices {
|
|
|
436
506
|
*/
|
|
437
507
|
'solutionsContainerRegistry'?: OrganizationService;
|
|
438
508
|
}
|
|
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
509
|
/**
|
|
475
510
|
* a Solution Run Template
|
|
476
511
|
* @export
|
|
@@ -488,7 +523,7 @@ export interface RunTemplate {
|
|
|
488
523
|
* @type {string}
|
|
489
524
|
* @memberof RunTemplate
|
|
490
525
|
*/
|
|
491
|
-
'name'
|
|
526
|
+
'name'?: string;
|
|
492
527
|
/**
|
|
493
528
|
* the Run Template description
|
|
494
529
|
* @type {string}
|
|
@@ -651,6 +686,12 @@ export interface RunTemplate {
|
|
|
651
686
|
* @memberof RunTemplate
|
|
652
687
|
*/
|
|
653
688
|
'runTemplateSourceDir'?: string;
|
|
689
|
+
/**
|
|
690
|
+
* an optional duration in seconds in which a workflow is allowed to run
|
|
691
|
+
* @type {number}
|
|
692
|
+
* @memberof RunTemplate
|
|
693
|
+
*/
|
|
694
|
+
'executionTimeout'?: number;
|
|
654
695
|
}
|
|
655
696
|
/**
|
|
656
697
|
* the Run Template step handler identifier
|
|
@@ -687,13 +728,13 @@ export interface RunTemplateParameter {
|
|
|
687
728
|
* @type {{ [key: string]: string; }}
|
|
688
729
|
* @memberof RunTemplateParameter
|
|
689
730
|
*/
|
|
690
|
-
'labels'
|
|
731
|
+
'labels'?: { [key: string]: string; };
|
|
691
732
|
/**
|
|
692
733
|
* the variable type for the parameter. Basic types or special type %DATASETID%
|
|
693
734
|
* @type {string}
|
|
694
735
|
* @memberof RunTemplateParameter
|
|
695
736
|
*/
|
|
696
|
-
'varType'
|
|
737
|
+
'varType'?: string;
|
|
697
738
|
/**
|
|
698
739
|
* the default value for this parameter
|
|
699
740
|
* @type {string}
|
|
@@ -742,7 +783,7 @@ export interface RunTemplateParameterGroup {
|
|
|
742
783
|
* @type {{ [key: string]: string; }}
|
|
743
784
|
* @memberof RunTemplateParameterGroup
|
|
744
785
|
*/
|
|
745
|
-
'labels'
|
|
786
|
+
'labels'?: { [key: string]: string; };
|
|
746
787
|
/**
|
|
747
788
|
* does the group define a table
|
|
748
789
|
* @type {boolean}
|
|
@@ -766,7 +807,7 @@ export interface RunTemplateParameterGroup {
|
|
|
766
807
|
* @type {Array<string>}
|
|
767
808
|
* @memberof RunTemplateParameterGroup
|
|
768
809
|
*/
|
|
769
|
-
'parameters'
|
|
810
|
+
'parameters'?: Array<string>;
|
|
770
811
|
}
|
|
771
812
|
/**
|
|
772
813
|
* the value of Analysis parameter for a Scenario for this ScenarioRun
|
|
@@ -875,12 +916,6 @@ export interface Scenario {
|
|
|
875
916
|
* @memberof Scenario
|
|
876
917
|
*/
|
|
877
918
|
'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
919
|
/**
|
|
885
920
|
*
|
|
886
921
|
* @type {ScenarioJobState}
|
|
@@ -953,6 +988,31 @@ export interface Scenario {
|
|
|
953
988
|
* @memberof Scenario
|
|
954
989
|
*/
|
|
955
990
|
'validationStatus'?: ScenarioValidationStatus;
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @type {ScenarioSecurity}
|
|
994
|
+
* @memberof Scenario
|
|
995
|
+
*/
|
|
996
|
+
'security'?: ScenarioSecurity;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* a Scenario access control item
|
|
1000
|
+
* @export
|
|
1001
|
+
* @interface ScenarioAccessControl
|
|
1002
|
+
*/
|
|
1003
|
+
export interface ScenarioAccessControl {
|
|
1004
|
+
/**
|
|
1005
|
+
* the identity id
|
|
1006
|
+
* @type {string}
|
|
1007
|
+
* @memberof ScenarioAccessControl
|
|
1008
|
+
*/
|
|
1009
|
+
'id': string;
|
|
1010
|
+
/**
|
|
1011
|
+
* a role
|
|
1012
|
+
* @type {string}
|
|
1013
|
+
* @memberof ScenarioAccessControl
|
|
1014
|
+
*/
|
|
1015
|
+
'role': string;
|
|
956
1016
|
}
|
|
957
1017
|
/**
|
|
958
1018
|
* the difference between the values of a parameter
|
|
@@ -1091,6 +1151,19 @@ export interface ScenarioLastRun {
|
|
|
1091
1151
|
*/
|
|
1092
1152
|
'workflowName'?: string;
|
|
1093
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* the Scenario Role
|
|
1156
|
+
* @export
|
|
1157
|
+
* @interface ScenarioRole
|
|
1158
|
+
*/
|
|
1159
|
+
export interface ScenarioRole {
|
|
1160
|
+
/**
|
|
1161
|
+
* the Scenario Role
|
|
1162
|
+
* @type {string}
|
|
1163
|
+
* @memberof ScenarioRole
|
|
1164
|
+
*/
|
|
1165
|
+
'role': string;
|
|
1166
|
+
}
|
|
1094
1167
|
/**
|
|
1095
1168
|
* a ScenarioRun with only base properties
|
|
1096
1169
|
* @export
|
|
@@ -1670,38 +1743,24 @@ export interface ScenarioRunTemplateParameterValue {
|
|
|
1670
1743
|
'isInherited'?: boolean;
|
|
1671
1744
|
}
|
|
1672
1745
|
/**
|
|
1673
|
-
*
|
|
1746
|
+
* the Scenario security information
|
|
1674
1747
|
* @export
|
|
1675
|
-
* @interface
|
|
1748
|
+
* @interface ScenarioSecurity
|
|
1676
1749
|
*/
|
|
1677
|
-
export interface
|
|
1678
|
-
/**
|
|
1679
|
-
* the User id
|
|
1680
|
-
* @type {string}
|
|
1681
|
-
* @memberof ScenarioUser
|
|
1682
|
-
*/
|
|
1683
|
-
'id': string;
|
|
1750
|
+
export interface ScenarioSecurity {
|
|
1684
1751
|
/**
|
|
1685
|
-
* the
|
|
1752
|
+
* the role by default
|
|
1686
1753
|
* @type {string}
|
|
1687
|
-
* @memberof
|
|
1754
|
+
* @memberof ScenarioSecurity
|
|
1688
1755
|
*/
|
|
1689
|
-
'
|
|
1756
|
+
'default': string;
|
|
1690
1757
|
/**
|
|
1691
|
-
* the
|
|
1692
|
-
* @type {Array<
|
|
1693
|
-
* @memberof
|
|
1758
|
+
* the list which can access this Scenario with detailed access control information
|
|
1759
|
+
* @type {Array<ScenarioAccessControl>}
|
|
1760
|
+
* @memberof ScenarioSecurity
|
|
1694
1761
|
*/
|
|
1695
|
-
'
|
|
1762
|
+
'accessControlList': Array<ScenarioAccessControl>;
|
|
1696
1763
|
}
|
|
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
1764
|
/**
|
|
1706
1765
|
* the validation status of the scenario
|
|
1707
1766
|
* @export
|
|
@@ -1735,13 +1794,13 @@ export interface Solution {
|
|
|
1735
1794
|
* @type {string}
|
|
1736
1795
|
* @memberof Solution
|
|
1737
1796
|
*/
|
|
1738
|
-
'key'
|
|
1797
|
+
'key'?: string;
|
|
1739
1798
|
/**
|
|
1740
1799
|
* the Solution name
|
|
1741
1800
|
* @type {string}
|
|
1742
1801
|
* @memberof Solution
|
|
1743
1802
|
*/
|
|
1744
|
-
'name'
|
|
1803
|
+
'name'?: string;
|
|
1745
1804
|
/**
|
|
1746
1805
|
* the Solution description
|
|
1747
1806
|
* @type {string}
|
|
@@ -1753,7 +1812,7 @@ export interface Solution {
|
|
|
1753
1812
|
* @type {string}
|
|
1754
1813
|
* @memberof Solution
|
|
1755
1814
|
*/
|
|
1756
|
-
'repository'
|
|
1815
|
+
'repository'?: string;
|
|
1757
1816
|
/**
|
|
1758
1817
|
* the main Cosmo Tech simulator name used in standard Run Template
|
|
1759
1818
|
* @type {string}
|
|
@@ -1765,7 +1824,7 @@ export interface Solution {
|
|
|
1765
1824
|
* @type {string}
|
|
1766
1825
|
* @memberof Solution
|
|
1767
1826
|
*/
|
|
1768
|
-
'version'
|
|
1827
|
+
'version'?: string;
|
|
1769
1828
|
/**
|
|
1770
1829
|
* the User id which own this Solution
|
|
1771
1830
|
* @type {string}
|
|
@@ -1807,7 +1866,7 @@ export interface Solution {
|
|
|
1807
1866
|
* @type {Array<RunTemplate>}
|
|
1808
1867
|
* @memberof Solution
|
|
1809
1868
|
*/
|
|
1810
|
-
'runTemplates'
|
|
1869
|
+
'runTemplates'?: Array<RunTemplate>;
|
|
1811
1870
|
}
|
|
1812
1871
|
/**
|
|
1813
1872
|
* a User
|
|
@@ -2078,12 +2137,6 @@ export interface Workspace {
|
|
|
2078
2137
|
* @memberof Workspace
|
|
2079
2138
|
*/
|
|
2080
2139
|
'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
2140
|
/**
|
|
2088
2141
|
*
|
|
2089
2142
|
* @type {WorkspaceWebApp}
|
|
@@ -2102,6 +2155,37 @@ export interface Workspace {
|
|
|
2102
2155
|
* @memberof Workspace
|
|
2103
2156
|
*/
|
|
2104
2157
|
'useDedicatedEventHubNamespace'?: boolean;
|
|
2158
|
+
/**
|
|
2159
|
+
* 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\\\'.
|
|
2160
|
+
* @type {boolean}
|
|
2161
|
+
* @memberof Workspace
|
|
2162
|
+
*/
|
|
2163
|
+
'sendScenarioMetadataToEventHub'?: boolean;
|
|
2164
|
+
/**
|
|
2165
|
+
*
|
|
2166
|
+
* @type {WorkspaceSecurity}
|
|
2167
|
+
* @memberof Workspace
|
|
2168
|
+
*/
|
|
2169
|
+
'security'?: WorkspaceSecurity;
|
|
2170
|
+
}
|
|
2171
|
+
/**
|
|
2172
|
+
* a Workspace access control item
|
|
2173
|
+
* @export
|
|
2174
|
+
* @interface WorkspaceAccessControl
|
|
2175
|
+
*/
|
|
2176
|
+
export interface WorkspaceAccessControl {
|
|
2177
|
+
/**
|
|
2178
|
+
* the identity id
|
|
2179
|
+
* @type {string}
|
|
2180
|
+
* @memberof WorkspaceAccessControl
|
|
2181
|
+
*/
|
|
2182
|
+
'id': string;
|
|
2183
|
+
/**
|
|
2184
|
+
* a role
|
|
2185
|
+
* @type {string}
|
|
2186
|
+
* @memberof WorkspaceAccessControl
|
|
2187
|
+
*/
|
|
2188
|
+
'role': string;
|
|
2105
2189
|
}
|
|
2106
2190
|
/**
|
|
2107
2191
|
* a Workspace File resource
|
|
@@ -2116,6 +2200,38 @@ export interface WorkspaceFile {
|
|
|
2116
2200
|
*/
|
|
2117
2201
|
'fileName'?: string;
|
|
2118
2202
|
}
|
|
2203
|
+
/**
|
|
2204
|
+
* the Workspace Role
|
|
2205
|
+
* @export
|
|
2206
|
+
* @interface WorkspaceRole
|
|
2207
|
+
*/
|
|
2208
|
+
export interface WorkspaceRole {
|
|
2209
|
+
/**
|
|
2210
|
+
* the Workspace Role
|
|
2211
|
+
* @type {string}
|
|
2212
|
+
* @memberof WorkspaceRole
|
|
2213
|
+
*/
|
|
2214
|
+
'role': string;
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* the workspace security information
|
|
2218
|
+
* @export
|
|
2219
|
+
* @interface WorkspaceSecurity
|
|
2220
|
+
*/
|
|
2221
|
+
export interface WorkspaceSecurity {
|
|
2222
|
+
/**
|
|
2223
|
+
* the role by default
|
|
2224
|
+
* @type {string}
|
|
2225
|
+
* @memberof WorkspaceSecurity
|
|
2226
|
+
*/
|
|
2227
|
+
'default': string;
|
|
2228
|
+
/**
|
|
2229
|
+
* the list which can access this Workspace with detailed access control information
|
|
2230
|
+
* @type {Array<WorkspaceAccessControl>}
|
|
2231
|
+
* @memberof WorkspaceSecurity
|
|
2232
|
+
*/
|
|
2233
|
+
'accessControlList': Array<WorkspaceAccessControl>;
|
|
2234
|
+
}
|
|
2119
2235
|
/**
|
|
2120
2236
|
* the Workspace Solution configuration
|
|
2121
2237
|
* @export
|
|
@@ -2141,40 +2257,6 @@ export interface WorkspaceSolution {
|
|
|
2141
2257
|
*/
|
|
2142
2258
|
'defaultRunTemplateDataset'?: { [key: string]: object; };
|
|
2143
2259
|
}
|
|
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
2260
|
/**
|
|
2179
2261
|
* a Workspace Web Application
|
|
2180
2262
|
* @export
|
|
@@ -3283,18 +3365,18 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3283
3365
|
return {
|
|
3284
3366
|
/**
|
|
3285
3367
|
*
|
|
3286
|
-
* @summary Add
|
|
3368
|
+
* @summary Add a control access to the Organization
|
|
3287
3369
|
* @param {string} organizationId the Organization identifier
|
|
3288
|
-
* @param {
|
|
3370
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3289
3371
|
* @param {*} [options] Override http request option.
|
|
3290
3372
|
* @throws {RequiredError}
|
|
3291
3373
|
*/
|
|
3292
|
-
|
|
3374
|
+
addOrganizationAccessControl: async (organizationId: string, organizationAccessControl: OrganizationAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3293
3375
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3294
|
-
assertParamExists('
|
|
3295
|
-
// verify required parameter '
|
|
3296
|
-
assertParamExists('
|
|
3297
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3376
|
+
assertParamExists('addOrganizationAccessControl', 'organizationId', organizationId)
|
|
3377
|
+
// verify required parameter 'organizationAccessControl' is not null or undefined
|
|
3378
|
+
assertParamExists('addOrganizationAccessControl', 'organizationAccessControl', organizationAccessControl)
|
|
3379
|
+
const localVarPath = `/organizations/{organization_id}/security/access`
|
|
3298
3380
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3299
3381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3300
3382
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3318,7 +3400,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3318
3400
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3319
3401
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3320
3402
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3321
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationAccessControl, localVarRequestOptions, configuration)
|
|
3322
3404
|
|
|
3323
3405
|
return {
|
|
3324
3406
|
url: toPathString(localVarUrlObj),
|
|
@@ -3399,15 +3481,12 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3399
3481
|
},
|
|
3400
3482
|
/**
|
|
3401
3483
|
*
|
|
3402
|
-
* @summary
|
|
3403
|
-
* @param {Organization} organization the Organization to register
|
|
3484
|
+
* @summary Get all permissions per components
|
|
3404
3485
|
* @param {*} [options] Override http request option.
|
|
3405
3486
|
* @throws {RequiredError}
|
|
3406
3487
|
*/
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
assertParamExists('registerOrganization', 'organization', organization)
|
|
3410
|
-
const localVarPath = `/organizations`;
|
|
3488
|
+
getAllPermissions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3489
|
+
const localVarPath = `/organizations/permissions`;
|
|
3411
3490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3412
3491
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3413
3492
|
let baseOptions;
|
|
@@ -3415,7 +3494,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3415
3494
|
baseOptions = configuration.baseOptions;
|
|
3416
3495
|
}
|
|
3417
3496
|
|
|
3418
|
-
const localVarRequestOptions = { method: '
|
|
3497
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3419
3498
|
const localVarHeaderParameter = {} as any;
|
|
3420
3499
|
const localVarQueryParameter = {} as any;
|
|
3421
3500
|
|
|
@@ -3425,12 +3504,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3425
3504
|
|
|
3426
3505
|
|
|
3427
3506
|
|
|
3428
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3429
|
-
|
|
3430
3507
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3431
3508
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3432
3509
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3433
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3434
3510
|
|
|
3435
3511
|
return {
|
|
3436
3512
|
url: toPathString(localVarUrlObj),
|
|
@@ -3439,16 +3515,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3439
3515
|
},
|
|
3440
3516
|
/**
|
|
3441
3517
|
*
|
|
3442
|
-
* @summary
|
|
3518
|
+
* @summary Get a control access for the Organization
|
|
3443
3519
|
* @param {string} organizationId the Organization identifier
|
|
3520
|
+
* @param {string} identityId the User identifier
|
|
3444
3521
|
* @param {*} [options] Override http request option.
|
|
3445
3522
|
* @throws {RequiredError}
|
|
3446
3523
|
*/
|
|
3447
|
-
|
|
3524
|
+
getOrganizationAccessControl: async (organizationId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3448
3525
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3449
|
-
assertParamExists('
|
|
3450
|
-
|
|
3451
|
-
|
|
3526
|
+
assertParamExists('getOrganizationAccessControl', 'organizationId', organizationId)
|
|
3527
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3528
|
+
assertParamExists('getOrganizationAccessControl', 'identityId', identityId)
|
|
3529
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
3530
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3531
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3452
3532
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3453
3533
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3454
3534
|
let baseOptions;
|
|
@@ -3456,7 +3536,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3456
3536
|
baseOptions = configuration.baseOptions;
|
|
3457
3537
|
}
|
|
3458
3538
|
|
|
3459
|
-
const localVarRequestOptions = { method: '
|
|
3539
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3460
3540
|
const localVarHeaderParameter = {} as any;
|
|
3461
3541
|
const localVarQueryParameter = {} as any;
|
|
3462
3542
|
|
|
@@ -3477,20 +3557,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3477
3557
|
},
|
|
3478
3558
|
/**
|
|
3479
3559
|
*
|
|
3480
|
-
* @summary
|
|
3560
|
+
* @summary Get the Organization permissions by given role
|
|
3481
3561
|
* @param {string} organizationId the Organization identifier
|
|
3482
|
-
* @param {string}
|
|
3562
|
+
* @param {string} role the Role
|
|
3483
3563
|
* @param {*} [options] Override http request option.
|
|
3484
3564
|
* @throws {RequiredError}
|
|
3485
3565
|
*/
|
|
3486
|
-
|
|
3566
|
+
getOrganizationPermissions: async (organizationId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3487
3567
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3488
|
-
assertParamExists('
|
|
3489
|
-
// verify required parameter '
|
|
3490
|
-
assertParamExists('
|
|
3491
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3568
|
+
assertParamExists('getOrganizationPermissions', 'organizationId', organizationId)
|
|
3569
|
+
// verify required parameter 'role' is not null or undefined
|
|
3570
|
+
assertParamExists('getOrganizationPermissions', 'role', role)
|
|
3571
|
+
const localVarPath = `/organizations/{organization_id}/permissions/{role}`
|
|
3492
3572
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3493
|
-
.replace(`{${"
|
|
3573
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
3494
3574
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3495
3575
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3496
3576
|
let baseOptions;
|
|
@@ -3498,7 +3578,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3498
3578
|
baseOptions = configuration.baseOptions;
|
|
3499
3579
|
}
|
|
3500
3580
|
|
|
3501
|
-
const localVarRequestOptions = { method: '
|
|
3581
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3502
3582
|
const localVarHeaderParameter = {} as any;
|
|
3503
3583
|
const localVarQueryParameter = {} as any;
|
|
3504
3584
|
|
|
@@ -3519,15 +3599,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3519
3599
|
},
|
|
3520
3600
|
/**
|
|
3521
3601
|
*
|
|
3522
|
-
* @summary
|
|
3602
|
+
* @summary Get the Organization security information
|
|
3523
3603
|
* @param {string} organizationId the Organization identifier
|
|
3524
3604
|
* @param {*} [options] Override http request option.
|
|
3525
3605
|
* @throws {RequiredError}
|
|
3526
3606
|
*/
|
|
3527
|
-
|
|
3607
|
+
getOrganizationSecurity: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3528
3608
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3529
|
-
assertParamExists('
|
|
3530
|
-
const localVarPath = `/organizations/{organization_id}`
|
|
3609
|
+
assertParamExists('getOrganizationSecurity', 'organizationId', organizationId)
|
|
3610
|
+
const localVarPath = `/organizations/{organization_id}/security`
|
|
3531
3611
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3532
3612
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3533
3613
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3536,7 +3616,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3536
3616
|
baseOptions = configuration.baseOptions;
|
|
3537
3617
|
}
|
|
3538
3618
|
|
|
3539
|
-
const localVarRequestOptions = { method: '
|
|
3619
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3540
3620
|
const localVarHeaderParameter = {} as any;
|
|
3541
3621
|
const localVarQueryParameter = {} as any;
|
|
3542
3622
|
|
|
@@ -3557,18 +3637,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3557
3637
|
},
|
|
3558
3638
|
/**
|
|
3559
3639
|
*
|
|
3560
|
-
* @summary
|
|
3561
|
-
* @param {string} organizationId
|
|
3562
|
-
* @param {Organization} organization the new Organization details
|
|
3640
|
+
* @summary Get the Organization security users list
|
|
3641
|
+
* @param {string} organizationId The Organization identifier
|
|
3563
3642
|
* @param {*} [options] Override http request option.
|
|
3564
3643
|
* @throws {RequiredError}
|
|
3565
3644
|
*/
|
|
3566
|
-
|
|
3645
|
+
getOrganizationSecurityUsers: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3567
3646
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3568
|
-
assertParamExists('
|
|
3569
|
-
|
|
3570
|
-
assertParamExists('updateOrganization', 'organization', organization)
|
|
3571
|
-
const localVarPath = `/organizations/{organization_id}`
|
|
3647
|
+
assertParamExists('getOrganizationSecurityUsers', 'organizationId', organizationId)
|
|
3648
|
+
const localVarPath = `/organizations/{organization_id}/security/users`
|
|
3572
3649
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3573
3650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3574
3651
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3577,7 +3654,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3577
3654
|
baseOptions = configuration.baseOptions;
|
|
3578
3655
|
}
|
|
3579
3656
|
|
|
3580
|
-
const localVarRequestOptions = { method: '
|
|
3657
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3581
3658
|
const localVarHeaderParameter = {} as any;
|
|
3582
3659
|
const localVarQueryParameter = {} as any;
|
|
3583
3660
|
|
|
@@ -3587,12 +3664,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3587
3664
|
|
|
3588
3665
|
|
|
3589
3666
|
|
|
3590
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3591
|
-
|
|
3592
3667
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3593
3668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3594
3669
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3595
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3596
3670
|
|
|
3597
3671
|
return {
|
|
3598
3672
|
url: toPathString(localVarUrlObj),
|
|
@@ -3601,19 +3675,15 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3601
3675
|
},
|
|
3602
3676
|
/**
|
|
3603
3677
|
*
|
|
3604
|
-
* @summary
|
|
3605
|
-
* @param {
|
|
3606
|
-
* @param {OrganizationService} organizationService the new solutions container registry configuration to use
|
|
3678
|
+
* @summary Register a new organization
|
|
3679
|
+
* @param {Organization} organization the Organization to register
|
|
3607
3680
|
* @param {*} [options] Override http request option.
|
|
3608
3681
|
* @throws {RequiredError}
|
|
3609
3682
|
*/
|
|
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)));
|
|
3683
|
+
registerOrganization: async (organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3684
|
+
// verify required parameter 'organization' is not null or undefined
|
|
3685
|
+
assertParamExists('registerOrganization', 'organization', organization)
|
|
3686
|
+
const localVarPath = `/organizations`;
|
|
3617
3687
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3618
3688
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3619
3689
|
let baseOptions;
|
|
@@ -3621,7 +3691,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3621
3691
|
baseOptions = configuration.baseOptions;
|
|
3622
3692
|
}
|
|
3623
3693
|
|
|
3624
|
-
const localVarRequestOptions = { method: '
|
|
3694
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3625
3695
|
const localVarHeaderParameter = {} as any;
|
|
3626
3696
|
const localVarQueryParameter = {} as any;
|
|
3627
3697
|
|
|
@@ -3636,7 +3706,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3636
3706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3637
3707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3638
3708
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3639
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3709
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3640
3710
|
|
|
3641
3711
|
return {
|
|
3642
3712
|
url: toPathString(localVarUrlObj),
|
|
@@ -3645,19 +3715,20 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3645
3715
|
},
|
|
3646
3716
|
/**
|
|
3647
3717
|
*
|
|
3648
|
-
* @summary
|
|
3718
|
+
* @summary Remove the specified access from the given Organization
|
|
3649
3719
|
* @param {string} organizationId the Organization identifier
|
|
3650
|
-
* @param {
|
|
3720
|
+
* @param {string} identityId the User identifier
|
|
3651
3721
|
* @param {*} [options] Override http request option.
|
|
3652
3722
|
* @throws {RequiredError}
|
|
3653
3723
|
*/
|
|
3654
|
-
|
|
3724
|
+
removeOrganizationAccessControl: async (organizationId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3655
3725
|
// 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)))
|
|
3726
|
+
assertParamExists('removeOrganizationAccessControl', 'organizationId', organizationId)
|
|
3727
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3728
|
+
assertParamExists('removeOrganizationAccessControl', 'identityId', identityId)
|
|
3729
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
3730
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3731
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3661
3732
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3662
3733
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3663
3734
|
let baseOptions;
|
|
@@ -3665,7 +3736,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3665
3736
|
baseOptions = configuration.baseOptions;
|
|
3666
3737
|
}
|
|
3667
3738
|
|
|
3668
|
-
const localVarRequestOptions = { method: '
|
|
3739
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3669
3740
|
const localVarHeaderParameter = {} as any;
|
|
3670
3741
|
const localVarQueryParameter = {} as any;
|
|
3671
3742
|
|
|
@@ -3675,12 +3746,9 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3675
3746
|
|
|
3676
3747
|
|
|
3677
3748
|
|
|
3678
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3679
|
-
|
|
3680
3749
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3681
3750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3682
3751
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3683
|
-
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
3684
3752
|
|
|
3685
3753
|
return {
|
|
3686
3754
|
url: toPathString(localVarUrlObj),
|
|
@@ -3689,18 +3757,280 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3689
3757
|
},
|
|
3690
3758
|
/**
|
|
3691
3759
|
*
|
|
3692
|
-
* @summary
|
|
3760
|
+
* @summary Set the Organization default security
|
|
3693
3761
|
* @param {string} organizationId the Organization identifier
|
|
3694
|
-
* @param {
|
|
3762
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
3695
3763
|
* @param {*} [options] Override http request option.
|
|
3696
3764
|
* @throws {RequiredError}
|
|
3697
3765
|
*/
|
|
3698
|
-
|
|
3766
|
+
setOrganizationDefaultSecurity: async (organizationId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3699
3767
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3700
|
-
assertParamExists('
|
|
3701
|
-
// verify required parameter '
|
|
3702
|
-
assertParamExists('
|
|
3703
|
-
const localVarPath = `/organizations/{organization_id}/
|
|
3768
|
+
assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId)
|
|
3769
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
3770
|
+
assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole)
|
|
3771
|
+
const localVarPath = `/organizations/{organization_id}/security/default`
|
|
3772
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3775
|
+
let baseOptions;
|
|
3776
|
+
if (configuration) {
|
|
3777
|
+
baseOptions = configuration.baseOptions;
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3781
|
+
const localVarHeaderParameter = {} as any;
|
|
3782
|
+
const localVarQueryParameter = {} as any;
|
|
3783
|
+
|
|
3784
|
+
// authentication oAuth2AuthCode required
|
|
3785
|
+
// oauth required
|
|
3786
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3791
|
+
|
|
3792
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3793
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3794
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3795
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
|
|
3796
|
+
|
|
3797
|
+
return {
|
|
3798
|
+
url: toPathString(localVarUrlObj),
|
|
3799
|
+
options: localVarRequestOptions,
|
|
3800
|
+
};
|
|
3801
|
+
},
|
|
3802
|
+
/**
|
|
3803
|
+
*
|
|
3804
|
+
* @summary Unregister an organization
|
|
3805
|
+
* @param {string} organizationId the Organization identifier
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
unregisterOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3810
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3811
|
+
assertParamExists('unregisterOrganization', 'organizationId', organizationId)
|
|
3812
|
+
const localVarPath = `/organizations/{organization_id}`
|
|
3813
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3816
|
+
let baseOptions;
|
|
3817
|
+
if (configuration) {
|
|
3818
|
+
baseOptions = configuration.baseOptions;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3822
|
+
const localVarHeaderParameter = {} as any;
|
|
3823
|
+
const localVarQueryParameter = {} as any;
|
|
3824
|
+
|
|
3825
|
+
// authentication oAuth2AuthCode required
|
|
3826
|
+
// oauth required
|
|
3827
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3828
|
+
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3833
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3834
|
+
|
|
3835
|
+
return {
|
|
3836
|
+
url: toPathString(localVarUrlObj),
|
|
3837
|
+
options: localVarRequestOptions,
|
|
3838
|
+
};
|
|
3839
|
+
},
|
|
3840
|
+
/**
|
|
3841
|
+
*
|
|
3842
|
+
* @summary Update an Organization
|
|
3843
|
+
* @param {string} organizationId the Organization identifier
|
|
3844
|
+
* @param {Organization} organization the new Organization details
|
|
3845
|
+
* @param {*} [options] Override http request option.
|
|
3846
|
+
* @throws {RequiredError}
|
|
3847
|
+
*/
|
|
3848
|
+
updateOrganization: async (organizationId: string, organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3849
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3850
|
+
assertParamExists('updateOrganization', 'organizationId', organizationId)
|
|
3851
|
+
// verify required parameter 'organization' is not null or undefined
|
|
3852
|
+
assertParamExists('updateOrganization', 'organization', organization)
|
|
3853
|
+
const localVarPath = `/organizations/{organization_id}`
|
|
3854
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3856
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3857
|
+
let baseOptions;
|
|
3858
|
+
if (configuration) {
|
|
3859
|
+
baseOptions = configuration.baseOptions;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3863
|
+
const localVarHeaderParameter = {} as any;
|
|
3864
|
+
const localVarQueryParameter = {} as any;
|
|
3865
|
+
|
|
3866
|
+
// authentication oAuth2AuthCode required
|
|
3867
|
+
// oauth required
|
|
3868
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
|
|
3872
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3873
|
+
|
|
3874
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3876
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3877
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
|
|
3878
|
+
|
|
3879
|
+
return {
|
|
3880
|
+
url: toPathString(localVarUrlObj),
|
|
3881
|
+
options: localVarRequestOptions,
|
|
3882
|
+
};
|
|
3883
|
+
},
|
|
3884
|
+
/**
|
|
3885
|
+
*
|
|
3886
|
+
* @summary Update the specified access to User for an Organization
|
|
3887
|
+
* @param {string} organizationId the Organization identifier
|
|
3888
|
+
* @param {string} identityId the User identifier
|
|
3889
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
*/
|
|
3893
|
+
updateOrganizationAccessControl: async (organizationId: string, identityId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3894
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3895
|
+
assertParamExists('updateOrganizationAccessControl', 'organizationId', organizationId)
|
|
3896
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3897
|
+
assertParamExists('updateOrganizationAccessControl', 'identityId', identityId)
|
|
3898
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
3899
|
+
assertParamExists('updateOrganizationAccessControl', 'organizationRole', organizationRole)
|
|
3900
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
3901
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3902
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3904
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3905
|
+
let baseOptions;
|
|
3906
|
+
if (configuration) {
|
|
3907
|
+
baseOptions = configuration.baseOptions;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3911
|
+
const localVarHeaderParameter = {} as any;
|
|
3912
|
+
const localVarQueryParameter = {} as any;
|
|
3913
|
+
|
|
3914
|
+
// authentication oAuth2AuthCode required
|
|
3915
|
+
// oauth required
|
|
3916
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3921
|
+
|
|
3922
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3924
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3925
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
|
|
3926
|
+
|
|
3927
|
+
return {
|
|
3928
|
+
url: toPathString(localVarUrlObj),
|
|
3929
|
+
options: localVarRequestOptions,
|
|
3930
|
+
};
|
|
3931
|
+
},
|
|
3932
|
+
/**
|
|
3933
|
+
*
|
|
3934
|
+
* @summary Update the solutions container registry configuration for the Organization specified
|
|
3935
|
+
* @param {string} organizationId the Organization identifier
|
|
3936
|
+
* @param {OrganizationService} organizationService the new solutions container registry configuration to use
|
|
3937
|
+
* @param {*} [options] Override http request option.
|
|
3938
|
+
* @throws {RequiredError}
|
|
3939
|
+
*/
|
|
3940
|
+
updateSolutionsContainerRegistryByOrganizationId: async (organizationId: string, organizationService: OrganizationService, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3941
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3942
|
+
assertParamExists('updateSolutionsContainerRegistryByOrganizationId', 'organizationId', organizationId)
|
|
3943
|
+
// verify required parameter 'organizationService' is not null or undefined
|
|
3944
|
+
assertParamExists('updateSolutionsContainerRegistryByOrganizationId', 'organizationService', organizationService)
|
|
3945
|
+
const localVarPath = `/organizations/{organization_id}/services/solutionsContainerRegistry`
|
|
3946
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3947
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3948
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3949
|
+
let baseOptions;
|
|
3950
|
+
if (configuration) {
|
|
3951
|
+
baseOptions = configuration.baseOptions;
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3954
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3955
|
+
const localVarHeaderParameter = {} as any;
|
|
3956
|
+
const localVarQueryParameter = {} as any;
|
|
3957
|
+
|
|
3958
|
+
// authentication oAuth2AuthCode required
|
|
3959
|
+
// oauth required
|
|
3960
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3965
|
+
|
|
3966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3968
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3969
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
3970
|
+
|
|
3971
|
+
return {
|
|
3972
|
+
url: toPathString(localVarUrlObj),
|
|
3973
|
+
options: localVarRequestOptions,
|
|
3974
|
+
};
|
|
3975
|
+
},
|
|
3976
|
+
/**
|
|
3977
|
+
*
|
|
3978
|
+
* @summary Update storage configuration for the Organization specified
|
|
3979
|
+
* @param {string} organizationId the Organization identifier
|
|
3980
|
+
* @param {OrganizationService} organizationService the new Storage configuration to use
|
|
3981
|
+
* @param {*} [options] Override http request option.
|
|
3982
|
+
* @throws {RequiredError}
|
|
3983
|
+
*/
|
|
3984
|
+
updateStorageByOrganizationId: async (organizationId: string, organizationService: OrganizationService, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3985
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3986
|
+
assertParamExists('updateStorageByOrganizationId', 'organizationId', organizationId)
|
|
3987
|
+
// verify required parameter 'organizationService' is not null or undefined
|
|
3988
|
+
assertParamExists('updateStorageByOrganizationId', 'organizationService', organizationService)
|
|
3989
|
+
const localVarPath = `/organizations/{organization_id}/services/storage`
|
|
3990
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3992
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3993
|
+
let baseOptions;
|
|
3994
|
+
if (configuration) {
|
|
3995
|
+
baseOptions = configuration.baseOptions;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3999
|
+
const localVarHeaderParameter = {} as any;
|
|
4000
|
+
const localVarQueryParameter = {} as any;
|
|
4001
|
+
|
|
4002
|
+
// authentication oAuth2AuthCode required
|
|
4003
|
+
// oauth required
|
|
4004
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4009
|
+
|
|
4010
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4011
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4012
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4013
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationService, localVarRequestOptions, configuration)
|
|
4014
|
+
|
|
4015
|
+
return {
|
|
4016
|
+
url: toPathString(localVarUrlObj),
|
|
4017
|
+
options: localVarRequestOptions,
|
|
4018
|
+
};
|
|
4019
|
+
},
|
|
4020
|
+
/**
|
|
4021
|
+
*
|
|
4022
|
+
* @summary Update tenant credentials for the Organization specified
|
|
4023
|
+
* @param {string} organizationId the Organization identifier
|
|
4024
|
+
* @param {{ [key: string]: object; }} requestBody the new Tenant Credentials to use
|
|
4025
|
+
* @param {*} [options] Override http request option.
|
|
4026
|
+
* @throws {RequiredError}
|
|
4027
|
+
*/
|
|
4028
|
+
updateTenantCredentialsByOrganizationId: async (organizationId: string, requestBody: { [key: string]: object; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4029
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4030
|
+
assertParamExists('updateTenantCredentialsByOrganizationId', 'organizationId', organizationId)
|
|
4031
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
4032
|
+
assertParamExists('updateTenantCredentialsByOrganizationId', 'requestBody', requestBody)
|
|
4033
|
+
const localVarPath = `/organizations/{organization_id}/services/tenantCredentials`
|
|
3704
4034
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3705
4035
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3706
4036
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3743,14 +4073,14 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3743
4073
|
return {
|
|
3744
4074
|
/**
|
|
3745
4075
|
*
|
|
3746
|
-
* @summary Add
|
|
4076
|
+
* @summary Add a control access to the Organization
|
|
3747
4077
|
* @param {string} organizationId the Organization identifier
|
|
3748
|
-
* @param {
|
|
4078
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3749
4079
|
* @param {*} [options] Override http request option.
|
|
3750
4080
|
* @throws {RequiredError}
|
|
3751
4081
|
*/
|
|
3752
|
-
async
|
|
3753
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4082
|
+
async addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
4083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationAccessControl(organizationId, organizationAccessControl, options);
|
|
3754
4084
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3755
4085
|
},
|
|
3756
4086
|
/**
|
|
@@ -3774,6 +4104,62 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3774
4104
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findOrganizationById(organizationId, options);
|
|
3775
4105
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3776
4106
|
},
|
|
4107
|
+
/**
|
|
4108
|
+
*
|
|
4109
|
+
* @summary Get all permissions per components
|
|
4110
|
+
* @param {*} [options] Override http request option.
|
|
4111
|
+
* @throws {RequiredError}
|
|
4112
|
+
*/
|
|
4113
|
+
async getAllPermissions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ComponentRolePermissions>>> {
|
|
4114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPermissions(options);
|
|
4115
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4116
|
+
},
|
|
4117
|
+
/**
|
|
4118
|
+
*
|
|
4119
|
+
* @summary Get a control access for the Organization
|
|
4120
|
+
* @param {string} organizationId the Organization identifier
|
|
4121
|
+
* @param {string} identityId the User identifier
|
|
4122
|
+
* @param {*} [options] Override http request option.
|
|
4123
|
+
* @throws {RequiredError}
|
|
4124
|
+
*/
|
|
4125
|
+
async getOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
4126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAccessControl(organizationId, identityId, options);
|
|
4127
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4128
|
+
},
|
|
4129
|
+
/**
|
|
4130
|
+
*
|
|
4131
|
+
* @summary Get the Organization permissions by given role
|
|
4132
|
+
* @param {string} organizationId the Organization identifier
|
|
4133
|
+
* @param {string} role the Role
|
|
4134
|
+
* @param {*} [options] Override http request option.
|
|
4135
|
+
* @throws {RequiredError}
|
|
4136
|
+
*/
|
|
4137
|
+
async getOrganizationPermissions(organizationId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationPermissions(organizationId, role, options);
|
|
4139
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4140
|
+
},
|
|
4141
|
+
/**
|
|
4142
|
+
*
|
|
4143
|
+
* @summary Get the Organization security information
|
|
4144
|
+
* @param {string} organizationId the Organization identifier
|
|
4145
|
+
* @param {*} [options] Override http request option.
|
|
4146
|
+
* @throws {RequiredError}
|
|
4147
|
+
*/
|
|
4148
|
+
async getOrganizationSecurity(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
|
|
4149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurity(organizationId, options);
|
|
4150
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4151
|
+
},
|
|
4152
|
+
/**
|
|
4153
|
+
*
|
|
4154
|
+
* @summary Get the Organization security users list
|
|
4155
|
+
* @param {string} organizationId The Organization identifier
|
|
4156
|
+
* @param {*} [options] Override http request option.
|
|
4157
|
+
* @throws {RequiredError}
|
|
4158
|
+
*/
|
|
4159
|
+
async getOrganizationSecurityUsers(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4160
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options);
|
|
4161
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4162
|
+
},
|
|
3777
4163
|
/**
|
|
3778
4164
|
*
|
|
3779
4165
|
* @summary Register a new organization
|
|
@@ -3787,25 +4173,26 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3787
4173
|
},
|
|
3788
4174
|
/**
|
|
3789
4175
|
*
|
|
3790
|
-
* @summary Remove
|
|
4176
|
+
* @summary Remove the specified access from the given Organization
|
|
3791
4177
|
* @param {string} organizationId the Organization identifier
|
|
4178
|
+
* @param {string} identityId the User identifier
|
|
3792
4179
|
* @param {*} [options] Override http request option.
|
|
3793
4180
|
* @throws {RequiredError}
|
|
3794
4181
|
*/
|
|
3795
|
-
async
|
|
3796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4182
|
+
async removeOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeOrganizationAccessControl(organizationId, identityId, options);
|
|
3797
4184
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3798
4185
|
},
|
|
3799
4186
|
/**
|
|
3800
4187
|
*
|
|
3801
|
-
* @summary
|
|
4188
|
+
* @summary Set the Organization default security
|
|
3802
4189
|
* @param {string} organizationId the Organization identifier
|
|
3803
|
-
* @param {
|
|
4190
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
3804
4191
|
* @param {*} [options] Override http request option.
|
|
3805
4192
|
* @throws {RequiredError}
|
|
3806
4193
|
*/
|
|
3807
|
-
async
|
|
3808
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4194
|
+
async setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
|
|
4195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options);
|
|
3809
4196
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3810
4197
|
},
|
|
3811
4198
|
/**
|
|
@@ -3831,6 +4218,19 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3831
4218
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(organizationId, organization, options);
|
|
3832
4219
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3833
4220
|
},
|
|
4221
|
+
/**
|
|
4222
|
+
*
|
|
4223
|
+
* @summary Update the specified access to User for an Organization
|
|
4224
|
+
* @param {string} organizationId the Organization identifier
|
|
4225
|
+
* @param {string} identityId the User identifier
|
|
4226
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4227
|
+
* @param {*} [options] Override http request option.
|
|
4228
|
+
* @throws {RequiredError}
|
|
4229
|
+
*/
|
|
4230
|
+
async updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
4231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options);
|
|
4232
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4233
|
+
},
|
|
3834
4234
|
/**
|
|
3835
4235
|
*
|
|
3836
4236
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -3879,33 +4279,84 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3879
4279
|
return {
|
|
3880
4280
|
/**
|
|
3881
4281
|
*
|
|
3882
|
-
* @summary Add
|
|
4282
|
+
* @summary Add a control access to the Organization
|
|
4283
|
+
* @param {string} organizationId the Organization identifier
|
|
4284
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
4285
|
+
* @param {*} [options] Override http request option.
|
|
4286
|
+
* @throws {RequiredError}
|
|
4287
|
+
*/
|
|
4288
|
+
addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4289
|
+
return localVarFp.addOrganizationAccessControl(organizationId, organizationAccessControl, options).then((request) => request(axios, basePath));
|
|
4290
|
+
},
|
|
4291
|
+
/**
|
|
4292
|
+
*
|
|
4293
|
+
* @summary List all Organizations
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
*/
|
|
4297
|
+
findAllOrganizations(options?: any): AxiosPromise<Array<Organization>> {
|
|
4298
|
+
return localVarFp.findAllOrganizations(options).then((request) => request(axios, basePath));
|
|
4299
|
+
},
|
|
4300
|
+
/**
|
|
4301
|
+
*
|
|
4302
|
+
* @summary Get the details of an Organization
|
|
4303
|
+
* @param {string} organizationId the Organization identifier
|
|
4304
|
+
* @param {*} [options] Override http request option.
|
|
4305
|
+
* @throws {RequiredError}
|
|
4306
|
+
*/
|
|
4307
|
+
findOrganizationById(organizationId: string, options?: any): AxiosPromise<Organization> {
|
|
4308
|
+
return localVarFp.findOrganizationById(organizationId, options).then((request) => request(axios, basePath));
|
|
4309
|
+
},
|
|
4310
|
+
/**
|
|
4311
|
+
*
|
|
4312
|
+
* @summary Get all permissions per components
|
|
4313
|
+
* @param {*} [options] Override http request option.
|
|
4314
|
+
* @throws {RequiredError}
|
|
4315
|
+
*/
|
|
4316
|
+
getAllPermissions(options?: any): AxiosPromise<Array<ComponentRolePermissions>> {
|
|
4317
|
+
return localVarFp.getAllPermissions(options).then((request) => request(axios, basePath));
|
|
4318
|
+
},
|
|
4319
|
+
/**
|
|
4320
|
+
*
|
|
4321
|
+
* @summary Get a control access for the Organization
|
|
4322
|
+
* @param {string} organizationId the Organization identifier
|
|
4323
|
+
* @param {string} identityId the User identifier
|
|
4324
|
+
* @param {*} [options] Override http request option.
|
|
4325
|
+
* @throws {RequiredError}
|
|
4326
|
+
*/
|
|
4327
|
+
getOrganizationAccessControl(organizationId: string, identityId: string, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4328
|
+
return localVarFp.getOrganizationAccessControl(organizationId, identityId, options).then((request) => request(axios, basePath));
|
|
4329
|
+
},
|
|
4330
|
+
/**
|
|
4331
|
+
*
|
|
4332
|
+
* @summary Get the Organization permissions by given role
|
|
3883
4333
|
* @param {string} organizationId the Organization identifier
|
|
3884
|
-
* @param {
|
|
4334
|
+
* @param {string} role the Role
|
|
3885
4335
|
* @param {*} [options] Override http request option.
|
|
3886
4336
|
* @throws {RequiredError}
|
|
3887
4337
|
*/
|
|
3888
|
-
|
|
3889
|
-
return localVarFp.
|
|
4338
|
+
getOrganizationPermissions(organizationId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
4339
|
+
return localVarFp.getOrganizationPermissions(organizationId, role, options).then((request) => request(axios, basePath));
|
|
3890
4340
|
},
|
|
3891
4341
|
/**
|
|
3892
4342
|
*
|
|
3893
|
-
* @summary
|
|
4343
|
+
* @summary Get the Organization security information
|
|
4344
|
+
* @param {string} organizationId the Organization identifier
|
|
3894
4345
|
* @param {*} [options] Override http request option.
|
|
3895
4346
|
* @throws {RequiredError}
|
|
3896
4347
|
*/
|
|
3897
|
-
|
|
3898
|
-
return localVarFp.
|
|
4348
|
+
getOrganizationSecurity(organizationId: string, options?: any): AxiosPromise<OrganizationSecurity> {
|
|
4349
|
+
return localVarFp.getOrganizationSecurity(organizationId, options).then((request) => request(axios, basePath));
|
|
3899
4350
|
},
|
|
3900
4351
|
/**
|
|
3901
4352
|
*
|
|
3902
|
-
* @summary Get the
|
|
3903
|
-
* @param {string} organizationId
|
|
4353
|
+
* @summary Get the Organization security users list
|
|
4354
|
+
* @param {string} organizationId The Organization identifier
|
|
3904
4355
|
* @param {*} [options] Override http request option.
|
|
3905
4356
|
* @throws {RequiredError}
|
|
3906
4357
|
*/
|
|
3907
|
-
|
|
3908
|
-
return localVarFp.
|
|
4358
|
+
getOrganizationSecurityUsers(organizationId: string, options?: any): AxiosPromise<Array<string>> {
|
|
4359
|
+
return localVarFp.getOrganizationSecurityUsers(organizationId, options).then((request) => request(axios, basePath));
|
|
3909
4360
|
},
|
|
3910
4361
|
/**
|
|
3911
4362
|
*
|
|
@@ -3919,24 +4370,25 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3919
4370
|
},
|
|
3920
4371
|
/**
|
|
3921
4372
|
*
|
|
3922
|
-
* @summary Remove
|
|
4373
|
+
* @summary Remove the specified access from the given Organization
|
|
3923
4374
|
* @param {string} organizationId the Organization identifier
|
|
4375
|
+
* @param {string} identityId the User identifier
|
|
3924
4376
|
* @param {*} [options] Override http request option.
|
|
3925
4377
|
* @throws {RequiredError}
|
|
3926
4378
|
*/
|
|
3927
|
-
|
|
3928
|
-
return localVarFp.
|
|
4379
|
+
removeOrganizationAccessControl(organizationId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
4380
|
+
return localVarFp.removeOrganizationAccessControl(organizationId, identityId, options).then((request) => request(axios, basePath));
|
|
3929
4381
|
},
|
|
3930
4382
|
/**
|
|
3931
4383
|
*
|
|
3932
|
-
* @summary
|
|
4384
|
+
* @summary Set the Organization default security
|
|
3933
4385
|
* @param {string} organizationId the Organization identifier
|
|
3934
|
-
* @param {
|
|
4386
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
3935
4387
|
* @param {*} [options] Override http request option.
|
|
3936
4388
|
* @throws {RequiredError}
|
|
3937
4389
|
*/
|
|
3938
|
-
|
|
3939
|
-
return localVarFp.
|
|
4390
|
+
setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationSecurity> {
|
|
4391
|
+
return localVarFp.setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(axios, basePath));
|
|
3940
4392
|
},
|
|
3941
4393
|
/**
|
|
3942
4394
|
*
|
|
@@ -3959,6 +4411,18 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
3959
4411
|
updateOrganization(organizationId: string, organization: Organization, options?: any): AxiosPromise<Organization> {
|
|
3960
4412
|
return localVarFp.updateOrganization(organizationId, organization, options).then((request) => request(axios, basePath));
|
|
3961
4413
|
},
|
|
4414
|
+
/**
|
|
4415
|
+
*
|
|
4416
|
+
* @summary Update the specified access to User for an Organization
|
|
4417
|
+
* @param {string} organizationId the Organization identifier
|
|
4418
|
+
* @param {string} identityId the User identifier
|
|
4419
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4420
|
+
* @param {*} [options] Override http request option.
|
|
4421
|
+
* @throws {RequiredError}
|
|
4422
|
+
*/
|
|
4423
|
+
updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4424
|
+
return localVarFp.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(axios, basePath));
|
|
4425
|
+
},
|
|
3962
4426
|
/**
|
|
3963
4427
|
*
|
|
3964
4428
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -4004,15 +4468,15 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4004
4468
|
export class OrganizationApi extends BaseAPI {
|
|
4005
4469
|
/**
|
|
4006
4470
|
*
|
|
4007
|
-
* @summary Add
|
|
4471
|
+
* @summary Add a control access to the Organization
|
|
4008
4472
|
* @param {string} organizationId the Organization identifier
|
|
4009
|
-
* @param {
|
|
4473
|
+
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
4010
4474
|
* @param {*} [options] Override http request option.
|
|
4011
4475
|
* @throws {RequiredError}
|
|
4012
4476
|
* @memberof OrganizationApi
|
|
4013
4477
|
*/
|
|
4014
|
-
public
|
|
4015
|
-
return OrganizationApiFp(this.configuration).
|
|
4478
|
+
public addOrganizationAccessControl(organizationId: string, organizationAccessControl: OrganizationAccessControl, options?: AxiosRequestConfig) {
|
|
4479
|
+
return OrganizationApiFp(this.configuration).addOrganizationAccessControl(organizationId, organizationAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
4016
4480
|
}
|
|
4017
4481
|
|
|
4018
4482
|
/**
|
|
@@ -4038,6 +4502,67 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4038
4502
|
return OrganizationApiFp(this.configuration).findOrganizationById(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4039
4503
|
}
|
|
4040
4504
|
|
|
4505
|
+
/**
|
|
4506
|
+
*
|
|
4507
|
+
* @summary Get all permissions per components
|
|
4508
|
+
* @param {*} [options] Override http request option.
|
|
4509
|
+
* @throws {RequiredError}
|
|
4510
|
+
* @memberof OrganizationApi
|
|
4511
|
+
*/
|
|
4512
|
+
public getAllPermissions(options?: AxiosRequestConfig) {
|
|
4513
|
+
return OrganizationApiFp(this.configuration).getAllPermissions(options).then((request) => request(this.axios, this.basePath));
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
*
|
|
4518
|
+
* @summary Get a control access for the Organization
|
|
4519
|
+
* @param {string} organizationId the Organization identifier
|
|
4520
|
+
* @param {string} identityId the User identifier
|
|
4521
|
+
* @param {*} [options] Override http request option.
|
|
4522
|
+
* @throws {RequiredError}
|
|
4523
|
+
* @memberof OrganizationApi
|
|
4524
|
+
*/
|
|
4525
|
+
public getOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
4526
|
+
return OrganizationApiFp(this.configuration).getOrganizationAccessControl(organizationId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4529
|
+
/**
|
|
4530
|
+
*
|
|
4531
|
+
* @summary Get the Organization permissions by given role
|
|
4532
|
+
* @param {string} organizationId the Organization identifier
|
|
4533
|
+
* @param {string} role the Role
|
|
4534
|
+
* @param {*} [options] Override http request option.
|
|
4535
|
+
* @throws {RequiredError}
|
|
4536
|
+
* @memberof OrganizationApi
|
|
4537
|
+
*/
|
|
4538
|
+
public getOrganizationPermissions(organizationId: string, role: string, options?: AxiosRequestConfig) {
|
|
4539
|
+
return OrganizationApiFp(this.configuration).getOrganizationPermissions(organizationId, role, options).then((request) => request(this.axios, this.basePath));
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4542
|
+
/**
|
|
4543
|
+
*
|
|
4544
|
+
* @summary Get the Organization security information
|
|
4545
|
+
* @param {string} organizationId the Organization identifier
|
|
4546
|
+
* @param {*} [options] Override http request option.
|
|
4547
|
+
* @throws {RequiredError}
|
|
4548
|
+
* @memberof OrganizationApi
|
|
4549
|
+
*/
|
|
4550
|
+
public getOrganizationSecurity(organizationId: string, options?: AxiosRequestConfig) {
|
|
4551
|
+
return OrganizationApiFp(this.configuration).getOrganizationSecurity(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
/**
|
|
4555
|
+
*
|
|
4556
|
+
* @summary Get the Organization security users list
|
|
4557
|
+
* @param {string} organizationId The Organization identifier
|
|
4558
|
+
* @param {*} [options] Override http request option.
|
|
4559
|
+
* @throws {RequiredError}
|
|
4560
|
+
* @memberof OrganizationApi
|
|
4561
|
+
*/
|
|
4562
|
+
public getOrganizationSecurityUsers(organizationId: string, options?: AxiosRequestConfig) {
|
|
4563
|
+
return OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4041
4566
|
/**
|
|
4042
4567
|
*
|
|
4043
4568
|
* @summary Register a new organization
|
|
@@ -4052,27 +4577,28 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4052
4577
|
|
|
4053
4578
|
/**
|
|
4054
4579
|
*
|
|
4055
|
-
* @summary Remove
|
|
4580
|
+
* @summary Remove the specified access from the given Organization
|
|
4056
4581
|
* @param {string} organizationId the Organization identifier
|
|
4582
|
+
* @param {string} identityId the User identifier
|
|
4057
4583
|
* @param {*} [options] Override http request option.
|
|
4058
4584
|
* @throws {RequiredError}
|
|
4059
4585
|
* @memberof OrganizationApi
|
|
4060
4586
|
*/
|
|
4061
|
-
public
|
|
4062
|
-
return OrganizationApiFp(this.configuration).
|
|
4587
|
+
public removeOrganizationAccessControl(organizationId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
4588
|
+
return OrganizationApiFp(this.configuration).removeOrganizationAccessControl(organizationId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
4063
4589
|
}
|
|
4064
4590
|
|
|
4065
4591
|
/**
|
|
4066
4592
|
*
|
|
4067
|
-
* @summary
|
|
4593
|
+
* @summary Set the Organization default security
|
|
4068
4594
|
* @param {string} organizationId the Organization identifier
|
|
4069
|
-
* @param {
|
|
4595
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
4070
4596
|
* @param {*} [options] Override http request option.
|
|
4071
4597
|
* @throws {RequiredError}
|
|
4072
4598
|
* @memberof OrganizationApi
|
|
4073
4599
|
*/
|
|
4074
|
-
public
|
|
4075
|
-
return OrganizationApiFp(this.configuration).
|
|
4600
|
+
public setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
|
|
4601
|
+
return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(this.axios, this.basePath));
|
|
4076
4602
|
}
|
|
4077
4603
|
|
|
4078
4604
|
/**
|
|
@@ -4100,6 +4626,20 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4100
4626
|
return OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then((request) => request(this.axios, this.basePath));
|
|
4101
4627
|
}
|
|
4102
4628
|
|
|
4629
|
+
/**
|
|
4630
|
+
*
|
|
4631
|
+
* @summary Update the specified access to User for an Organization
|
|
4632
|
+
* @param {string} organizationId the Organization identifier
|
|
4633
|
+
* @param {string} identityId the User identifier
|
|
4634
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4635
|
+
* @param {*} [options] Override http request option.
|
|
4636
|
+
* @throws {RequiredError}
|
|
4637
|
+
* @memberof OrganizationApi
|
|
4638
|
+
*/
|
|
4639
|
+
public updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
|
|
4640
|
+
return OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(this.axios, this.basePath));
|
|
4641
|
+
}
|
|
4642
|
+
|
|
4103
4643
|
/**
|
|
4104
4644
|
*
|
|
4105
4645
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -4168,8 +4708,203 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4168
4708
|
assertParamExists('addOrReplaceScenarioParameterValues', 'scenarioRunTemplateParameterValue', scenarioRunTemplateParameterValue)
|
|
4169
4709
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/parameterValues`
|
|
4170
4710
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4171
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4172
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4711
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4712
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4714
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4715
|
+
let baseOptions;
|
|
4716
|
+
if (configuration) {
|
|
4717
|
+
baseOptions = configuration.baseOptions;
|
|
4718
|
+
}
|
|
4719
|
+
|
|
4720
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4721
|
+
const localVarHeaderParameter = {} as any;
|
|
4722
|
+
const localVarQueryParameter = {} as any;
|
|
4723
|
+
|
|
4724
|
+
// authentication oAuth2AuthCode required
|
|
4725
|
+
// oauth required
|
|
4726
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4727
|
+
|
|
4728
|
+
|
|
4729
|
+
|
|
4730
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4731
|
+
|
|
4732
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4734
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4735
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRunTemplateParameterValue, localVarRequestOptions, configuration)
|
|
4736
|
+
|
|
4737
|
+
return {
|
|
4738
|
+
url: toPathString(localVarUrlObj),
|
|
4739
|
+
options: localVarRequestOptions,
|
|
4740
|
+
};
|
|
4741
|
+
},
|
|
4742
|
+
/**
|
|
4743
|
+
*
|
|
4744
|
+
* @summary Add a control access to the Scenario
|
|
4745
|
+
* @param {string} organizationId the Organization identifier
|
|
4746
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4747
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4748
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
4749
|
+
* @param {*} [options] Override http request option.
|
|
4750
|
+
* @throws {RequiredError}
|
|
4751
|
+
*/
|
|
4752
|
+
addScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4753
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4754
|
+
assertParamExists('addScenarioAccessControl', 'organizationId', organizationId)
|
|
4755
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4756
|
+
assertParamExists('addScenarioAccessControl', 'workspaceId', workspaceId)
|
|
4757
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
4758
|
+
assertParamExists('addScenarioAccessControl', 'scenarioId', scenarioId)
|
|
4759
|
+
// verify required parameter 'scenarioAccessControl' is not null or undefined
|
|
4760
|
+
assertParamExists('addScenarioAccessControl', 'scenarioAccessControl', scenarioAccessControl)
|
|
4761
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access`
|
|
4762
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4763
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4764
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4766
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4767
|
+
let baseOptions;
|
|
4768
|
+
if (configuration) {
|
|
4769
|
+
baseOptions = configuration.baseOptions;
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4773
|
+
const localVarHeaderParameter = {} as any;
|
|
4774
|
+
const localVarQueryParameter = {} as any;
|
|
4775
|
+
|
|
4776
|
+
// authentication oAuth2AuthCode required
|
|
4777
|
+
// oauth required
|
|
4778
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4779
|
+
|
|
4780
|
+
|
|
4781
|
+
|
|
4782
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4783
|
+
|
|
4784
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4786
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4787
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioAccessControl, localVarRequestOptions, configuration)
|
|
4788
|
+
|
|
4789
|
+
return {
|
|
4790
|
+
url: toPathString(localVarUrlObj),
|
|
4791
|
+
options: localVarRequestOptions,
|
|
4792
|
+
};
|
|
4793
|
+
},
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @summary Compare the Scenario with another one and returns the difference for parameters values
|
|
4797
|
+
* @param {string} organizationId the Organization identifier
|
|
4798
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4799
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4800
|
+
* @param {string} comparedScenarioId the Scenario identifier to compare to
|
|
4801
|
+
* @param {*} [options] Override http request option.
|
|
4802
|
+
* @throws {RequiredError}
|
|
4803
|
+
*/
|
|
4804
|
+
compareScenarios: async (organizationId: string, workspaceId: string, scenarioId: string, comparedScenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4805
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4806
|
+
assertParamExists('compareScenarios', 'organizationId', organizationId)
|
|
4807
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4808
|
+
assertParamExists('compareScenarios', 'workspaceId', workspaceId)
|
|
4809
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
4810
|
+
assertParamExists('compareScenarios', 'scenarioId', scenarioId)
|
|
4811
|
+
// verify required parameter 'comparedScenarioId' is not null or undefined
|
|
4812
|
+
assertParamExists('compareScenarios', 'comparedScenarioId', comparedScenarioId)
|
|
4813
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/compare/{compared_scenario_id}`
|
|
4814
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4815
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4816
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4817
|
+
.replace(`{${"compared_scenario_id"}}`, encodeURIComponent(String(comparedScenarioId)));
|
|
4818
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4819
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4820
|
+
let baseOptions;
|
|
4821
|
+
if (configuration) {
|
|
4822
|
+
baseOptions = configuration.baseOptions;
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4825
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4826
|
+
const localVarHeaderParameter = {} as any;
|
|
4827
|
+
const localVarQueryParameter = {} as any;
|
|
4828
|
+
|
|
4829
|
+
// authentication oAuth2AuthCode required
|
|
4830
|
+
// oauth required
|
|
4831
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
|
|
4835
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4837
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4838
|
+
|
|
4839
|
+
return {
|
|
4840
|
+
url: toPathString(localVarUrlObj),
|
|
4841
|
+
options: localVarRequestOptions,
|
|
4842
|
+
};
|
|
4843
|
+
},
|
|
4844
|
+
/**
|
|
4845
|
+
*
|
|
4846
|
+
* @summary Create a new Scenario
|
|
4847
|
+
* @param {string} organizationId the Organization identifier
|
|
4848
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4849
|
+
* @param {Scenario} scenario the Scenario to create
|
|
4850
|
+
* @param {*} [options] Override http request option.
|
|
4851
|
+
* @throws {RequiredError}
|
|
4852
|
+
*/
|
|
4853
|
+
createScenario: async (organizationId: string, workspaceId: string, scenario: Scenario, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4854
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4855
|
+
assertParamExists('createScenario', 'organizationId', organizationId)
|
|
4856
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4857
|
+
assertParamExists('createScenario', 'workspaceId', workspaceId)
|
|
4858
|
+
// verify required parameter 'scenario' is not null or undefined
|
|
4859
|
+
assertParamExists('createScenario', 'scenario', scenario)
|
|
4860
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios`
|
|
4861
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4862
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4865
|
+
let baseOptions;
|
|
4866
|
+
if (configuration) {
|
|
4867
|
+
baseOptions = configuration.baseOptions;
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4871
|
+
const localVarHeaderParameter = {} as any;
|
|
4872
|
+
const localVarQueryParameter = {} as any;
|
|
4873
|
+
|
|
4874
|
+
// authentication oAuth2AuthCode required
|
|
4875
|
+
// oauth required
|
|
4876
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
|
|
4880
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4881
|
+
|
|
4882
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4884
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4885
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
|
|
4886
|
+
|
|
4887
|
+
return {
|
|
4888
|
+
url: toPathString(localVarUrlObj),
|
|
4889
|
+
options: localVarRequestOptions,
|
|
4890
|
+
};
|
|
4891
|
+
},
|
|
4892
|
+
/**
|
|
4893
|
+
*
|
|
4894
|
+
* @summary Delete all Scenarios of the Workspace
|
|
4895
|
+
* @param {string} organizationId the Organization identifier
|
|
4896
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4897
|
+
* @param {*} [options] Override http request option.
|
|
4898
|
+
* @throws {RequiredError}
|
|
4899
|
+
*/
|
|
4900
|
+
deleteAllScenarios: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4901
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4902
|
+
assertParamExists('deleteAllScenarios', 'organizationId', organizationId)
|
|
4903
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4904
|
+
assertParamExists('deleteAllScenarios', 'workspaceId', workspaceId)
|
|
4905
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios`
|
|
4906
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4907
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4173
4908
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4174
4909
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4175
4910
|
let baseOptions;
|
|
@@ -4177,7 +4912,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4177
4912
|
baseOptions = configuration.baseOptions;
|
|
4178
4913
|
}
|
|
4179
4914
|
|
|
4180
|
-
const localVarRequestOptions = { method: '
|
|
4915
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4181
4916
|
const localVarHeaderParameter = {} as any;
|
|
4182
4917
|
const localVarQueryParameter = {} as any;
|
|
4183
4918
|
|
|
@@ -4187,12 +4922,9 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4187
4922
|
|
|
4188
4923
|
|
|
4189
4924
|
|
|
4190
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4191
|
-
|
|
4192
4925
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4193
4926
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4194
4927
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4195
|
-
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRunTemplateParameterValue, localVarRequestOptions, configuration)
|
|
4196
4928
|
|
|
4197
4929
|
return {
|
|
4198
4930
|
url: toPathString(localVarUrlObj),
|
|
@@ -4201,24 +4933,22 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4201
4933
|
},
|
|
4202
4934
|
/**
|
|
4203
4935
|
*
|
|
4204
|
-
* @summary
|
|
4936
|
+
* @summary Delete a scenario
|
|
4205
4937
|
* @param {string} organizationId the Organization identifier
|
|
4206
4938
|
* @param {string} workspaceId the Workspace identifier
|
|
4207
4939
|
* @param {string} scenarioId the Scenario identifier
|
|
4208
|
-
* @param {
|
|
4940
|
+
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
4209
4941
|
* @param {*} [options] Override http request option.
|
|
4210
4942
|
* @throws {RequiredError}
|
|
4211
4943
|
*/
|
|
4212
|
-
|
|
4944
|
+
deleteScenario: async (organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4213
4945
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4214
|
-
assertParamExists('
|
|
4946
|
+
assertParamExists('deleteScenario', 'organizationId', organizationId)
|
|
4215
4947
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4216
|
-
assertParamExists('
|
|
4948
|
+
assertParamExists('deleteScenario', 'workspaceId', workspaceId)
|
|
4217
4949
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4218
|
-
assertParamExists('
|
|
4219
|
-
|
|
4220
|
-
assertParamExists('addOrReplaceUsersInScenario', 'scenarioUser', scenarioUser)
|
|
4221
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/users`
|
|
4950
|
+
assertParamExists('deleteScenario', 'scenarioId', scenarioId)
|
|
4951
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}`
|
|
4222
4952
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4223
4953
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4224
4954
|
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
@@ -4229,7 +4959,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4229
4959
|
baseOptions = configuration.baseOptions;
|
|
4230
4960
|
}
|
|
4231
4961
|
|
|
4232
|
-
const localVarRequestOptions = { method: '
|
|
4962
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4233
4963
|
const localVarHeaderParameter = {} as any;
|
|
4234
4964
|
const localVarQueryParameter = {} as any;
|
|
4235
4965
|
|
|
@@ -4237,14 +4967,15 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4237
4967
|
// oauth required
|
|
4238
4968
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4239
4969
|
|
|
4970
|
+
if (waitRelationshipPropagation !== undefined) {
|
|
4971
|
+
localVarQueryParameter['wait_relationship_propagation'] = waitRelationshipPropagation;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4240
4974
|
|
|
4241
4975
|
|
|
4242
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4243
|
-
|
|
4244
4976
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4245
4977
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4246
4978
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4247
|
-
localVarRequestOptions.data = serializeDataIfNeeded(scenarioUser, localVarRequestOptions, configuration)
|
|
4248
4979
|
|
|
4249
4980
|
return {
|
|
4250
4981
|
url: toPathString(localVarUrlObj),
|
|
@@ -4253,28 +4984,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4253
4984
|
},
|
|
4254
4985
|
/**
|
|
4255
4986
|
*
|
|
4256
|
-
* @summary
|
|
4987
|
+
* @summary Download Scenario data
|
|
4257
4988
|
* @param {string} organizationId the Organization identifier
|
|
4258
4989
|
* @param {string} workspaceId the Workspace identifier
|
|
4259
4990
|
* @param {string} scenarioId the Scenario identifier
|
|
4260
|
-
* @param {string} comparedScenarioId the Scenario identifier to compare to
|
|
4261
4991
|
* @param {*} [options] Override http request option.
|
|
4262
4992
|
* @throws {RequiredError}
|
|
4263
4993
|
*/
|
|
4264
|
-
|
|
4994
|
+
downloadScenarioData: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4265
4995
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4266
|
-
assertParamExists('
|
|
4996
|
+
assertParamExists('downloadScenarioData', 'organizationId', organizationId)
|
|
4267
4997
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4268
|
-
assertParamExists('
|
|
4998
|
+
assertParamExists('downloadScenarioData', 'workspaceId', workspaceId)
|
|
4269
4999
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4270
|
-
assertParamExists('
|
|
4271
|
-
|
|
4272
|
-
assertParamExists('compareScenarios', 'comparedScenarioId', comparedScenarioId)
|
|
4273
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/compare/{compared_scenario_id}`
|
|
5000
|
+
assertParamExists('downloadScenarioData', 'scenarioId', scenarioId)
|
|
5001
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads`
|
|
4274
5002
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4275
5003
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4276
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4277
|
-
.replace(`{${"compared_scenario_id"}}`, encodeURIComponent(String(comparedScenarioId)));
|
|
5004
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4278
5005
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4279
5006
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4280
5007
|
let baseOptions;
|
|
@@ -4282,7 +5009,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4282
5009
|
baseOptions = configuration.baseOptions;
|
|
4283
5010
|
}
|
|
4284
5011
|
|
|
4285
|
-
const localVarRequestOptions = { method: '
|
|
5012
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4286
5013
|
const localVarHeaderParameter = {} as any;
|
|
4287
5014
|
const localVarQueryParameter = {} as any;
|
|
4288
5015
|
|
|
@@ -4303,20 +5030,17 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4303
5030
|
},
|
|
4304
5031
|
/**
|
|
4305
5032
|
*
|
|
4306
|
-
* @summary
|
|
5033
|
+
* @summary List all Scenarios
|
|
4307
5034
|
* @param {string} organizationId the Organization identifier
|
|
4308
5035
|
* @param {string} workspaceId the Workspace identifier
|
|
4309
|
-
* @param {Scenario} scenario the Scenario to create
|
|
4310
5036
|
* @param {*} [options] Override http request option.
|
|
4311
5037
|
* @throws {RequiredError}
|
|
4312
5038
|
*/
|
|
4313
|
-
|
|
5039
|
+
findAllScenarios: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4314
5040
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4315
|
-
assertParamExists('
|
|
5041
|
+
assertParamExists('findAllScenarios', 'organizationId', organizationId)
|
|
4316
5042
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4317
|
-
assertParamExists('
|
|
4318
|
-
// verify required parameter 'scenario' is not null or undefined
|
|
4319
|
-
assertParamExists('createScenario', 'scenario', scenario)
|
|
5043
|
+
assertParamExists('findAllScenarios', 'workspaceId', workspaceId)
|
|
4320
5044
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios`
|
|
4321
5045
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4322
5046
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -4327,7 +5051,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4327
5051
|
baseOptions = configuration.baseOptions;
|
|
4328
5052
|
}
|
|
4329
5053
|
|
|
4330
|
-
const localVarRequestOptions = { method: '
|
|
5054
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4331
5055
|
const localVarHeaderParameter = {} as any;
|
|
4332
5056
|
const localVarQueryParameter = {} as any;
|
|
4333
5057
|
|
|
@@ -4337,12 +5061,9 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4337
5061
|
|
|
4338
5062
|
|
|
4339
5063
|
|
|
4340
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4341
|
-
|
|
4342
5064
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4343
5065
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4344
5066
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4345
|
-
localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
|
|
4346
5067
|
|
|
4347
5068
|
return {
|
|
4348
5069
|
url: toPathString(localVarUrlObj),
|
|
@@ -4351,20 +5072,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4351
5072
|
},
|
|
4352
5073
|
/**
|
|
4353
5074
|
*
|
|
4354
|
-
* @summary
|
|
5075
|
+
* @summary List all Scenarios by validation status
|
|
4355
5076
|
* @param {string} organizationId the Organization identifier
|
|
4356
5077
|
* @param {string} workspaceId the Workspace identifier
|
|
5078
|
+
* @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
|
|
4357
5079
|
* @param {*} [options] Override http request option.
|
|
4358
5080
|
* @throws {RequiredError}
|
|
4359
5081
|
*/
|
|
4360
|
-
|
|
5082
|
+
findAllScenariosByValidationStatus: async (organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4361
5083
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4362
|
-
assertParamExists('
|
|
5084
|
+
assertParamExists('findAllScenariosByValidationStatus', 'organizationId', organizationId)
|
|
4363
5085
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4364
|
-
assertParamExists('
|
|
4365
|
-
|
|
5086
|
+
assertParamExists('findAllScenariosByValidationStatus', 'workspaceId', workspaceId)
|
|
5087
|
+
// verify required parameter 'validationStatus' is not null or undefined
|
|
5088
|
+
assertParamExists('findAllScenariosByValidationStatus', 'validationStatus', validationStatus)
|
|
5089
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/{validationStatus}`
|
|
4366
5090
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4367
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5091
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5092
|
+
.replace(`{${"validationStatus"}}`, encodeURIComponent(String(validationStatus)));
|
|
4368
5093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4369
5094
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4370
5095
|
let baseOptions;
|
|
@@ -4372,7 +5097,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4372
5097
|
baseOptions = configuration.baseOptions;
|
|
4373
5098
|
}
|
|
4374
5099
|
|
|
4375
|
-
const localVarRequestOptions = { method: '
|
|
5100
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4376
5101
|
const localVarHeaderParameter = {} as any;
|
|
4377
5102
|
const localVarQueryParameter = {} as any;
|
|
4378
5103
|
|
|
@@ -4393,21 +5118,20 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4393
5118
|
},
|
|
4394
5119
|
/**
|
|
4395
5120
|
*
|
|
4396
|
-
* @summary
|
|
5121
|
+
* @summary Get the details of an scenario
|
|
4397
5122
|
* @param {string} organizationId the Organization identifier
|
|
4398
5123
|
* @param {string} workspaceId the Workspace identifier
|
|
4399
5124
|
* @param {string} scenarioId the Scenario identifier
|
|
4400
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
4401
5125
|
* @param {*} [options] Override http request option.
|
|
4402
5126
|
* @throws {RequiredError}
|
|
4403
5127
|
*/
|
|
4404
|
-
|
|
5128
|
+
findScenarioById: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4405
5129
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4406
|
-
assertParamExists('
|
|
5130
|
+
assertParamExists('findScenarioById', 'organizationId', organizationId)
|
|
4407
5131
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4408
|
-
assertParamExists('
|
|
5132
|
+
assertParamExists('findScenarioById', 'workspaceId', workspaceId)
|
|
4409
5133
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4410
|
-
assertParamExists('
|
|
5134
|
+
assertParamExists('findScenarioById', 'scenarioId', scenarioId)
|
|
4411
5135
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}`
|
|
4412
5136
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4413
5137
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
@@ -4419,7 +5143,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4419
5143
|
baseOptions = configuration.baseOptions;
|
|
4420
5144
|
}
|
|
4421
5145
|
|
|
4422
|
-
const localVarRequestOptions = { method: '
|
|
5146
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4423
5147
|
const localVarHeaderParameter = {} as any;
|
|
4424
5148
|
const localVarQueryParameter = {} as any;
|
|
4425
5149
|
|
|
@@ -4427,10 +5151,6 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4427
5151
|
// oauth required
|
|
4428
5152
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4429
5153
|
|
|
4430
|
-
if (waitRelationshipPropagation !== undefined) {
|
|
4431
|
-
localVarQueryParameter['wait_relationship_propagation'] = waitRelationshipPropagation;
|
|
4432
|
-
}
|
|
4433
|
-
|
|
4434
5154
|
|
|
4435
5155
|
|
|
4436
5156
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4444,24 +5164,28 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4444
5164
|
},
|
|
4445
5165
|
/**
|
|
4446
5166
|
*
|
|
4447
|
-
* @summary
|
|
5167
|
+
* @summary Get a control access for the Scenario
|
|
4448
5168
|
* @param {string} organizationId the Organization identifier
|
|
4449
5169
|
* @param {string} workspaceId the Workspace identifier
|
|
4450
5170
|
* @param {string} scenarioId the Scenario identifier
|
|
5171
|
+
* @param {string} identityId the User identifier
|
|
4451
5172
|
* @param {*} [options] Override http request option.
|
|
4452
5173
|
* @throws {RequiredError}
|
|
4453
5174
|
*/
|
|
4454
|
-
|
|
5175
|
+
getScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4455
5176
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4456
|
-
assertParamExists('
|
|
5177
|
+
assertParamExists('getScenarioAccessControl', 'organizationId', organizationId)
|
|
4457
5178
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4458
|
-
assertParamExists('
|
|
5179
|
+
assertParamExists('getScenarioAccessControl', 'workspaceId', workspaceId)
|
|
4459
5180
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4460
|
-
assertParamExists('
|
|
4461
|
-
|
|
5181
|
+
assertParamExists('getScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5182
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5183
|
+
assertParamExists('getScenarioAccessControl', 'identityId', identityId)
|
|
5184
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
4462
5185
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4463
5186
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4464
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5187
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5188
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4465
5189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4466
5190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4467
5191
|
let baseOptions;
|
|
@@ -4469,7 +5193,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4469
5193
|
baseOptions = configuration.baseOptions;
|
|
4470
5194
|
}
|
|
4471
5195
|
|
|
4472
|
-
const localVarRequestOptions = { method: '
|
|
5196
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4473
5197
|
const localVarHeaderParameter = {} as any;
|
|
4474
5198
|
const localVarQueryParameter = {} as any;
|
|
4475
5199
|
|
|
@@ -4490,20 +5214,28 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4490
5214
|
},
|
|
4491
5215
|
/**
|
|
4492
5216
|
*
|
|
4493
|
-
* @summary
|
|
5217
|
+
* @summary Get Scenario data download URL
|
|
4494
5218
|
* @param {string} organizationId the Organization identifier
|
|
4495
5219
|
* @param {string} workspaceId the Workspace identifier
|
|
5220
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5221
|
+
* @param {string} downloadId the Scenario Download identifier
|
|
4496
5222
|
* @param {*} [options] Override http request option.
|
|
4497
5223
|
* @throws {RequiredError}
|
|
4498
5224
|
*/
|
|
4499
|
-
|
|
5225
|
+
getScenarioDataDownloadJobInfo: async (organizationId: string, workspaceId: string, scenarioId: string, downloadId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4500
5226
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4501
|
-
assertParamExists('
|
|
5227
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'organizationId', organizationId)
|
|
4502
5228
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4503
|
-
assertParamExists('
|
|
4504
|
-
|
|
5229
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'workspaceId', workspaceId)
|
|
5230
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5231
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'scenarioId', scenarioId)
|
|
5232
|
+
// verify required parameter 'downloadId' is not null or undefined
|
|
5233
|
+
assertParamExists('getScenarioDataDownloadJobInfo', 'downloadId', downloadId)
|
|
5234
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads/{download_id}`
|
|
4505
5235
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4506
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5236
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5237
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5238
|
+
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
4507
5239
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4508
5240
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4509
5241
|
let baseOptions;
|
|
@@ -4532,24 +5264,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4532
5264
|
},
|
|
4533
5265
|
/**
|
|
4534
5266
|
*
|
|
4535
|
-
* @summary
|
|
5267
|
+
* @summary Get the Scenario permission by given role
|
|
4536
5268
|
* @param {string} organizationId the Organization identifier
|
|
4537
5269
|
* @param {string} workspaceId the Workspace identifier
|
|
4538
|
-
* @param {
|
|
5270
|
+
* @param {string} role the Role
|
|
4539
5271
|
* @param {*} [options] Override http request option.
|
|
4540
5272
|
* @throws {RequiredError}
|
|
4541
5273
|
*/
|
|
4542
|
-
|
|
5274
|
+
getScenarioPermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4543
5275
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4544
|
-
assertParamExists('
|
|
5276
|
+
assertParamExists('getScenarioPermissions', 'organizationId', organizationId)
|
|
4545
5277
|
// 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}/{
|
|
5278
|
+
assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId)
|
|
5279
|
+
// verify required parameter 'role' is not null or undefined
|
|
5280
|
+
assertParamExists('getScenarioPermissions', 'role', role)
|
|
5281
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}`
|
|
4550
5282
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4551
5283
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4552
|
-
.replace(`{${"
|
|
5284
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
4553
5285
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4554
5286
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4555
5287
|
let baseOptions;
|
|
@@ -4578,21 +5310,21 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4578
5310
|
},
|
|
4579
5311
|
/**
|
|
4580
5312
|
*
|
|
4581
|
-
* @summary Get the
|
|
5313
|
+
* @summary Get the Scenario security information
|
|
4582
5314
|
* @param {string} organizationId the Organization identifier
|
|
4583
5315
|
* @param {string} workspaceId the Workspace identifier
|
|
4584
5316
|
* @param {string} scenarioId the Scenario identifier
|
|
4585
5317
|
* @param {*} [options] Override http request option.
|
|
4586
5318
|
* @throws {RequiredError}
|
|
4587
5319
|
*/
|
|
4588
|
-
|
|
5320
|
+
getScenarioSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4589
5321
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4590
|
-
assertParamExists('
|
|
5322
|
+
assertParamExists('getScenarioSecurity', 'organizationId', organizationId)
|
|
4591
5323
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4592
|
-
assertParamExists('
|
|
5324
|
+
assertParamExists('getScenarioSecurity', 'workspaceId', workspaceId)
|
|
4593
5325
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4594
|
-
assertParamExists('
|
|
4595
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}`
|
|
5326
|
+
assertParamExists('getScenarioSecurity', 'scenarioId', scenarioId)
|
|
5327
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security`
|
|
4596
5328
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4597
5329
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4598
5330
|
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
@@ -4624,28 +5356,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4624
5356
|
},
|
|
4625
5357
|
/**
|
|
4626
5358
|
*
|
|
4627
|
-
* @summary Get Scenario
|
|
5359
|
+
* @summary Get the Scenario security users list
|
|
4628
5360
|
* @param {string} organizationId the Organization identifier
|
|
4629
5361
|
* @param {string} workspaceId the Workspace identifier
|
|
4630
5362
|
* @param {string} scenarioId the Scenario identifier
|
|
4631
|
-
* @param {string} downloadId the Scenario Download identifier
|
|
4632
5363
|
* @param {*} [options] Override http request option.
|
|
4633
5364
|
* @throws {RequiredError}
|
|
4634
5365
|
*/
|
|
4635
|
-
|
|
5366
|
+
getScenarioSecurityUsers: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4636
5367
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4637
|
-
assertParamExists('
|
|
5368
|
+
assertParamExists('getScenarioSecurityUsers', 'organizationId', organizationId)
|
|
4638
5369
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4639
|
-
assertParamExists('
|
|
5370
|
+
assertParamExists('getScenarioSecurityUsers', 'workspaceId', workspaceId)
|
|
4640
5371
|
// 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}`
|
|
5372
|
+
assertParamExists('getScenarioSecurityUsers', 'scenarioId', scenarioId)
|
|
5373
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/users`
|
|
4645
5374
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4646
5375
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4647
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4648
|
-
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
5376
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4649
5377
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4650
5378
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4651
5379
|
let baseOptions;
|
|
@@ -4808,24 +5536,28 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4808
5536
|
},
|
|
4809
5537
|
/**
|
|
4810
5538
|
*
|
|
4811
|
-
* @summary Remove
|
|
5539
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
4812
5540
|
* @param {string} organizationId the Organization identifier
|
|
4813
5541
|
* @param {string} workspaceId the Workspace identifier
|
|
4814
5542
|
* @param {string} scenarioId the Scenario identifier
|
|
5543
|
+
* @param {string} identityId the User identifier
|
|
4815
5544
|
* @param {*} [options] Override http request option.
|
|
4816
5545
|
* @throws {RequiredError}
|
|
4817
5546
|
*/
|
|
4818
|
-
|
|
5547
|
+
removeScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4819
5548
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4820
|
-
assertParamExists('
|
|
5549
|
+
assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId)
|
|
4821
5550
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4822
|
-
assertParamExists('
|
|
5551
|
+
assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId)
|
|
4823
5552
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
4824
|
-
assertParamExists('
|
|
4825
|
-
|
|
5553
|
+
assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5554
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5555
|
+
assertParamExists('removeScenarioAccessControl', 'identityId', identityId)
|
|
5556
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
4826
5557
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4827
5558
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4828
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5559
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5560
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4829
5561
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4830
5562
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4831
5563
|
let baseOptions;
|
|
@@ -4854,28 +5586,27 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4854
5586
|
},
|
|
4855
5587
|
/**
|
|
4856
5588
|
*
|
|
4857
|
-
* @summary
|
|
5589
|
+
* @summary Set the Scenario default security
|
|
4858
5590
|
* @param {string} organizationId the Organization identifier
|
|
4859
5591
|
* @param {string} workspaceId the Workspace identifier
|
|
4860
5592
|
* @param {string} scenarioId the Scenario identifier
|
|
4861
|
-
* @param {
|
|
5593
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
4862
5594
|
* @param {*} [options] Override http request option.
|
|
4863
5595
|
* @throws {RequiredError}
|
|
4864
5596
|
*/
|
|
4865
|
-
|
|
5597
|
+
setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4866
5598
|
// verify required parameter 'organizationId' is not null or undefined
|
|
4867
|
-
assertParamExists('
|
|
5599
|
+
assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId)
|
|
4868
5600
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
4869
|
-
assertParamExists('
|
|
5601
|
+
assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId)
|
|
4870
5602
|
// 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}/
|
|
5603
|
+
assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId)
|
|
5604
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
5605
|
+
assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole)
|
|
5606
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default`
|
|
4875
5607
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4876
5608
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
4877
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
4878
|
-
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
5609
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
4879
5610
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4880
5611
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4881
5612
|
let baseOptions;
|
|
@@ -4883,7 +5614,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4883
5614
|
baseOptions = configuration.baseOptions;
|
|
4884
5615
|
}
|
|
4885
5616
|
|
|
4886
|
-
const localVarRequestOptions = { method: '
|
|
5617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4887
5618
|
const localVarHeaderParameter = {} as any;
|
|
4888
5619
|
const localVarQueryParameter = {} as any;
|
|
4889
5620
|
|
|
@@ -4893,9 +5624,12 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4893
5624
|
|
|
4894
5625
|
|
|
4895
5626
|
|
|
5627
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5628
|
+
|
|
4896
5629
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4897
5630
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4898
5631
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5632
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
|
|
4899
5633
|
|
|
4900
5634
|
return {
|
|
4901
5635
|
url: toPathString(localVarUrlObj),
|
|
@@ -4949,6 +5683,62 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4949
5683
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4950
5684
|
localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
|
|
4951
5685
|
|
|
5686
|
+
return {
|
|
5687
|
+
url: toPathString(localVarUrlObj),
|
|
5688
|
+
options: localVarRequestOptions,
|
|
5689
|
+
};
|
|
5690
|
+
},
|
|
5691
|
+
/**
|
|
5692
|
+
*
|
|
5693
|
+
* @summary Update the specified access to User for a Scenario
|
|
5694
|
+
* @param {string} organizationId the Organization identifier
|
|
5695
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5696
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5697
|
+
* @param {string} identityId the User identifier
|
|
5698
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
5699
|
+
* @param {*} [options] Override http request option.
|
|
5700
|
+
* @throws {RequiredError}
|
|
5701
|
+
*/
|
|
5702
|
+
updateScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5703
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5704
|
+
assertParamExists('updateScenarioAccessControl', 'organizationId', organizationId)
|
|
5705
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5706
|
+
assertParamExists('updateScenarioAccessControl', 'workspaceId', workspaceId)
|
|
5707
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5708
|
+
assertParamExists('updateScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5709
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5710
|
+
assertParamExists('updateScenarioAccessControl', 'identityId', identityId)
|
|
5711
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
5712
|
+
assertParamExists('updateScenarioAccessControl', 'scenarioRole', scenarioRole)
|
|
5713
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
5714
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5715
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5716
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5717
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
5718
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5719
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5720
|
+
let baseOptions;
|
|
5721
|
+
if (configuration) {
|
|
5722
|
+
baseOptions = configuration.baseOptions;
|
|
5723
|
+
}
|
|
5724
|
+
|
|
5725
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
5726
|
+
const localVarHeaderParameter = {} as any;
|
|
5727
|
+
const localVarQueryParameter = {} as any;
|
|
5728
|
+
|
|
5729
|
+
// authentication oAuth2AuthCode required
|
|
5730
|
+
// oauth required
|
|
5731
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5732
|
+
|
|
5733
|
+
|
|
5734
|
+
|
|
5735
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5736
|
+
|
|
5737
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5738
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5739
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5740
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
|
|
5741
|
+
|
|
4952
5742
|
return {
|
|
4953
5743
|
url: toPathString(localVarUrlObj),
|
|
4954
5744
|
options: localVarRequestOptions,
|
|
@@ -4980,16 +5770,16 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
4980
5770
|
},
|
|
4981
5771
|
/**
|
|
4982
5772
|
*
|
|
4983
|
-
* @summary Add
|
|
5773
|
+
* @summary Add a control access to the Scenario
|
|
4984
5774
|
* @param {string} organizationId the Organization identifier
|
|
4985
5775
|
* @param {string} workspaceId the Workspace identifier
|
|
4986
5776
|
* @param {string} scenarioId the Scenario identifier
|
|
4987
|
-
* @param {
|
|
5777
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
4988
5778
|
* @param {*} [options] Override http request option.
|
|
4989
5779
|
* @throws {RequiredError}
|
|
4990
5780
|
*/
|
|
4991
|
-
async
|
|
4992
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5781
|
+
async addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
5782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options);
|
|
4993
5783
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4994
5784
|
},
|
|
4995
5785
|
/**
|
|
@@ -5037,77 +5827,130 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5037
5827
|
* @param {string} organizationId the Organization identifier
|
|
5038
5828
|
* @param {string} workspaceId the Workspace identifier
|
|
5039
5829
|
* @param {string} scenarioId the Scenario identifier
|
|
5040
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
5830
|
+
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
5831
|
+
* @param {*} [options] Override http request option.
|
|
5832
|
+
* @throws {RequiredError}
|
|
5833
|
+
*/
|
|
5834
|
+
async deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5835
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options);
|
|
5836
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5837
|
+
},
|
|
5838
|
+
/**
|
|
5839
|
+
*
|
|
5840
|
+
* @summary Download Scenario data
|
|
5841
|
+
* @param {string} organizationId the Organization identifier
|
|
5842
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5843
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5844
|
+
* @param {*} [options] Override http request option.
|
|
5845
|
+
* @throws {RequiredError}
|
|
5846
|
+
*/
|
|
5847
|
+
async downloadScenarioData(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDataDownloadJob>> {
|
|
5848
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadScenarioData(organizationId, workspaceId, scenarioId, options);
|
|
5849
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5850
|
+
},
|
|
5851
|
+
/**
|
|
5852
|
+
*
|
|
5853
|
+
* @summary List all Scenarios
|
|
5854
|
+
* @param {string} organizationId the Organization identifier
|
|
5855
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5856
|
+
* @param {*} [options] Override http request option.
|
|
5857
|
+
* @throws {RequiredError}
|
|
5858
|
+
*/
|
|
5859
|
+
async findAllScenarios(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
|
|
5860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, options);
|
|
5861
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5862
|
+
},
|
|
5863
|
+
/**
|
|
5864
|
+
*
|
|
5865
|
+
* @summary List all Scenarios by validation status
|
|
5866
|
+
* @param {string} organizationId the Organization identifier
|
|
5867
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5868
|
+
* @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
|
|
5869
|
+
* @param {*} [options] Override http request option.
|
|
5870
|
+
* @throws {RequiredError}
|
|
5871
|
+
*/
|
|
5872
|
+
async findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
|
|
5873
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options);
|
|
5874
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5875
|
+
},
|
|
5876
|
+
/**
|
|
5877
|
+
*
|
|
5878
|
+
* @summary Get the details of an scenario
|
|
5879
|
+
* @param {string} organizationId the Organization identifier
|
|
5880
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5881
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5041
5882
|
* @param {*} [options] Override http request option.
|
|
5042
5883
|
* @throws {RequiredError}
|
|
5043
5884
|
*/
|
|
5044
|
-
async
|
|
5045
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5885
|
+
async findScenarioById(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scenario>> {
|
|
5886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findScenarioById(organizationId, workspaceId, scenarioId, options);
|
|
5046
5887
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5047
5888
|
},
|
|
5048
5889
|
/**
|
|
5049
5890
|
*
|
|
5050
|
-
* @summary
|
|
5891
|
+
* @summary Get a control access for the Scenario
|
|
5051
5892
|
* @param {string} organizationId the Organization identifier
|
|
5052
5893
|
* @param {string} workspaceId the Workspace identifier
|
|
5053
5894
|
* @param {string} scenarioId the Scenario identifier
|
|
5895
|
+
* @param {string} identityId the User identifier
|
|
5054
5896
|
* @param {*} [options] Override http request option.
|
|
5055
5897
|
* @throws {RequiredError}
|
|
5056
5898
|
*/
|
|
5057
|
-
async
|
|
5058
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5899
|
+
async getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
5900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options);
|
|
5059
5901
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5060
5902
|
},
|
|
5061
5903
|
/**
|
|
5062
5904
|
*
|
|
5063
|
-
* @summary
|
|
5905
|
+
* @summary Get Scenario data download URL
|
|
5064
5906
|
* @param {string} organizationId the Organization identifier
|
|
5065
5907
|
* @param {string} workspaceId the Workspace identifier
|
|
5908
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5909
|
+
* @param {string} downloadId the Scenario Download identifier
|
|
5066
5910
|
* @param {*} [options] Override http request option.
|
|
5067
5911
|
* @throws {RequiredError}
|
|
5068
5912
|
*/
|
|
5069
|
-
async
|
|
5070
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5913
|
+
async getScenarioDataDownloadJobInfo(organizationId: string, workspaceId: string, scenarioId: string, downloadId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDataDownloadInfo>> {
|
|
5914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options);
|
|
5071
5915
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5072
5916
|
},
|
|
5073
5917
|
/**
|
|
5074
5918
|
*
|
|
5075
|
-
* @summary
|
|
5919
|
+
* @summary Get the Scenario permission by given role
|
|
5076
5920
|
* @param {string} organizationId the Organization identifier
|
|
5077
5921
|
* @param {string} workspaceId the Workspace identifier
|
|
5078
|
-
* @param {
|
|
5922
|
+
* @param {string} role the Role
|
|
5079
5923
|
* @param {*} [options] Override http request option.
|
|
5080
5924
|
* @throws {RequiredError}
|
|
5081
5925
|
*/
|
|
5082
|
-
async
|
|
5083
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5926
|
+
async getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5927
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options);
|
|
5084
5928
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5085
5929
|
},
|
|
5086
5930
|
/**
|
|
5087
5931
|
*
|
|
5088
|
-
* @summary Get the
|
|
5932
|
+
* @summary Get the Scenario security information
|
|
5089
5933
|
* @param {string} organizationId the Organization identifier
|
|
5090
5934
|
* @param {string} workspaceId the Workspace identifier
|
|
5091
5935
|
* @param {string} scenarioId the Scenario identifier
|
|
5092
5936
|
* @param {*} [options] Override http request option.
|
|
5093
5937
|
* @throws {RequiredError}
|
|
5094
5938
|
*/
|
|
5095
|
-
async
|
|
5096
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5939
|
+
async getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
|
|
5940
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioSecurity(organizationId, workspaceId, scenarioId, options);
|
|
5097
5941
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5098
5942
|
},
|
|
5099
5943
|
/**
|
|
5100
5944
|
*
|
|
5101
|
-
* @summary Get Scenario
|
|
5945
|
+
* @summary Get the Scenario security users list
|
|
5102
5946
|
* @param {string} organizationId the Organization identifier
|
|
5103
5947
|
* @param {string} workspaceId the Workspace identifier
|
|
5104
5948
|
* @param {string} scenarioId the Scenario identifier
|
|
5105
|
-
* @param {string} downloadId the Scenario Download identifier
|
|
5106
5949
|
* @param {*} [options] Override http request option.
|
|
5107
5950
|
* @throws {RequiredError}
|
|
5108
5951
|
*/
|
|
5109
|
-
async
|
|
5110
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5952
|
+
async getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5953
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options);
|
|
5111
5954
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5112
5955
|
},
|
|
5113
5956
|
/**
|
|
@@ -5150,29 +5993,30 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5150
5993
|
},
|
|
5151
5994
|
/**
|
|
5152
5995
|
*
|
|
5153
|
-
* @summary Remove
|
|
5996
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5154
5997
|
* @param {string} organizationId the Organization identifier
|
|
5155
5998
|
* @param {string} workspaceId the Workspace identifier
|
|
5156
5999
|
* @param {string} scenarioId the Scenario identifier
|
|
6000
|
+
* @param {string} identityId the User identifier
|
|
5157
6001
|
* @param {*} [options] Override http request option.
|
|
5158
6002
|
* @throws {RequiredError}
|
|
5159
6003
|
*/
|
|
5160
|
-
async
|
|
5161
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6004
|
+
async removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6005
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options);
|
|
5162
6006
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5163
6007
|
},
|
|
5164
6008
|
/**
|
|
5165
6009
|
*
|
|
5166
|
-
* @summary
|
|
6010
|
+
* @summary Set the Scenario default security
|
|
5167
6011
|
* @param {string} organizationId the Organization identifier
|
|
5168
6012
|
* @param {string} workspaceId the Workspace identifier
|
|
5169
6013
|
* @param {string} scenarioId the Scenario identifier
|
|
5170
|
-
* @param {
|
|
6014
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5171
6015
|
* @param {*} [options] Override http request option.
|
|
5172
6016
|
* @throws {RequiredError}
|
|
5173
6017
|
*/
|
|
5174
|
-
async
|
|
5175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6018
|
+
async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
|
|
6019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options);
|
|
5176
6020
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5177
6021
|
},
|
|
5178
6022
|
/**
|
|
@@ -5189,6 +6033,21 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5189
6033
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenario(organizationId, workspaceId, scenarioId, scenario, options);
|
|
5190
6034
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5191
6035
|
},
|
|
6036
|
+
/**
|
|
6037
|
+
*
|
|
6038
|
+
* @summary Update the specified access to User for a Scenario
|
|
6039
|
+
* @param {string} organizationId the Organization identifier
|
|
6040
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6041
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6042
|
+
* @param {string} identityId the User identifier
|
|
6043
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6044
|
+
* @param {*} [options] Override http request option.
|
|
6045
|
+
* @throws {RequiredError}
|
|
6046
|
+
*/
|
|
6047
|
+
async updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
6048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options);
|
|
6049
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6050
|
+
},
|
|
5192
6051
|
}
|
|
5193
6052
|
};
|
|
5194
6053
|
|
|
@@ -5214,16 +6073,16 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5214
6073
|
},
|
|
5215
6074
|
/**
|
|
5216
6075
|
*
|
|
5217
|
-
* @summary Add
|
|
6076
|
+
* @summary Add a control access to the Scenario
|
|
5218
6077
|
* @param {string} organizationId the Organization identifier
|
|
5219
6078
|
* @param {string} workspaceId the Workspace identifier
|
|
5220
6079
|
* @param {string} scenarioId the Scenario identifier
|
|
5221
|
-
* @param {
|
|
6080
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
5222
6081
|
* @param {*} [options] Override http request option.
|
|
5223
6082
|
* @throws {RequiredError}
|
|
5224
6083
|
*/
|
|
5225
|
-
|
|
5226
|
-
return localVarFp.
|
|
6084
|
+
addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
6085
|
+
return localVarFp.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then((request) => request(axios, basePath));
|
|
5227
6086
|
},
|
|
5228
6087
|
/**
|
|
5229
6088
|
*
|
|
@@ -5321,6 +6180,19 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5321
6180
|
findScenarioById(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<Scenario> {
|
|
5322
6181
|
return localVarFp.findScenarioById(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
5323
6182
|
},
|
|
6183
|
+
/**
|
|
6184
|
+
*
|
|
6185
|
+
* @summary Get a control access for the Scenario
|
|
6186
|
+
* @param {string} organizationId the Organization identifier
|
|
6187
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6188
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6189
|
+
* @param {string} identityId the User identifier
|
|
6190
|
+
* @param {*} [options] Override http request option.
|
|
6191
|
+
* @throws {RequiredError}
|
|
6192
|
+
*/
|
|
6193
|
+
getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
6194
|
+
return localVarFp.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(axios, basePath));
|
|
6195
|
+
},
|
|
5324
6196
|
/**
|
|
5325
6197
|
*
|
|
5326
6198
|
* @summary Get Scenario data download URL
|
|
@@ -5334,6 +6206,42 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5334
6206
|
getScenarioDataDownloadJobInfo(organizationId: string, workspaceId: string, scenarioId: string, downloadId: string, options?: any): AxiosPromise<ScenarioDataDownloadInfo> {
|
|
5335
6207
|
return localVarFp.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then((request) => request(axios, basePath));
|
|
5336
6208
|
},
|
|
6209
|
+
/**
|
|
6210
|
+
*
|
|
6211
|
+
* @summary Get the Scenario permission by given role
|
|
6212
|
+
* @param {string} organizationId the Organization identifier
|
|
6213
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6214
|
+
* @param {string} role the Role
|
|
6215
|
+
* @param {*} [options] Override http request option.
|
|
6216
|
+
* @throws {RequiredError}
|
|
6217
|
+
*/
|
|
6218
|
+
getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
6219
|
+
return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(axios, basePath));
|
|
6220
|
+
},
|
|
6221
|
+
/**
|
|
6222
|
+
*
|
|
6223
|
+
* @summary Get the Scenario security information
|
|
6224
|
+
* @param {string} organizationId the Organization identifier
|
|
6225
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6226
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6227
|
+
* @param {*} [options] Override http request option.
|
|
6228
|
+
* @throws {RequiredError}
|
|
6229
|
+
*/
|
|
6230
|
+
getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<ScenarioSecurity> {
|
|
6231
|
+
return localVarFp.getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
6232
|
+
},
|
|
6233
|
+
/**
|
|
6234
|
+
*
|
|
6235
|
+
* @summary Get the Scenario security users list
|
|
6236
|
+
* @param {string} organizationId the Organization identifier
|
|
6237
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6238
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6239
|
+
* @param {*} [options] Override http request option.
|
|
6240
|
+
* @throws {RequiredError}
|
|
6241
|
+
*/
|
|
6242
|
+
getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<Array<string>> {
|
|
6243
|
+
return localVarFp.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
6244
|
+
},
|
|
5337
6245
|
/**
|
|
5338
6246
|
*
|
|
5339
6247
|
* @summary Get the validation status of an scenario
|
|
@@ -5371,28 +6279,29 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5371
6279
|
},
|
|
5372
6280
|
/**
|
|
5373
6281
|
*
|
|
5374
|
-
* @summary Remove
|
|
6282
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5375
6283
|
* @param {string} organizationId the Organization identifier
|
|
5376
6284
|
* @param {string} workspaceId the Workspace identifier
|
|
5377
6285
|
* @param {string} scenarioId the Scenario identifier
|
|
6286
|
+
* @param {string} identityId the User identifier
|
|
5378
6287
|
* @param {*} [options] Override http request option.
|
|
5379
6288
|
* @throws {RequiredError}
|
|
5380
6289
|
*/
|
|
5381
|
-
|
|
5382
|
-
return localVarFp.
|
|
6290
|
+
removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
6291
|
+
return localVarFp.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(axios, basePath));
|
|
5383
6292
|
},
|
|
5384
6293
|
/**
|
|
5385
6294
|
*
|
|
5386
|
-
* @summary
|
|
6295
|
+
* @summary Set the Scenario default security
|
|
5387
6296
|
* @param {string} organizationId the Organization identifier
|
|
5388
6297
|
* @param {string} workspaceId the Workspace identifier
|
|
5389
6298
|
* @param {string} scenarioId the Scenario identifier
|
|
5390
|
-
* @param {
|
|
6299
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5391
6300
|
* @param {*} [options] Override http request option.
|
|
5392
6301
|
* @throws {RequiredError}
|
|
5393
6302
|
*/
|
|
5394
|
-
|
|
5395
|
-
return localVarFp.
|
|
6303
|
+
setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioSecurity> {
|
|
6304
|
+
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(axios, basePath));
|
|
5396
6305
|
},
|
|
5397
6306
|
/**
|
|
5398
6307
|
*
|
|
@@ -5407,6 +6316,20 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5407
6316
|
updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: any): AxiosPromise<Scenario> {
|
|
5408
6317
|
return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(axios, basePath));
|
|
5409
6318
|
},
|
|
6319
|
+
/**
|
|
6320
|
+
*
|
|
6321
|
+
* @summary Update the specified access to User for a Scenario
|
|
6322
|
+
* @param {string} organizationId the Organization identifier
|
|
6323
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6324
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6325
|
+
* @param {string} identityId the User identifier
|
|
6326
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6327
|
+
* @param {*} [options] Override http request option.
|
|
6328
|
+
* @throws {RequiredError}
|
|
6329
|
+
*/
|
|
6330
|
+
updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
6331
|
+
return localVarFp.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(axios, basePath));
|
|
6332
|
+
},
|
|
5410
6333
|
};
|
|
5411
6334
|
};
|
|
5412
6335
|
|
|
@@ -5434,17 +6357,17 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5434
6357
|
|
|
5435
6358
|
/**
|
|
5436
6359
|
*
|
|
5437
|
-
* @summary Add
|
|
6360
|
+
* @summary Add a control access to the Scenario
|
|
5438
6361
|
* @param {string} organizationId the Organization identifier
|
|
5439
6362
|
* @param {string} workspaceId the Workspace identifier
|
|
5440
6363
|
* @param {string} scenarioId the Scenario identifier
|
|
5441
|
-
* @param {
|
|
6364
|
+
* @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
|
|
5442
6365
|
* @param {*} [options] Override http request option.
|
|
5443
6366
|
* @throws {RequiredError}
|
|
5444
6367
|
* @memberof ScenarioApi
|
|
5445
6368
|
*/
|
|
5446
|
-
public
|
|
5447
|
-
return ScenarioApiFp(this.configuration).
|
|
6369
|
+
public addScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, scenarioAccessControl: ScenarioAccessControl, options?: AxiosRequestConfig) {
|
|
6370
|
+
return ScenarioApiFp(this.configuration).addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
5448
6371
|
}
|
|
5449
6372
|
|
|
5450
6373
|
/**
|
|
@@ -5559,6 +6482,21 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5559
6482
|
return ScenarioApiFp(this.configuration).findScenarioById(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
5560
6483
|
}
|
|
5561
6484
|
|
|
6485
|
+
/**
|
|
6486
|
+
*
|
|
6487
|
+
* @summary Get a control access for the Scenario
|
|
6488
|
+
* @param {string} organizationId the Organization identifier
|
|
6489
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6490
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6491
|
+
* @param {string} identityId the User identifier
|
|
6492
|
+
* @param {*} [options] Override http request option.
|
|
6493
|
+
* @throws {RequiredError}
|
|
6494
|
+
* @memberof ScenarioApi
|
|
6495
|
+
*/
|
|
6496
|
+
public getScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
6497
|
+
return ScenarioApiFp(this.configuration).getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
6498
|
+
}
|
|
6499
|
+
|
|
5562
6500
|
/**
|
|
5563
6501
|
*
|
|
5564
6502
|
* @summary Get Scenario data download URL
|
|
@@ -5574,6 +6512,48 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5574
6512
|
return ScenarioApiFp(this.configuration).getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then((request) => request(this.axios, this.basePath));
|
|
5575
6513
|
}
|
|
5576
6514
|
|
|
6515
|
+
/**
|
|
6516
|
+
*
|
|
6517
|
+
* @summary Get the Scenario permission by given role
|
|
6518
|
+
* @param {string} organizationId the Organization identifier
|
|
6519
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6520
|
+
* @param {string} role the Role
|
|
6521
|
+
* @param {*} [options] Override http request option.
|
|
6522
|
+
* @throws {RequiredError}
|
|
6523
|
+
* @memberof ScenarioApi
|
|
6524
|
+
*/
|
|
6525
|
+
public getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig) {
|
|
6526
|
+
return ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(this.axios, this.basePath));
|
|
6527
|
+
}
|
|
6528
|
+
|
|
6529
|
+
/**
|
|
6530
|
+
*
|
|
6531
|
+
* @summary Get the Scenario security information
|
|
6532
|
+
* @param {string} organizationId the Organization identifier
|
|
6533
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6534
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6535
|
+
* @param {*} [options] Override http request option.
|
|
6536
|
+
* @throws {RequiredError}
|
|
6537
|
+
* @memberof ScenarioApi
|
|
6538
|
+
*/
|
|
6539
|
+
public getScenarioSecurity(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
6540
|
+
return ScenarioApiFp(this.configuration).getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
6541
|
+
}
|
|
6542
|
+
|
|
6543
|
+
/**
|
|
6544
|
+
*
|
|
6545
|
+
* @summary Get the Scenario security users list
|
|
6546
|
+
* @param {string} organizationId the Organization identifier
|
|
6547
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6548
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6549
|
+
* @param {*} [options] Override http request option.
|
|
6550
|
+
* @throws {RequiredError}
|
|
6551
|
+
* @memberof ScenarioApi
|
|
6552
|
+
*/
|
|
6553
|
+
public getScenarioSecurityUsers(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
6554
|
+
return ScenarioApiFp(this.configuration).getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
6555
|
+
}
|
|
6556
|
+
|
|
5577
6557
|
/**
|
|
5578
6558
|
*
|
|
5579
6559
|
* @summary Get the validation status of an scenario
|
|
@@ -5617,31 +6597,32 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5617
6597
|
|
|
5618
6598
|
/**
|
|
5619
6599
|
*
|
|
5620
|
-
* @summary Remove
|
|
6600
|
+
* @summary Remove the specified access from the given Organization Scenario
|
|
5621
6601
|
* @param {string} organizationId the Organization identifier
|
|
5622
6602
|
* @param {string} workspaceId the Workspace identifier
|
|
5623
6603
|
* @param {string} scenarioId the Scenario identifier
|
|
6604
|
+
* @param {string} identityId the User identifier
|
|
5624
6605
|
* @param {*} [options] Override http request option.
|
|
5625
6606
|
* @throws {RequiredError}
|
|
5626
6607
|
* @memberof ScenarioApi
|
|
5627
6608
|
*/
|
|
5628
|
-
public
|
|
5629
|
-
return ScenarioApiFp(this.configuration).
|
|
6609
|
+
public removeScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
6610
|
+
return ScenarioApiFp(this.configuration).removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
5630
6611
|
}
|
|
5631
6612
|
|
|
5632
6613
|
/**
|
|
5633
6614
|
*
|
|
5634
|
-
* @summary
|
|
6615
|
+
* @summary Set the Scenario default security
|
|
5635
6616
|
* @param {string} organizationId the Organization identifier
|
|
5636
6617
|
* @param {string} workspaceId the Workspace identifier
|
|
5637
6618
|
* @param {string} scenarioId the Scenario identifier
|
|
5638
|
-
* @param {
|
|
6619
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5639
6620
|
* @param {*} [options] Override http request option.
|
|
5640
6621
|
* @throws {RequiredError}
|
|
5641
6622
|
* @memberof ScenarioApi
|
|
5642
6623
|
*/
|
|
5643
|
-
public
|
|
5644
|
-
return ScenarioApiFp(this.configuration).
|
|
6624
|
+
public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
|
|
6625
|
+
return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
|
|
5645
6626
|
}
|
|
5646
6627
|
|
|
5647
6628
|
/**
|
|
@@ -5658,6 +6639,22 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5658
6639
|
public updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: AxiosRequestConfig) {
|
|
5659
6640
|
return ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(this.axios, this.basePath));
|
|
5660
6641
|
}
|
|
6642
|
+
|
|
6643
|
+
/**
|
|
6644
|
+
*
|
|
6645
|
+
* @summary Update the specified access to User for a Scenario
|
|
6646
|
+
* @param {string} organizationId the Organization identifier
|
|
6647
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6648
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6649
|
+
* @param {string} identityId the User identifier
|
|
6650
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6651
|
+
* @param {*} [options] Override http request option.
|
|
6652
|
+
* @throws {RequiredError}
|
|
6653
|
+
* @memberof ScenarioApi
|
|
6654
|
+
*/
|
|
6655
|
+
public updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
|
|
6656
|
+
return ScenarioApiFp(this.configuration).updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
|
|
6657
|
+
}
|
|
5661
6658
|
}
|
|
5662
6659
|
|
|
5663
6660
|
|
|
@@ -5667,6 +6664,90 @@ export class ScenarioApi extends BaseAPI {
|
|
|
5667
6664
|
*/
|
|
5668
6665
|
export const ScenariorunApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5669
6666
|
return {
|
|
6667
|
+
/**
|
|
6668
|
+
*
|
|
6669
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
6670
|
+
* @param {string} organizationId the Organization identifier
|
|
6671
|
+
* @param {*} [options] Override http request option.
|
|
6672
|
+
* @throws {RequiredError}
|
|
6673
|
+
*/
|
|
6674
|
+
deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6675
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6676
|
+
assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
|
|
6677
|
+
const localVarPath = `/organizations/{organization_id}/scenarioruns/deletehistoricaldata`
|
|
6678
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
6679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6681
|
+
let baseOptions;
|
|
6682
|
+
if (configuration) {
|
|
6683
|
+
baseOptions = configuration.baseOptions;
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6687
|
+
const localVarHeaderParameter = {} as any;
|
|
6688
|
+
const localVarQueryParameter = {} as any;
|
|
6689
|
+
|
|
6690
|
+
// authentication oAuth2AuthCode required
|
|
6691
|
+
// oauth required
|
|
6692
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6693
|
+
|
|
6694
|
+
|
|
6695
|
+
|
|
6696
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6698
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6699
|
+
|
|
6700
|
+
return {
|
|
6701
|
+
url: toPathString(localVarUrlObj),
|
|
6702
|
+
options: localVarRequestOptions,
|
|
6703
|
+
};
|
|
6704
|
+
},
|
|
6705
|
+
/**
|
|
6706
|
+
*
|
|
6707
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
6708
|
+
* @param {string} organizationId the Organization identifier
|
|
6709
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6710
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6711
|
+
* @param {*} [options] Override http request option.
|
|
6712
|
+
* @throws {RequiredError}
|
|
6713
|
+
*/
|
|
6714
|
+
deleteHistoricalScenarioRunsByScenario: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6715
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6716
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId)
|
|
6717
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6718
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId)
|
|
6719
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
6720
|
+
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId)
|
|
6721
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns`
|
|
6722
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6723
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
6724
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
6725
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6726
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6727
|
+
let baseOptions;
|
|
6728
|
+
if (configuration) {
|
|
6729
|
+
baseOptions = configuration.baseOptions;
|
|
6730
|
+
}
|
|
6731
|
+
|
|
6732
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6733
|
+
const localVarHeaderParameter = {} as any;
|
|
6734
|
+
const localVarQueryParameter = {} as any;
|
|
6735
|
+
|
|
6736
|
+
// authentication oAuth2AuthCode required
|
|
6737
|
+
// oauth required
|
|
6738
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6739
|
+
|
|
6740
|
+
|
|
6741
|
+
|
|
6742
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6743
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6744
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6745
|
+
|
|
6746
|
+
return {
|
|
6747
|
+
url: toPathString(localVarUrlObj),
|
|
6748
|
+
options: localVarRequestOptions,
|
|
6749
|
+
};
|
|
6750
|
+
},
|
|
5670
6751
|
/**
|
|
5671
6752
|
*
|
|
5672
6753
|
* @summary Delete a scenariorun
|
|
@@ -6151,6 +7232,30 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6151
7232
|
export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
6152
7233
|
const localVarAxiosParamCreator = ScenariorunApiAxiosParamCreator(configuration)
|
|
6153
7234
|
return {
|
|
7235
|
+
/**
|
|
7236
|
+
*
|
|
7237
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7238
|
+
* @param {string} organizationId the Organization identifier
|
|
7239
|
+
* @param {*} [options] Override http request option.
|
|
7240
|
+
* @throws {RequiredError}
|
|
7241
|
+
*/
|
|
7242
|
+
async deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7243
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
|
|
7244
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7245
|
+
},
|
|
7246
|
+
/**
|
|
7247
|
+
*
|
|
7248
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7249
|
+
* @param {string} organizationId the Organization identifier
|
|
7250
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7251
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7252
|
+
* @param {*} [options] Override http request option.
|
|
7253
|
+
* @throws {RequiredError}
|
|
7254
|
+
*/
|
|
7255
|
+
async deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7256
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options);
|
|
7257
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7258
|
+
},
|
|
6154
7259
|
/**
|
|
6155
7260
|
*
|
|
6156
7261
|
* @summary Delete a scenariorun
|
|
@@ -6285,16 +7390,38 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
6285
7390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.stopScenarioRun(organizationId, scenariorunId, options);
|
|
6286
7391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6287
7392
|
},
|
|
6288
|
-
}
|
|
6289
|
-
};
|
|
6290
|
-
|
|
6291
|
-
/**
|
|
6292
|
-
* ScenariorunApi - factory interface
|
|
6293
|
-
* @export
|
|
6294
|
-
*/
|
|
6295
|
-
export const ScenariorunApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6296
|
-
const localVarFp = ScenariorunApiFp(configuration)
|
|
6297
|
-
return {
|
|
7393
|
+
}
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7396
|
+
/**
|
|
7397
|
+
* ScenariorunApi - factory interface
|
|
7398
|
+
* @export
|
|
7399
|
+
*/
|
|
7400
|
+
export const ScenariorunApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7401
|
+
const localVarFp = ScenariorunApiFp(configuration)
|
|
7402
|
+
return {
|
|
7403
|
+
/**
|
|
7404
|
+
*
|
|
7405
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7406
|
+
* @param {string} organizationId the Organization identifier
|
|
7407
|
+
* @param {*} [options] Override http request option.
|
|
7408
|
+
* @throws {RequiredError}
|
|
7409
|
+
*/
|
|
7410
|
+
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
7411
|
+
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
7412
|
+
},
|
|
7413
|
+
/**
|
|
7414
|
+
*
|
|
7415
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7416
|
+
* @param {string} organizationId the Organization identifier
|
|
7417
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7418
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7419
|
+
* @param {*} [options] Override http request option.
|
|
7420
|
+
* @throws {RequiredError}
|
|
7421
|
+
*/
|
|
7422
|
+
deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<void> {
|
|
7423
|
+
return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
7424
|
+
},
|
|
6298
7425
|
/**
|
|
6299
7426
|
*
|
|
6300
7427
|
* @summary Delete a scenariorun
|
|
@@ -6428,6 +7555,32 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
6428
7555
|
* @extends {BaseAPI}
|
|
6429
7556
|
*/
|
|
6430
7557
|
export class ScenariorunApi extends BaseAPI {
|
|
7558
|
+
/**
|
|
7559
|
+
*
|
|
7560
|
+
* @summary Delete all historical ScenarioRuns in the database
|
|
7561
|
+
* @param {string} organizationId the Organization identifier
|
|
7562
|
+
* @param {*} [options] Override http request option.
|
|
7563
|
+
* @throws {RequiredError}
|
|
7564
|
+
* @memberof ScenariorunApi
|
|
7565
|
+
*/
|
|
7566
|
+
public deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig) {
|
|
7567
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
7568
|
+
}
|
|
7569
|
+
|
|
7570
|
+
/**
|
|
7571
|
+
*
|
|
7572
|
+
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
7573
|
+
* @param {string} organizationId the Organization identifier
|
|
7574
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7575
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7576
|
+
* @param {*} [options] Override http request option.
|
|
7577
|
+
* @throws {RequiredError}
|
|
7578
|
+
* @memberof ScenariorunApi
|
|
7579
|
+
*/
|
|
7580
|
+
public deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
7581
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
7582
|
+
}
|
|
7583
|
+
|
|
6431
7584
|
/**
|
|
6432
7585
|
*
|
|
6433
7586
|
* @summary Delete a scenariorun
|
|
@@ -9395,21 +10548,21 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9395
10548
|
return {
|
|
9396
10549
|
/**
|
|
9397
10550
|
*
|
|
9398
|
-
* @summary Add
|
|
10551
|
+
* @summary Add a control access to the Workspace
|
|
9399
10552
|
* @param {string} organizationId the Organization identifier
|
|
9400
10553
|
* @param {string} workspaceId the Workspace identifier
|
|
9401
|
-
* @param {
|
|
10554
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
9402
10555
|
* @param {*} [options] Override http request option.
|
|
9403
10556
|
* @throws {RequiredError}
|
|
9404
10557
|
*/
|
|
9405
|
-
|
|
10558
|
+
addWorkspaceAccessControl: async (organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9406
10559
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9407
|
-
assertParamExists('
|
|
10560
|
+
assertParamExists('addWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9408
10561
|
// 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}/
|
|
10562
|
+
assertParamExists('addWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
10563
|
+
// verify required parameter 'workspaceAccessControl' is not null or undefined
|
|
10564
|
+
assertParamExists('addWorkspaceAccessControl', 'workspaceAccessControl', workspaceAccessControl)
|
|
10565
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access`
|
|
9413
10566
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9414
10567
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9415
10568
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9434,7 +10587,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9434
10587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9435
10588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9436
10589
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9437
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
10590
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceAccessControl, localVarRequestOptions, configuration)
|
|
9438
10591
|
|
|
9439
10592
|
return {
|
|
9440
10593
|
url: toPathString(localVarUrlObj),
|
|
@@ -9463,7 +10616,234 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9463
10616
|
baseOptions = configuration.baseOptions;
|
|
9464
10617
|
}
|
|
9465
10618
|
|
|
9466
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10619
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10620
|
+
const localVarHeaderParameter = {} as any;
|
|
10621
|
+
const localVarQueryParameter = {} as any;
|
|
10622
|
+
|
|
10623
|
+
// authentication oAuth2AuthCode required
|
|
10624
|
+
// oauth required
|
|
10625
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10626
|
+
|
|
10627
|
+
|
|
10628
|
+
|
|
10629
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10630
|
+
|
|
10631
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10633
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10634
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
|
|
10635
|
+
|
|
10636
|
+
return {
|
|
10637
|
+
url: toPathString(localVarUrlObj),
|
|
10638
|
+
options: localVarRequestOptions,
|
|
10639
|
+
};
|
|
10640
|
+
},
|
|
10641
|
+
/**
|
|
10642
|
+
*
|
|
10643
|
+
* @summary Delete all Workspace files
|
|
10644
|
+
* @param {string} organizationId the Organization identifier
|
|
10645
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10646
|
+
* @param {*} [options] Override http request option.
|
|
10647
|
+
* @throws {RequiredError}
|
|
10648
|
+
*/
|
|
10649
|
+
deleteAllWorkspaceFiles: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10650
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10651
|
+
assertParamExists('deleteAllWorkspaceFiles', 'organizationId', organizationId)
|
|
10652
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10653
|
+
assertParamExists('deleteAllWorkspaceFiles', 'workspaceId', workspaceId)
|
|
10654
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files`
|
|
10655
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10656
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10657
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10658
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10659
|
+
let baseOptions;
|
|
10660
|
+
if (configuration) {
|
|
10661
|
+
baseOptions = configuration.baseOptions;
|
|
10662
|
+
}
|
|
10663
|
+
|
|
10664
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10665
|
+
const localVarHeaderParameter = {} as any;
|
|
10666
|
+
const localVarQueryParameter = {} as any;
|
|
10667
|
+
|
|
10668
|
+
// authentication oAuth2AuthCode required
|
|
10669
|
+
// oauth required
|
|
10670
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10671
|
+
|
|
10672
|
+
|
|
10673
|
+
|
|
10674
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10675
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10676
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10677
|
+
|
|
10678
|
+
return {
|
|
10679
|
+
url: toPathString(localVarUrlObj),
|
|
10680
|
+
options: localVarRequestOptions,
|
|
10681
|
+
};
|
|
10682
|
+
},
|
|
10683
|
+
/**
|
|
10684
|
+
*
|
|
10685
|
+
* @summary Delete a workspace
|
|
10686
|
+
* @param {string} organizationId the Organization identifier
|
|
10687
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10688
|
+
* @param {*} [options] Override http request option.
|
|
10689
|
+
* @throws {RequiredError}
|
|
10690
|
+
*/
|
|
10691
|
+
deleteWorkspace: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10692
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10693
|
+
assertParamExists('deleteWorkspace', 'organizationId', organizationId)
|
|
10694
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10695
|
+
assertParamExists('deleteWorkspace', 'workspaceId', workspaceId)
|
|
10696
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
10697
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10698
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10701
|
+
let baseOptions;
|
|
10702
|
+
if (configuration) {
|
|
10703
|
+
baseOptions = configuration.baseOptions;
|
|
10704
|
+
}
|
|
10705
|
+
|
|
10706
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10707
|
+
const localVarHeaderParameter = {} as any;
|
|
10708
|
+
const localVarQueryParameter = {} as any;
|
|
10709
|
+
|
|
10710
|
+
// authentication oAuth2AuthCode required
|
|
10711
|
+
// oauth required
|
|
10712
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10713
|
+
|
|
10714
|
+
|
|
10715
|
+
|
|
10716
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10718
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10719
|
+
|
|
10720
|
+
return {
|
|
10721
|
+
url: toPathString(localVarUrlObj),
|
|
10722
|
+
options: localVarRequestOptions,
|
|
10723
|
+
};
|
|
10724
|
+
},
|
|
10725
|
+
/**
|
|
10726
|
+
*
|
|
10727
|
+
* @summary Delete a workspace file
|
|
10728
|
+
* @param {string} organizationId the Organization identifier
|
|
10729
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10730
|
+
* @param {string} fileName the file name
|
|
10731
|
+
* @param {*} [options] Override http request option.
|
|
10732
|
+
* @throws {RequiredError}
|
|
10733
|
+
*/
|
|
10734
|
+
deleteWorkspaceFile: async (organizationId: string, workspaceId: string, fileName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10735
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10736
|
+
assertParamExists('deleteWorkspaceFile', 'organizationId', organizationId)
|
|
10737
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10738
|
+
assertParamExists('deleteWorkspaceFile', 'workspaceId', workspaceId)
|
|
10739
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
10740
|
+
assertParamExists('deleteWorkspaceFile', 'fileName', fileName)
|
|
10741
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files/delete`
|
|
10742
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10743
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10744
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10745
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10746
|
+
let baseOptions;
|
|
10747
|
+
if (configuration) {
|
|
10748
|
+
baseOptions = configuration.baseOptions;
|
|
10749
|
+
}
|
|
10750
|
+
|
|
10751
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10752
|
+
const localVarHeaderParameter = {} as any;
|
|
10753
|
+
const localVarQueryParameter = {} as any;
|
|
10754
|
+
|
|
10755
|
+
// authentication oAuth2AuthCode required
|
|
10756
|
+
// oauth required
|
|
10757
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10758
|
+
|
|
10759
|
+
if (fileName !== undefined) {
|
|
10760
|
+
localVarQueryParameter['file_name'] = fileName;
|
|
10761
|
+
}
|
|
10762
|
+
|
|
10763
|
+
|
|
10764
|
+
|
|
10765
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10767
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10768
|
+
|
|
10769
|
+
return {
|
|
10770
|
+
url: toPathString(localVarUrlObj),
|
|
10771
|
+
options: localVarRequestOptions,
|
|
10772
|
+
};
|
|
10773
|
+
},
|
|
10774
|
+
/**
|
|
10775
|
+
*
|
|
10776
|
+
* @summary Download the Workspace File specified
|
|
10777
|
+
* @param {string} organizationId the Organization identifier
|
|
10778
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10779
|
+
* @param {string} fileName the file name
|
|
10780
|
+
* @param {*} [options] Override http request option.
|
|
10781
|
+
* @throws {RequiredError}
|
|
10782
|
+
*/
|
|
10783
|
+
downloadWorkspaceFile: async (organizationId: string, workspaceId: string, fileName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10784
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10785
|
+
assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId)
|
|
10786
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10787
|
+
assertParamExists('downloadWorkspaceFile', 'workspaceId', workspaceId)
|
|
10788
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
10789
|
+
assertParamExists('downloadWorkspaceFile', 'fileName', fileName)
|
|
10790
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files/download`
|
|
10791
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10792
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10794
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10795
|
+
let baseOptions;
|
|
10796
|
+
if (configuration) {
|
|
10797
|
+
baseOptions = configuration.baseOptions;
|
|
10798
|
+
}
|
|
10799
|
+
|
|
10800
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10801
|
+
const localVarHeaderParameter = {} as any;
|
|
10802
|
+
const localVarQueryParameter = {} as any;
|
|
10803
|
+
|
|
10804
|
+
// authentication oAuth2AuthCode required
|
|
10805
|
+
// oauth required
|
|
10806
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10807
|
+
|
|
10808
|
+
if (fileName !== undefined) {
|
|
10809
|
+
localVarQueryParameter['file_name'] = fileName;
|
|
10810
|
+
}
|
|
10811
|
+
|
|
10812
|
+
|
|
10813
|
+
|
|
10814
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10815
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10816
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10817
|
+
|
|
10818
|
+
return {
|
|
10819
|
+
url: toPathString(localVarUrlObj),
|
|
10820
|
+
options: localVarRequestOptions,
|
|
10821
|
+
};
|
|
10822
|
+
},
|
|
10823
|
+
/**
|
|
10824
|
+
*
|
|
10825
|
+
* @summary List all Workspace files
|
|
10826
|
+
* @param {string} organizationId the Organization identifier
|
|
10827
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10828
|
+
* @param {*} [options] Override http request option.
|
|
10829
|
+
* @throws {RequiredError}
|
|
10830
|
+
*/
|
|
10831
|
+
findAllWorkspaceFiles: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10832
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10833
|
+
assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId)
|
|
10834
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10835
|
+
assertParamExists('findAllWorkspaceFiles', 'workspaceId', workspaceId)
|
|
10836
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files`
|
|
10837
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10838
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10839
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10840
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10841
|
+
let baseOptions;
|
|
10842
|
+
if (configuration) {
|
|
10843
|
+
baseOptions = configuration.baseOptions;
|
|
10844
|
+
}
|
|
10845
|
+
|
|
10846
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9467
10847
|
const localVarHeaderParameter = {} as any;
|
|
9468
10848
|
const localVarQueryParameter = {} as any;
|
|
9469
10849
|
|
|
@@ -9473,12 +10853,9 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9473
10853
|
|
|
9474
10854
|
|
|
9475
10855
|
|
|
9476
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9477
|
-
|
|
9478
10856
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9479
10857
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9480
10858
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9481
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
|
|
9482
10859
|
|
|
9483
10860
|
return {
|
|
9484
10861
|
url: toPathString(localVarUrlObj),
|
|
@@ -9487,20 +10864,16 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9487
10864
|
},
|
|
9488
10865
|
/**
|
|
9489
10866
|
*
|
|
9490
|
-
* @summary
|
|
10867
|
+
* @summary List all Workspaces
|
|
9491
10868
|
* @param {string} organizationId the Organization identifier
|
|
9492
|
-
* @param {string} workspaceId the Workspace identifier
|
|
9493
10869
|
* @param {*} [options] Override http request option.
|
|
9494
10870
|
* @throws {RequiredError}
|
|
9495
10871
|
*/
|
|
9496
|
-
|
|
10872
|
+
findAllWorkspaces: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9497
10873
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9498
|
-
assertParamExists('
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/files`
|
|
9502
|
-
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9503
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10874
|
+
assertParamExists('findAllWorkspaces', 'organizationId', organizationId)
|
|
10875
|
+
const localVarPath = `/organizations/{organization_id}/workspaces`
|
|
10876
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
9504
10877
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9505
10878
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9506
10879
|
let baseOptions;
|
|
@@ -9508,7 +10881,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9508
10881
|
baseOptions = configuration.baseOptions;
|
|
9509
10882
|
}
|
|
9510
10883
|
|
|
9511
|
-
const localVarRequestOptions = { method: '
|
|
10884
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9512
10885
|
const localVarHeaderParameter = {} as any;
|
|
9513
10886
|
const localVarQueryParameter = {} as any;
|
|
9514
10887
|
|
|
@@ -9529,17 +10902,17 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9529
10902
|
},
|
|
9530
10903
|
/**
|
|
9531
10904
|
*
|
|
9532
|
-
* @summary
|
|
10905
|
+
* @summary Get the details of an workspace
|
|
9533
10906
|
* @param {string} organizationId the Organization identifier
|
|
9534
10907
|
* @param {string} workspaceId the Workspace identifier
|
|
9535
10908
|
* @param {*} [options] Override http request option.
|
|
9536
10909
|
* @throws {RequiredError}
|
|
9537
10910
|
*/
|
|
9538
|
-
|
|
10911
|
+
findWorkspaceById: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9539
10912
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9540
|
-
assertParamExists('
|
|
10913
|
+
assertParamExists('findWorkspaceById', 'organizationId', organizationId)
|
|
9541
10914
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9542
|
-
assertParamExists('
|
|
10915
|
+
assertParamExists('findWorkspaceById', 'workspaceId', workspaceId)
|
|
9543
10916
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
9544
10917
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9545
10918
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -9550,7 +10923,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9550
10923
|
baseOptions = configuration.baseOptions;
|
|
9551
10924
|
}
|
|
9552
10925
|
|
|
9553
|
-
const localVarRequestOptions = { method: '
|
|
10926
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9554
10927
|
const localVarHeaderParameter = {} as any;
|
|
9555
10928
|
const localVarQueryParameter = {} as any;
|
|
9556
10929
|
|
|
@@ -9571,23 +10944,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9571
10944
|
},
|
|
9572
10945
|
/**
|
|
9573
10946
|
*
|
|
9574
|
-
* @summary
|
|
10947
|
+
* @summary Get a control access for the Workspace
|
|
9575
10948
|
* @param {string} organizationId the Organization identifier
|
|
9576
10949
|
* @param {string} workspaceId the Workspace identifier
|
|
9577
|
-
* @param {string}
|
|
10950
|
+
* @param {string} identityId the User identifier
|
|
9578
10951
|
* @param {*} [options] Override http request option.
|
|
9579
10952
|
* @throws {RequiredError}
|
|
9580
10953
|
*/
|
|
9581
|
-
|
|
10954
|
+
getWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9582
10955
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9583
|
-
assertParamExists('
|
|
10956
|
+
assertParamExists('getWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9584
10957
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9585
|
-
assertParamExists('
|
|
9586
|
-
// verify required parameter '
|
|
9587
|
-
assertParamExists('
|
|
9588
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
10958
|
+
assertParamExists('getWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
10959
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
10960
|
+
assertParamExists('getWorkspaceAccessControl', 'identityId', identityId)
|
|
10961
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
9589
10962
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9590
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10963
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10964
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9591
10965
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9592
10966
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9593
10967
|
let baseOptions;
|
|
@@ -9595,7 +10969,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9595
10969
|
baseOptions = configuration.baseOptions;
|
|
9596
10970
|
}
|
|
9597
10971
|
|
|
9598
|
-
const localVarRequestOptions = { method: '
|
|
10972
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9599
10973
|
const localVarHeaderParameter = {} as any;
|
|
9600
10974
|
const localVarQueryParameter = {} as any;
|
|
9601
10975
|
|
|
@@ -9603,10 +10977,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9603
10977
|
// oauth required
|
|
9604
10978
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9605
10979
|
|
|
9606
|
-
if (fileName !== undefined) {
|
|
9607
|
-
localVarQueryParameter['file_name'] = fileName;
|
|
9608
|
-
}
|
|
9609
|
-
|
|
9610
10980
|
|
|
9611
10981
|
|
|
9612
10982
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9620,23 +10990,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9620
10990
|
},
|
|
9621
10991
|
/**
|
|
9622
10992
|
*
|
|
9623
|
-
* @summary
|
|
10993
|
+
* @summary Get the Workspace permission by given role
|
|
9624
10994
|
* @param {string} organizationId the Organization identifier
|
|
9625
10995
|
* @param {string} workspaceId the Workspace identifier
|
|
9626
|
-
* @param {string}
|
|
10996
|
+
* @param {string} role the Role
|
|
9627
10997
|
* @param {*} [options] Override http request option.
|
|
9628
10998
|
* @throws {RequiredError}
|
|
9629
10999
|
*/
|
|
9630
|
-
|
|
11000
|
+
getWorkspacePermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9631
11001
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9632
|
-
assertParamExists('
|
|
11002
|
+
assertParamExists('getWorkspacePermissions', 'organizationId', organizationId)
|
|
9633
11003
|
// 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}/
|
|
11004
|
+
assertParamExists('getWorkspacePermissions', 'workspaceId', workspaceId)
|
|
11005
|
+
// verify required parameter 'role' is not null or undefined
|
|
11006
|
+
assertParamExists('getWorkspacePermissions', 'role', role)
|
|
11007
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}`
|
|
9638
11008
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9639
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11009
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11010
|
+
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
9640
11011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9641
11012
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9642
11013
|
let baseOptions;
|
|
@@ -9652,10 +11023,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9652
11023
|
// oauth required
|
|
9653
11024
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9654
11025
|
|
|
9655
|
-
if (fileName !== undefined) {
|
|
9656
|
-
localVarQueryParameter['file_name'] = fileName;
|
|
9657
|
-
}
|
|
9658
|
-
|
|
9659
11026
|
|
|
9660
11027
|
|
|
9661
11028
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9669,18 +11036,18 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9669
11036
|
},
|
|
9670
11037
|
/**
|
|
9671
11038
|
*
|
|
9672
|
-
* @summary
|
|
11039
|
+
* @summary Get the Workspace security information
|
|
9673
11040
|
* @param {string} organizationId the Organization identifier
|
|
9674
11041
|
* @param {string} workspaceId the Workspace identifier
|
|
9675
11042
|
* @param {*} [options] Override http request option.
|
|
9676
11043
|
* @throws {RequiredError}
|
|
9677
11044
|
*/
|
|
9678
|
-
|
|
11045
|
+
getWorkspaceSecurity: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9679
11046
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9680
|
-
assertParamExists('
|
|
11047
|
+
assertParamExists('getWorkspaceSecurity', 'organizationId', organizationId)
|
|
9681
11048
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9682
|
-
assertParamExists('
|
|
9683
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/
|
|
11049
|
+
assertParamExists('getWorkspaceSecurity', 'workspaceId', workspaceId)
|
|
11050
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security`
|
|
9684
11051
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9685
11052
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9686
11053
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9711,16 +11078,20 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9711
11078
|
},
|
|
9712
11079
|
/**
|
|
9713
11080
|
*
|
|
9714
|
-
* @summary
|
|
11081
|
+
* @summary Get the Workspace security users list
|
|
9715
11082
|
* @param {string} organizationId the Organization identifier
|
|
11083
|
+
* @param {string} workspaceId the Workspace identifier
|
|
9716
11084
|
* @param {*} [options] Override http request option.
|
|
9717
11085
|
* @throws {RequiredError}
|
|
9718
11086
|
*/
|
|
9719
|
-
|
|
11087
|
+
getWorkspaceSecurityUsers: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9720
11088
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9721
|
-
assertParamExists('
|
|
9722
|
-
|
|
9723
|
-
|
|
11089
|
+
assertParamExists('getWorkspaceSecurityUsers', 'organizationId', organizationId)
|
|
11090
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
11091
|
+
assertParamExists('getWorkspaceSecurityUsers', 'workspaceId', workspaceId)
|
|
11092
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/users`
|
|
11093
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
11094
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9724
11095
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9725
11096
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9726
11097
|
let baseOptions;
|
|
@@ -9749,20 +11120,24 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9749
11120
|
},
|
|
9750
11121
|
/**
|
|
9751
11122
|
*
|
|
9752
|
-
* @summary
|
|
11123
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
9753
11124
|
* @param {string} organizationId the Organization identifier
|
|
9754
11125
|
* @param {string} workspaceId the Workspace identifier
|
|
11126
|
+
* @param {string} identityId the User identifier
|
|
9755
11127
|
* @param {*} [options] Override http request option.
|
|
9756
11128
|
* @throws {RequiredError}
|
|
9757
11129
|
*/
|
|
9758
|
-
|
|
11130
|
+
removeWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9759
11131
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9760
|
-
assertParamExists('
|
|
11132
|
+
assertParamExists('removeWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9761
11133
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9762
|
-
assertParamExists('
|
|
9763
|
-
|
|
11134
|
+
assertParamExists('removeWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
11135
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
11136
|
+
assertParamExists('removeWorkspaceAccessControl', 'identityId', identityId)
|
|
11137
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
9764
11138
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9765
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11139
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11140
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9766
11141
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9767
11142
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9768
11143
|
let baseOptions;
|
|
@@ -9770,7 +11145,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9770
11145
|
baseOptions = configuration.baseOptions;
|
|
9771
11146
|
}
|
|
9772
11147
|
|
|
9773
|
-
const localVarRequestOptions = { method: '
|
|
11148
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9774
11149
|
const localVarHeaderParameter = {} as any;
|
|
9775
11150
|
const localVarQueryParameter = {} as any;
|
|
9776
11151
|
|
|
@@ -9791,18 +11166,21 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9791
11166
|
},
|
|
9792
11167
|
/**
|
|
9793
11168
|
*
|
|
9794
|
-
* @summary
|
|
11169
|
+
* @summary Set the Workspace default security
|
|
9795
11170
|
* @param {string} organizationId the Organization identifier
|
|
9796
11171
|
* @param {string} workspaceId the Workspace identifier
|
|
11172
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
9797
11173
|
* @param {*} [options] Override http request option.
|
|
9798
11174
|
* @throws {RequiredError}
|
|
9799
11175
|
*/
|
|
9800
|
-
|
|
11176
|
+
setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9801
11177
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9802
|
-
assertParamExists('
|
|
11178
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId)
|
|
9803
11179
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9804
|
-
assertParamExists('
|
|
9805
|
-
|
|
11180
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId)
|
|
11181
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
11182
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole)
|
|
11183
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/default`
|
|
9806
11184
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9807
11185
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9808
11186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9812,7 +11190,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9812
11190
|
baseOptions = configuration.baseOptions;
|
|
9813
11191
|
}
|
|
9814
11192
|
|
|
9815
|
-
const localVarRequestOptions = { method: '
|
|
11193
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9816
11194
|
const localVarHeaderParameter = {} as any;
|
|
9817
11195
|
const localVarQueryParameter = {} as any;
|
|
9818
11196
|
|
|
@@ -9822,9 +11200,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9822
11200
|
|
|
9823
11201
|
|
|
9824
11202
|
|
|
11203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11204
|
+
|
|
9825
11205
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9826
11206
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9827
11207
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11208
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
|
|
9828
11209
|
|
|
9829
11210
|
return {
|
|
9830
11211
|
url: toPathString(localVarUrlObj),
|
|
@@ -9833,24 +11214,23 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9833
11214
|
},
|
|
9834
11215
|
/**
|
|
9835
11216
|
*
|
|
9836
|
-
* @summary
|
|
11217
|
+
* @summary Update a workspace
|
|
9837
11218
|
* @param {string} organizationId the Organization identifier
|
|
9838
11219
|
* @param {string} workspaceId the Workspace identifier
|
|
9839
|
-
* @param {
|
|
11220
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
9840
11221
|
* @param {*} [options] Override http request option.
|
|
9841
11222
|
* @throws {RequiredError}
|
|
9842
11223
|
*/
|
|
9843
|
-
|
|
11224
|
+
updateWorkspace: async (organizationId: string, workspaceId: string, workspace: Workspace, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9844
11225
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9845
|
-
assertParamExists('
|
|
11226
|
+
assertParamExists('updateWorkspace', 'organizationId', organizationId)
|
|
9846
11227
|
// 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}
|
|
11228
|
+
assertParamExists('updateWorkspace', 'workspaceId', workspaceId)
|
|
11229
|
+
// verify required parameter 'workspace' is not null or undefined
|
|
11230
|
+
assertParamExists('updateWorkspace', 'workspace', workspace)
|
|
11231
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}`
|
|
9851
11232
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9852
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
9853
|
-
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
11233
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
9854
11234
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9855
11235
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9856
11236
|
let baseOptions;
|
|
@@ -9858,7 +11238,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9858
11238
|
baseOptions = configuration.baseOptions;
|
|
9859
11239
|
}
|
|
9860
11240
|
|
|
9861
|
-
const localVarRequestOptions = { method: '
|
|
11241
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9862
11242
|
const localVarHeaderParameter = {} as any;
|
|
9863
11243
|
const localVarQueryParameter = {} as any;
|
|
9864
11244
|
|
|
@@ -9868,9 +11248,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9868
11248
|
|
|
9869
11249
|
|
|
9870
11250
|
|
|
11251
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11252
|
+
|
|
9871
11253
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9872
11254
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9873
11255
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11256
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
|
|
9874
11257
|
|
|
9875
11258
|
return {
|
|
9876
11259
|
url: toPathString(localVarUrlObj),
|
|
@@ -9879,23 +11262,27 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9879
11262
|
},
|
|
9880
11263
|
/**
|
|
9881
11264
|
*
|
|
9882
|
-
* @summary Update a
|
|
11265
|
+
* @summary Update the specified access to User for a Workspace
|
|
9883
11266
|
* @param {string} organizationId the Organization identifier
|
|
9884
11267
|
* @param {string} workspaceId the Workspace identifier
|
|
9885
|
-
* @param {
|
|
11268
|
+
* @param {string} identityId the User identifier
|
|
11269
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
9886
11270
|
* @param {*} [options] Override http request option.
|
|
9887
11271
|
* @throws {RequiredError}
|
|
9888
11272
|
*/
|
|
9889
|
-
|
|
11273
|
+
updateWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9890
11274
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9891
|
-
assertParamExists('
|
|
11275
|
+
assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId)
|
|
9892
11276
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
9893
|
-
assertParamExists('
|
|
9894
|
-
// verify required parameter '
|
|
9895
|
-
assertParamExists('
|
|
9896
|
-
|
|
11277
|
+
assertParamExists('updateWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
11278
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
11279
|
+
assertParamExists('updateWorkspaceAccessControl', 'identityId', identityId)
|
|
11280
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
11281
|
+
assertParamExists('updateWorkspaceAccessControl', 'workspaceRole', workspaceRole)
|
|
11282
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
9897
11283
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9898
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11284
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11285
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9899
11286
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9900
11287
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9901
11288
|
let baseOptions;
|
|
@@ -9918,7 +11305,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
9918
11305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9919
11306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9920
11307
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9921
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
11308
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
|
|
9922
11309
|
|
|
9923
11310
|
return {
|
|
9924
11311
|
url: toPathString(localVarUrlObj),
|
|
@@ -10000,15 +11387,15 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10000
11387
|
return {
|
|
10001
11388
|
/**
|
|
10002
11389
|
*
|
|
10003
|
-
* @summary Add
|
|
11390
|
+
* @summary Add a control access to the Workspace
|
|
10004
11391
|
* @param {string} organizationId the Organization identifier
|
|
10005
11392
|
* @param {string} workspaceId the Workspace identifier
|
|
10006
|
-
* @param {
|
|
11393
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10007
11394
|
* @param {*} [options] Override http request option.
|
|
10008
11395
|
* @throws {RequiredError}
|
|
10009
11396
|
*/
|
|
10010
|
-
async
|
|
10011
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11397
|
+
async addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options);
|
|
10012
11399
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10013
11400
|
},
|
|
10014
11401
|
/**
|
|
@@ -10110,27 +11497,78 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10110
11497
|
},
|
|
10111
11498
|
/**
|
|
10112
11499
|
*
|
|
10113
|
-
* @summary
|
|
11500
|
+
* @summary Get a control access for the Workspace
|
|
10114
11501
|
* @param {string} organizationId the Organization identifier
|
|
10115
11502
|
* @param {string} workspaceId the Workspace identifier
|
|
11503
|
+
* @param {string} identityId the User identifier
|
|
10116
11504
|
* @param {*} [options] Override http request option.
|
|
10117
11505
|
* @throws {RequiredError}
|
|
10118
11506
|
*/
|
|
10119
|
-
async
|
|
10120
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11507
|
+
async getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options);
|
|
10121
11509
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10122
11510
|
},
|
|
10123
11511
|
/**
|
|
10124
11512
|
*
|
|
10125
|
-
* @summary
|
|
11513
|
+
* @summary Get the Workspace permission by given role
|
|
11514
|
+
* @param {string} organizationId the Organization identifier
|
|
11515
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11516
|
+
* @param {string} role the Role
|
|
11517
|
+
* @param {*} [options] Override http request option.
|
|
11518
|
+
* @throws {RequiredError}
|
|
11519
|
+
*/
|
|
11520
|
+
async getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
11521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspacePermissions(organizationId, workspaceId, role, options);
|
|
11522
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11523
|
+
},
|
|
11524
|
+
/**
|
|
11525
|
+
*
|
|
11526
|
+
* @summary Get the Workspace security information
|
|
10126
11527
|
* @param {string} organizationId the Organization identifier
|
|
10127
11528
|
* @param {string} workspaceId the Workspace identifier
|
|
10128
|
-
* @param {string} userId the User identifier
|
|
10129
11529
|
* @param {*} [options] Override http request option.
|
|
10130
11530
|
* @throws {RequiredError}
|
|
10131
11531
|
*/
|
|
10132
|
-
async
|
|
10133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11532
|
+
async getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
|
|
11533
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurity(organizationId, workspaceId, options);
|
|
11534
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11535
|
+
},
|
|
11536
|
+
/**
|
|
11537
|
+
*
|
|
11538
|
+
* @summary Get the Workspace security users list
|
|
11539
|
+
* @param {string} organizationId the Organization identifier
|
|
11540
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11541
|
+
* @param {*} [options] Override http request option.
|
|
11542
|
+
* @throws {RequiredError}
|
|
11543
|
+
*/
|
|
11544
|
+
async getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
11545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options);
|
|
11546
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11547
|
+
},
|
|
11548
|
+
/**
|
|
11549
|
+
*
|
|
11550
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
11551
|
+
* @param {string} organizationId the Organization identifier
|
|
11552
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11553
|
+
* @param {string} identityId the User identifier
|
|
11554
|
+
* @param {*} [options] Override http request option.
|
|
11555
|
+
* @throws {RequiredError}
|
|
11556
|
+
*/
|
|
11557
|
+
async removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
11558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options);
|
|
11559
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11560
|
+
},
|
|
11561
|
+
/**
|
|
11562
|
+
*
|
|
11563
|
+
* @summary Set the Workspace default security
|
|
11564
|
+
* @param {string} organizationId the Organization identifier
|
|
11565
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11566
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
11567
|
+
* @param {*} [options] Override http request option.
|
|
11568
|
+
* @throws {RequiredError}
|
|
11569
|
+
*/
|
|
11570
|
+
async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
|
|
11571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options);
|
|
10134
11572
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10135
11573
|
},
|
|
10136
11574
|
/**
|
|
@@ -10138,7 +11576,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10138
11576
|
* @summary Update a workspace
|
|
10139
11577
|
* @param {string} organizationId the Organization identifier
|
|
10140
11578
|
* @param {string} workspaceId the Workspace identifier
|
|
10141
|
-
* @param {Workspace} workspace
|
|
11579
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10142
11580
|
* @param {*} [options] Override http request option.
|
|
10143
11581
|
* @throws {RequiredError}
|
|
10144
11582
|
*/
|
|
@@ -10146,6 +11584,20 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
10146
11584
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspace(organizationId, workspaceId, workspace, options);
|
|
10147
11585
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10148
11586
|
},
|
|
11587
|
+
/**
|
|
11588
|
+
*
|
|
11589
|
+
* @summary Update the specified access to User for a Workspace
|
|
11590
|
+
* @param {string} organizationId the Organization identifier
|
|
11591
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11592
|
+
* @param {string} identityId the User identifier
|
|
11593
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11594
|
+
* @param {*} [options] Override http request option.
|
|
11595
|
+
* @throws {RequiredError}
|
|
11596
|
+
*/
|
|
11597
|
+
async updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options);
|
|
11599
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11600
|
+
},
|
|
10149
11601
|
/**
|
|
10150
11602
|
*
|
|
10151
11603
|
* @summary Upload a file for the Workspace
|
|
@@ -10173,15 +11625,15 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10173
11625
|
return {
|
|
10174
11626
|
/**
|
|
10175
11627
|
*
|
|
10176
|
-
* @summary Add
|
|
11628
|
+
* @summary Add a control access to the Workspace
|
|
10177
11629
|
* @param {string} organizationId the Organization identifier
|
|
10178
11630
|
* @param {string} workspaceId the Workspace identifier
|
|
10179
|
-
* @param {
|
|
11631
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10180
11632
|
* @param {*} [options] Override http request option.
|
|
10181
11633
|
* @throws {RequiredError}
|
|
10182
11634
|
*/
|
|
10183
|
-
|
|
10184
|
-
return localVarFp.
|
|
11635
|
+
addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11636
|
+
return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(axios, basePath));
|
|
10185
11637
|
},
|
|
10186
11638
|
/**
|
|
10187
11639
|
*
|
|
@@ -10274,39 +11726,99 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10274
11726
|
},
|
|
10275
11727
|
/**
|
|
10276
11728
|
*
|
|
10277
|
-
* @summary
|
|
11729
|
+
* @summary Get a control access for the Workspace
|
|
10278
11730
|
* @param {string} organizationId the Organization identifier
|
|
10279
11731
|
* @param {string} workspaceId the Workspace identifier
|
|
11732
|
+
* @param {string} identityId the User identifier
|
|
10280
11733
|
* @param {*} [options] Override http request option.
|
|
10281
11734
|
* @throws {RequiredError}
|
|
10282
11735
|
*/
|
|
10283
|
-
|
|
10284
|
-
return localVarFp.
|
|
11736
|
+
getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11737
|
+
return localVarFp.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(axios, basePath));
|
|
10285
11738
|
},
|
|
10286
11739
|
/**
|
|
10287
11740
|
*
|
|
10288
|
-
* @summary
|
|
11741
|
+
* @summary Get the Workspace permission by given role
|
|
10289
11742
|
* @param {string} organizationId the Organization identifier
|
|
10290
11743
|
* @param {string} workspaceId the Workspace identifier
|
|
10291
|
-
* @param {string}
|
|
11744
|
+
* @param {string} role the Role
|
|
11745
|
+
* @param {*} [options] Override http request option.
|
|
11746
|
+
* @throws {RequiredError}
|
|
11747
|
+
*/
|
|
11748
|
+
getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
11749
|
+
return localVarFp.getWorkspacePermissions(organizationId, workspaceId, role, options).then((request) => request(axios, basePath));
|
|
11750
|
+
},
|
|
11751
|
+
/**
|
|
11752
|
+
*
|
|
11753
|
+
* @summary Get the Workspace security information
|
|
11754
|
+
* @param {string} organizationId the Organization identifier
|
|
11755
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11756
|
+
* @param {*} [options] Override http request option.
|
|
11757
|
+
* @throws {RequiredError}
|
|
11758
|
+
*/
|
|
11759
|
+
getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: any): AxiosPromise<WorkspaceSecurity> {
|
|
11760
|
+
return localVarFp.getWorkspaceSecurity(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
11761
|
+
},
|
|
11762
|
+
/**
|
|
11763
|
+
*
|
|
11764
|
+
* @summary Get the Workspace security users list
|
|
11765
|
+
* @param {string} organizationId the Organization identifier
|
|
11766
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11767
|
+
* @param {*} [options] Override http request option.
|
|
11768
|
+
* @throws {RequiredError}
|
|
11769
|
+
*/
|
|
11770
|
+
getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<string>> {
|
|
11771
|
+
return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
11772
|
+
},
|
|
11773
|
+
/**
|
|
11774
|
+
*
|
|
11775
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
11776
|
+
* @param {string} organizationId the Organization identifier
|
|
11777
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11778
|
+
* @param {string} identityId the User identifier
|
|
11779
|
+
* @param {*} [options] Override http request option.
|
|
11780
|
+
* @throws {RequiredError}
|
|
11781
|
+
*/
|
|
11782
|
+
removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
11783
|
+
return localVarFp.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(axios, basePath));
|
|
11784
|
+
},
|
|
11785
|
+
/**
|
|
11786
|
+
*
|
|
11787
|
+
* @summary Set the Workspace default security
|
|
11788
|
+
* @param {string} organizationId the Organization identifier
|
|
11789
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11790
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10292
11791
|
* @param {*} [options] Override http request option.
|
|
10293
11792
|
* @throws {RequiredError}
|
|
10294
11793
|
*/
|
|
10295
|
-
|
|
10296
|
-
return localVarFp.
|
|
11794
|
+
setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceSecurity> {
|
|
11795
|
+
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(axios, basePath));
|
|
10297
11796
|
},
|
|
10298
11797
|
/**
|
|
10299
11798
|
*
|
|
10300
11799
|
* @summary Update a workspace
|
|
10301
11800
|
* @param {string} organizationId the Organization identifier
|
|
10302
11801
|
* @param {string} workspaceId the Workspace identifier
|
|
10303
|
-
* @param {Workspace} workspace
|
|
11802
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10304
11803
|
* @param {*} [options] Override http request option.
|
|
10305
11804
|
* @throws {RequiredError}
|
|
10306
11805
|
*/
|
|
10307
11806
|
updateWorkspace(organizationId: string, workspaceId: string, workspace: Workspace, options?: any): AxiosPromise<Workspace> {
|
|
10308
11807
|
return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(axios, basePath));
|
|
10309
11808
|
},
|
|
11809
|
+
/**
|
|
11810
|
+
*
|
|
11811
|
+
* @summary Update the specified access to User for a Workspace
|
|
11812
|
+
* @param {string} organizationId the Organization identifier
|
|
11813
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11814
|
+
* @param {string} identityId the User identifier
|
|
11815
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11816
|
+
* @param {*} [options] Override http request option.
|
|
11817
|
+
* @throws {RequiredError}
|
|
11818
|
+
*/
|
|
11819
|
+
updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11820
|
+
return localVarFp.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(axios, basePath));
|
|
11821
|
+
},
|
|
10310
11822
|
/**
|
|
10311
11823
|
*
|
|
10312
11824
|
* @summary Upload a file for the Workspace
|
|
@@ -10333,16 +11845,16 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
10333
11845
|
export class WorkspaceApi extends BaseAPI {
|
|
10334
11846
|
/**
|
|
10335
11847
|
*
|
|
10336
|
-
* @summary Add
|
|
11848
|
+
* @summary Add a control access to the Workspace
|
|
10337
11849
|
* @param {string} organizationId the Organization identifier
|
|
10338
11850
|
* @param {string} workspaceId the Workspace identifier
|
|
10339
|
-
* @param {
|
|
11851
|
+
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
10340
11852
|
* @param {*} [options] Override http request option.
|
|
10341
11853
|
* @throws {RequiredError}
|
|
10342
11854
|
* @memberof WorkspaceApi
|
|
10343
11855
|
*/
|
|
10344
|
-
public
|
|
10345
|
-
return WorkspaceApiFp(this.configuration).
|
|
11856
|
+
public addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: AxiosRequestConfig) {
|
|
11857
|
+
return WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
10346
11858
|
}
|
|
10347
11859
|
|
|
10348
11860
|
/**
|
|
@@ -10452,29 +11964,84 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
10452
11964
|
|
|
10453
11965
|
/**
|
|
10454
11966
|
*
|
|
10455
|
-
* @summary
|
|
11967
|
+
* @summary Get a control access for the Workspace
|
|
10456
11968
|
* @param {string} organizationId the Organization identifier
|
|
10457
11969
|
* @param {string} workspaceId the Workspace identifier
|
|
11970
|
+
* @param {string} identityId the User identifier
|
|
10458
11971
|
* @param {*} [options] Override http request option.
|
|
10459
11972
|
* @throws {RequiredError}
|
|
10460
11973
|
* @memberof WorkspaceApi
|
|
10461
11974
|
*/
|
|
10462
|
-
public
|
|
10463
|
-
return WorkspaceApiFp(this.configuration).
|
|
11975
|
+
public getWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
11976
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
10464
11977
|
}
|
|
10465
11978
|
|
|
10466
11979
|
/**
|
|
10467
11980
|
*
|
|
10468
|
-
* @summary
|
|
11981
|
+
* @summary Get the Workspace permission by given role
|
|
10469
11982
|
* @param {string} organizationId the Organization identifier
|
|
10470
11983
|
* @param {string} workspaceId the Workspace identifier
|
|
10471
|
-
* @param {string}
|
|
11984
|
+
* @param {string} role the Role
|
|
11985
|
+
* @param {*} [options] Override http request option.
|
|
11986
|
+
* @throws {RequiredError}
|
|
11987
|
+
* @memberof WorkspaceApi
|
|
11988
|
+
*/
|
|
11989
|
+
public getWorkspacePermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig) {
|
|
11990
|
+
return WorkspaceApiFp(this.configuration).getWorkspacePermissions(organizationId, workspaceId, role, options).then((request) => request(this.axios, this.basePath));
|
|
11991
|
+
}
|
|
11992
|
+
|
|
11993
|
+
/**
|
|
11994
|
+
*
|
|
11995
|
+
* @summary Get the Workspace security information
|
|
11996
|
+
* @param {string} organizationId the Organization identifier
|
|
11997
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11998
|
+
* @param {*} [options] Override http request option.
|
|
11999
|
+
* @throws {RequiredError}
|
|
12000
|
+
* @memberof WorkspaceApi
|
|
12001
|
+
*/
|
|
12002
|
+
public getWorkspaceSecurity(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
12003
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceSecurity(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
12004
|
+
}
|
|
12005
|
+
|
|
12006
|
+
/**
|
|
12007
|
+
*
|
|
12008
|
+
* @summary Get the Workspace security users list
|
|
12009
|
+
* @param {string} organizationId the Organization identifier
|
|
12010
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12011
|
+
* @param {*} [options] Override http request option.
|
|
12012
|
+
* @throws {RequiredError}
|
|
12013
|
+
* @memberof WorkspaceApi
|
|
12014
|
+
*/
|
|
12015
|
+
public getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
12016
|
+
return WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
12017
|
+
}
|
|
12018
|
+
|
|
12019
|
+
/**
|
|
12020
|
+
*
|
|
12021
|
+
* @summary Remove the specified access from the given Organization Workspace
|
|
12022
|
+
* @param {string} organizationId the Organization identifier
|
|
12023
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12024
|
+
* @param {string} identityId the User identifier
|
|
12025
|
+
* @param {*} [options] Override http request option.
|
|
12026
|
+
* @throws {RequiredError}
|
|
12027
|
+
* @memberof WorkspaceApi
|
|
12028
|
+
*/
|
|
12029
|
+
public removeWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
12030
|
+
return WorkspaceApiFp(this.configuration).removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
/**
|
|
12034
|
+
*
|
|
12035
|
+
* @summary Set the Workspace default security
|
|
12036
|
+
* @param {string} organizationId the Organization identifier
|
|
12037
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12038
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10472
12039
|
* @param {*} [options] Override http request option.
|
|
10473
12040
|
* @throws {RequiredError}
|
|
10474
12041
|
* @memberof WorkspaceApi
|
|
10475
12042
|
*/
|
|
10476
|
-
public
|
|
10477
|
-
return WorkspaceApiFp(this.configuration).
|
|
12043
|
+
public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
|
|
12044
|
+
return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
|
|
10478
12045
|
}
|
|
10479
12046
|
|
|
10480
12047
|
/**
|
|
@@ -10482,7 +12049,7 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
10482
12049
|
* @summary Update a workspace
|
|
10483
12050
|
* @param {string} organizationId the Organization identifier
|
|
10484
12051
|
* @param {string} workspaceId the Workspace identifier
|
|
10485
|
-
* @param {Workspace} workspace
|
|
12052
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10486
12053
|
* @param {*} [options] Override http request option.
|
|
10487
12054
|
* @throws {RequiredError}
|
|
10488
12055
|
* @memberof WorkspaceApi
|
|
@@ -10491,6 +12058,21 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
10491
12058
|
return WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(this.axios, this.basePath));
|
|
10492
12059
|
}
|
|
10493
12060
|
|
|
12061
|
+
/**
|
|
12062
|
+
*
|
|
12063
|
+
* @summary Update the specified access to User for a Workspace
|
|
12064
|
+
* @param {string} organizationId the Organization identifier
|
|
12065
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12066
|
+
* @param {string} identityId the User identifier
|
|
12067
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
12068
|
+
* @param {*} [options] Override http request option.
|
|
12069
|
+
* @throws {RequiredError}
|
|
12070
|
+
* @memberof WorkspaceApi
|
|
12071
|
+
*/
|
|
12072
|
+
public updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
|
|
12073
|
+
return WorkspaceApiFp(this.configuration).updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
|
|
12074
|
+
}
|
|
12075
|
+
|
|
10494
12076
|
/**
|
|
10495
12077
|
*
|
|
10496
12078
|
* @summary Upload a file for the Workspace
|