@cosmotech/api-ts 2.0.4 → 2.0.13-dev
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 +5 -2
- package/README.md +2 -2
- package/api.ts +641 -92
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +434 -73
- package/dist/api.js +505 -92
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/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: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -201,6 +201,44 @@ export interface ConnectorParameterGroup {
|
|
|
201
201
|
*/
|
|
202
202
|
'parameters': Array<ConnectorParameter>;
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* define cpus and memory needs
|
|
206
|
+
* @export
|
|
207
|
+
* @interface ContainerResourceSizeInfo
|
|
208
|
+
*/
|
|
209
|
+
export interface ContainerResourceSizeInfo {
|
|
210
|
+
/**
|
|
211
|
+
* define cpu needs
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof ContainerResourceSizeInfo
|
|
214
|
+
*/
|
|
215
|
+
'cpu': string;
|
|
216
|
+
/**
|
|
217
|
+
* define memory needs
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof ContainerResourceSizeInfo
|
|
220
|
+
*/
|
|
221
|
+
'memory': string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
225
|
+
* @export
|
|
226
|
+
* @interface ContainerResourceSizing
|
|
227
|
+
*/
|
|
228
|
+
export interface ContainerResourceSizing {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {ContainerResourceSizeInfo}
|
|
232
|
+
* @memberof ContainerResourceSizing
|
|
233
|
+
*/
|
|
234
|
+
'requests': ContainerResourceSizeInfo;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {ContainerResourceSizeInfo}
|
|
238
|
+
* @memberof ContainerResourceSizing
|
|
239
|
+
*/
|
|
240
|
+
'limits': ContainerResourceSizeInfo;
|
|
241
|
+
}
|
|
204
242
|
/**
|
|
205
243
|
* a Dataset
|
|
206
244
|
* @export
|
|
@@ -356,6 +394,31 @@ export interface DatasetSearch {
|
|
|
356
394
|
*/
|
|
357
395
|
'datasetTags': Array<string>;
|
|
358
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Configuration of scenario runs deletion automatic mecanism
|
|
399
|
+
* @export
|
|
400
|
+
* @interface DeleteHistoricalData
|
|
401
|
+
*/
|
|
402
|
+
export interface DeleteHistoricalData {
|
|
403
|
+
/**
|
|
404
|
+
* Activate or Deactivate historical data deletion
|
|
405
|
+
* @type {boolean}
|
|
406
|
+
* @memberof DeleteHistoricalData
|
|
407
|
+
*/
|
|
408
|
+
'enable': boolean;
|
|
409
|
+
/**
|
|
410
|
+
* define the polling frequency of scenario run status (in millis)
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof DeleteHistoricalData
|
|
413
|
+
*/
|
|
414
|
+
'pollFrequency'?: number;
|
|
415
|
+
/**
|
|
416
|
+
* define the polling timeout
|
|
417
|
+
* @type {number}
|
|
418
|
+
* @memberof DeleteHistoricalData
|
|
419
|
+
*/
|
|
420
|
+
'timeOut'?: number;
|
|
421
|
+
}
|
|
359
422
|
/**
|
|
360
423
|
* an Organization
|
|
361
424
|
* @export
|
|
@@ -412,6 +475,19 @@ export interface OrganizationAccessControl {
|
|
|
412
475
|
*/
|
|
413
476
|
'role': string;
|
|
414
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* the Organization Role
|
|
480
|
+
* @export
|
|
481
|
+
* @interface OrganizationRole
|
|
482
|
+
*/
|
|
483
|
+
export interface OrganizationRole {
|
|
484
|
+
/**
|
|
485
|
+
* the Organization Role
|
|
486
|
+
* @type {string}
|
|
487
|
+
* @memberof OrganizationRole
|
|
488
|
+
*/
|
|
489
|
+
'role': string;
|
|
490
|
+
}
|
|
415
491
|
/**
|
|
416
492
|
* the Organization security information
|
|
417
493
|
* @export
|
|
@@ -493,6 +569,25 @@ export interface OrganizationServices {
|
|
|
493
569
|
*/
|
|
494
570
|
'solutionsContainerRegistry'?: OrganizationService;
|
|
495
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* define cpus and memory needs
|
|
574
|
+
* @export
|
|
575
|
+
* @interface ResourceSizeInfo
|
|
576
|
+
*/
|
|
577
|
+
export interface ResourceSizeInfo {
|
|
578
|
+
/**
|
|
579
|
+
* define cpu needs
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof ResourceSizeInfo
|
|
582
|
+
*/
|
|
583
|
+
'cpu': string;
|
|
584
|
+
/**
|
|
585
|
+
* define memory needs
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof ResourceSizeInfo
|
|
588
|
+
*/
|
|
589
|
+
'memory': string;
|
|
590
|
+
}
|
|
496
591
|
/**
|
|
497
592
|
* a Solution Run Template
|
|
498
593
|
* @export
|
|
@@ -535,6 +630,12 @@ export interface RunTemplate {
|
|
|
535
630
|
* @memberof RunTemplate
|
|
536
631
|
*/
|
|
537
632
|
'computeSize'?: string;
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @type {RunTemplateResourceSizing}
|
|
636
|
+
* @memberof RunTemplate
|
|
637
|
+
*/
|
|
638
|
+
'runSizing'?: RunTemplateResourceSizing;
|
|
538
639
|
/**
|
|
539
640
|
* set to true if the run template does not want to check data ingestion state (no probes or not control plane)
|
|
540
641
|
* @type {boolean}
|
|
@@ -679,6 +780,12 @@ export interface RunTemplate {
|
|
|
679
780
|
* @memberof RunTemplate
|
|
680
781
|
*/
|
|
681
782
|
'executionTimeout'?: number;
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @type {DeleteHistoricalData}
|
|
786
|
+
* @memberof RunTemplate
|
|
787
|
+
*/
|
|
788
|
+
'deleteHistoricalData'?: DeleteHistoricalData;
|
|
682
789
|
}
|
|
683
790
|
/**
|
|
684
791
|
* the Run Template step handler identifier
|
|
@@ -821,6 +928,25 @@ export interface RunTemplateParameterValue {
|
|
|
821
928
|
*/
|
|
822
929
|
'value': string;
|
|
823
930
|
}
|
|
931
|
+
/**
|
|
932
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
933
|
+
* @export
|
|
934
|
+
* @interface RunTemplateResourceSizing
|
|
935
|
+
*/
|
|
936
|
+
export interface RunTemplateResourceSizing {
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {ResourceSizeInfo}
|
|
940
|
+
* @memberof RunTemplateResourceSizing
|
|
941
|
+
*/
|
|
942
|
+
'requests': ResourceSizeInfo;
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @type {ResourceSizeInfo}
|
|
946
|
+
* @memberof RunTemplateResourceSizing
|
|
947
|
+
*/
|
|
948
|
+
'limits': ResourceSizeInfo;
|
|
949
|
+
}
|
|
824
950
|
/**
|
|
825
951
|
* the source local, cloud or git repository
|
|
826
952
|
* @export
|
|
@@ -945,6 +1071,12 @@ export interface Scenario {
|
|
|
945
1071
|
* @memberof Scenario
|
|
946
1072
|
*/
|
|
947
1073
|
'datasetList'?: Array<string>;
|
|
1074
|
+
/**
|
|
1075
|
+
*
|
|
1076
|
+
* @type {ScenarioResourceSizing}
|
|
1077
|
+
* @memberof Scenario
|
|
1078
|
+
*/
|
|
1079
|
+
'runSizing'?: ScenarioResourceSizing;
|
|
948
1080
|
/**
|
|
949
1081
|
* the list of Solution Run Template parameters values
|
|
950
1082
|
* @type {Array<ScenarioRunTemplateParameterValue>}
|
|
@@ -1138,6 +1270,38 @@ export interface ScenarioLastRun {
|
|
|
1138
1270
|
*/
|
|
1139
1271
|
'workflowName'?: string;
|
|
1140
1272
|
}
|
|
1273
|
+
/**
|
|
1274
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
1275
|
+
* @export
|
|
1276
|
+
* @interface ScenarioResourceSizing
|
|
1277
|
+
*/
|
|
1278
|
+
export interface ScenarioResourceSizing {
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @type {ResourceSizeInfo}
|
|
1282
|
+
* @memberof ScenarioResourceSizing
|
|
1283
|
+
*/
|
|
1284
|
+
'requests': ResourceSizeInfo;
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @type {ResourceSizeInfo}
|
|
1288
|
+
* @memberof ScenarioResourceSizing
|
|
1289
|
+
*/
|
|
1290
|
+
'limits': ResourceSizeInfo;
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* the Scenario Role
|
|
1294
|
+
* @export
|
|
1295
|
+
* @interface ScenarioRole
|
|
1296
|
+
*/
|
|
1297
|
+
export interface ScenarioRole {
|
|
1298
|
+
/**
|
|
1299
|
+
* the Scenario Role
|
|
1300
|
+
* @type {string}
|
|
1301
|
+
* @memberof ScenarioRole
|
|
1302
|
+
*/
|
|
1303
|
+
'role': string;
|
|
1304
|
+
}
|
|
1141
1305
|
/**
|
|
1142
1306
|
* a ScenarioRun with only base properties
|
|
1143
1307
|
* @export
|
|
@@ -1337,6 +1501,18 @@ export interface ScenarioRunContainer {
|
|
|
1337
1501
|
* @memberof ScenarioRunContainer
|
|
1338
1502
|
*/
|
|
1339
1503
|
'solutionContainer'?: boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* the node label request
|
|
1506
|
+
* @type {string}
|
|
1507
|
+
* @memberof ScenarioRunContainer
|
|
1508
|
+
*/
|
|
1509
|
+
'nodeLabel'?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @type {ContainerResourceSizing}
|
|
1513
|
+
* @memberof ScenarioRunContainer
|
|
1514
|
+
*/
|
|
1515
|
+
'runSizing'?: ContainerResourceSizing;
|
|
1340
1516
|
/**
|
|
1341
1517
|
* the list of artifacts
|
|
1342
1518
|
* @type {Array<ScenarioRunContainerArtifact>}
|
|
@@ -2174,6 +2350,19 @@ export interface WorkspaceFile {
|
|
|
2174
2350
|
*/
|
|
2175
2351
|
'fileName'?: string;
|
|
2176
2352
|
}
|
|
2353
|
+
/**
|
|
2354
|
+
* the Workspace Role
|
|
2355
|
+
* @export
|
|
2356
|
+
* @interface WorkspaceRole
|
|
2357
|
+
*/
|
|
2358
|
+
export interface WorkspaceRole {
|
|
2359
|
+
/**
|
|
2360
|
+
* the Workspace Role
|
|
2361
|
+
* @type {string}
|
|
2362
|
+
* @memberof WorkspaceRole
|
|
2363
|
+
*/
|
|
2364
|
+
'role': string;
|
|
2365
|
+
}
|
|
2177
2366
|
/**
|
|
2178
2367
|
* the workspace security information
|
|
2179
2368
|
* @export
|
|
@@ -3326,7 +3515,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3326
3515
|
return {
|
|
3327
3516
|
/**
|
|
3328
3517
|
*
|
|
3329
|
-
* @summary
|
|
3518
|
+
* @summary Add a control access to the Organization
|
|
3330
3519
|
* @param {string} organizationId the Organization identifier
|
|
3331
3520
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3332
3521
|
* @param {*} [options] Override http request option.
|
|
@@ -3476,7 +3665,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3476
3665
|
},
|
|
3477
3666
|
/**
|
|
3478
3667
|
*
|
|
3479
|
-
* @summary
|
|
3668
|
+
* @summary Get a control access for the Organization
|
|
3480
3669
|
* @param {string} organizationId the Organization identifier
|
|
3481
3670
|
* @param {string} identityId the User identifier
|
|
3482
3671
|
* @param {*} [options] Override http request option.
|
|
@@ -3599,7 +3788,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3599
3788
|
/**
|
|
3600
3789
|
*
|
|
3601
3790
|
* @summary Get the Organization security users list
|
|
3602
|
-
* @param {string} organizationId
|
|
3791
|
+
* @param {string} organizationId The Organization identifier
|
|
3603
3792
|
* @param {*} [options] Override http request option.
|
|
3604
3793
|
* @throws {RequiredError}
|
|
3605
3794
|
*/
|
|
@@ -3718,17 +3907,17 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3718
3907
|
},
|
|
3719
3908
|
/**
|
|
3720
3909
|
*
|
|
3721
|
-
* @summary
|
|
3910
|
+
* @summary Set the Organization default security
|
|
3722
3911
|
* @param {string} organizationId the Organization identifier
|
|
3723
|
-
* @param {
|
|
3912
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
3724
3913
|
* @param {*} [options] Override http request option.
|
|
3725
3914
|
* @throws {RequiredError}
|
|
3726
3915
|
*/
|
|
3727
|
-
setOrganizationDefaultSecurity: async (organizationId: string,
|
|
3916
|
+
setOrganizationDefaultSecurity: async (organizationId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3728
3917
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3729
3918
|
assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId)
|
|
3730
|
-
// verify required parameter '
|
|
3731
|
-
assertParamExists('setOrganizationDefaultSecurity', '
|
|
3919
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
3920
|
+
assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole)
|
|
3732
3921
|
const localVarPath = `/organizations/{organization_id}/security/default`
|
|
3733
3922
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3734
3923
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3753,7 +3942,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3753
3942
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3754
3943
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3755
3944
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3756
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3945
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
|
|
3757
3946
|
|
|
3758
3947
|
return {
|
|
3759
3948
|
url: toPathString(localVarUrlObj),
|
|
@@ -3842,6 +4031,54 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
3842
4031
|
options: localVarRequestOptions,
|
|
3843
4032
|
};
|
|
3844
4033
|
},
|
|
4034
|
+
/**
|
|
4035
|
+
*
|
|
4036
|
+
* @summary Update the specified access to User for an Organization
|
|
4037
|
+
* @param {string} organizationId the Organization identifier
|
|
4038
|
+
* @param {string} identityId the User identifier
|
|
4039
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4040
|
+
* @param {*} [options] Override http request option.
|
|
4041
|
+
* @throws {RequiredError}
|
|
4042
|
+
*/
|
|
4043
|
+
updateOrganizationAccessControl: async (organizationId: string, identityId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4044
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4045
|
+
assertParamExists('updateOrganizationAccessControl', 'organizationId', organizationId)
|
|
4046
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
4047
|
+
assertParamExists('updateOrganizationAccessControl', 'identityId', identityId)
|
|
4048
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
4049
|
+
assertParamExists('updateOrganizationAccessControl', 'organizationRole', organizationRole)
|
|
4050
|
+
const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
|
|
4051
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4052
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4053
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4054
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4055
|
+
let baseOptions;
|
|
4056
|
+
if (configuration) {
|
|
4057
|
+
baseOptions = configuration.baseOptions;
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4061
|
+
const localVarHeaderParameter = {} as any;
|
|
4062
|
+
const localVarQueryParameter = {} as any;
|
|
4063
|
+
|
|
4064
|
+
// authentication oAuth2AuthCode required
|
|
4065
|
+
// oauth required
|
|
4066
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
|
|
4070
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4071
|
+
|
|
4072
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4073
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4074
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4075
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
|
|
4076
|
+
|
|
4077
|
+
return {
|
|
4078
|
+
url: toPathString(localVarUrlObj),
|
|
4079
|
+
options: localVarRequestOptions,
|
|
4080
|
+
};
|
|
4081
|
+
},
|
|
3845
4082
|
/**
|
|
3846
4083
|
*
|
|
3847
4084
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -3986,7 +4223,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
3986
4223
|
return {
|
|
3987
4224
|
/**
|
|
3988
4225
|
*
|
|
3989
|
-
* @summary
|
|
4226
|
+
* @summary Add a control access to the Organization
|
|
3990
4227
|
* @param {string} organizationId the Organization identifier
|
|
3991
4228
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
3992
4229
|
* @param {*} [options] Override http request option.
|
|
@@ -4029,7 +4266,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
4029
4266
|
},
|
|
4030
4267
|
/**
|
|
4031
4268
|
*
|
|
4032
|
-
* @summary
|
|
4269
|
+
* @summary Get a control access for the Organization
|
|
4033
4270
|
* @param {string} organizationId the Organization identifier
|
|
4034
4271
|
* @param {string} identityId the User identifier
|
|
4035
4272
|
* @param {*} [options] Override http request option.
|
|
@@ -4065,7 +4302,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
4065
4302
|
/**
|
|
4066
4303
|
*
|
|
4067
4304
|
* @summary Get the Organization security users list
|
|
4068
|
-
* @param {string} organizationId
|
|
4305
|
+
* @param {string} organizationId The Organization identifier
|
|
4069
4306
|
* @param {*} [options] Override http request option.
|
|
4070
4307
|
* @throws {RequiredError}
|
|
4071
4308
|
*/
|
|
@@ -4098,14 +4335,14 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
4098
4335
|
},
|
|
4099
4336
|
/**
|
|
4100
4337
|
*
|
|
4101
|
-
* @summary
|
|
4338
|
+
* @summary Set the Organization default security
|
|
4102
4339
|
* @param {string} organizationId the Organization identifier
|
|
4103
|
-
* @param {
|
|
4340
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
4104
4341
|
* @param {*} [options] Override http request option.
|
|
4105
4342
|
* @throws {RequiredError}
|
|
4106
4343
|
*/
|
|
4107
|
-
async setOrganizationDefaultSecurity(organizationId: string,
|
|
4108
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId,
|
|
4344
|
+
async setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
|
|
4345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options);
|
|
4109
4346
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4110
4347
|
},
|
|
4111
4348
|
/**
|
|
@@ -4131,6 +4368,19 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
4131
4368
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(organizationId, organization, options);
|
|
4132
4369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4133
4370
|
},
|
|
4371
|
+
/**
|
|
4372
|
+
*
|
|
4373
|
+
* @summary Update the specified access to User for an Organization
|
|
4374
|
+
* @param {string} organizationId the Organization identifier
|
|
4375
|
+
* @param {string} identityId the User identifier
|
|
4376
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4377
|
+
* @param {*} [options] Override http request option.
|
|
4378
|
+
* @throws {RequiredError}
|
|
4379
|
+
*/
|
|
4380
|
+
async updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
|
|
4381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options);
|
|
4382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4383
|
+
},
|
|
4134
4384
|
/**
|
|
4135
4385
|
*
|
|
4136
4386
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -4179,7 +4429,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4179
4429
|
return {
|
|
4180
4430
|
/**
|
|
4181
4431
|
*
|
|
4182
|
-
* @summary
|
|
4432
|
+
* @summary Add a control access to the Organization
|
|
4183
4433
|
* @param {string} organizationId the Organization identifier
|
|
4184
4434
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
4185
4435
|
* @param {*} [options] Override http request option.
|
|
@@ -4218,7 +4468,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4218
4468
|
},
|
|
4219
4469
|
/**
|
|
4220
4470
|
*
|
|
4221
|
-
* @summary
|
|
4471
|
+
* @summary Get a control access for the Organization
|
|
4222
4472
|
* @param {string} organizationId the Organization identifier
|
|
4223
4473
|
* @param {string} identityId the User identifier
|
|
4224
4474
|
* @param {*} [options] Override http request option.
|
|
@@ -4251,7 +4501,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4251
4501
|
/**
|
|
4252
4502
|
*
|
|
4253
4503
|
* @summary Get the Organization security users list
|
|
4254
|
-
* @param {string} organizationId
|
|
4504
|
+
* @param {string} organizationId The Organization identifier
|
|
4255
4505
|
* @param {*} [options] Override http request option.
|
|
4256
4506
|
* @throws {RequiredError}
|
|
4257
4507
|
*/
|
|
@@ -4281,14 +4531,14 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4281
4531
|
},
|
|
4282
4532
|
/**
|
|
4283
4533
|
*
|
|
4284
|
-
* @summary
|
|
4534
|
+
* @summary Set the Organization default security
|
|
4285
4535
|
* @param {string} organizationId the Organization identifier
|
|
4286
|
-
* @param {
|
|
4536
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
4287
4537
|
* @param {*} [options] Override http request option.
|
|
4288
4538
|
* @throws {RequiredError}
|
|
4289
4539
|
*/
|
|
4290
|
-
setOrganizationDefaultSecurity(organizationId: string,
|
|
4291
|
-
return localVarFp.setOrganizationDefaultSecurity(organizationId,
|
|
4540
|
+
setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationSecurity> {
|
|
4541
|
+
return localVarFp.setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(axios, basePath));
|
|
4292
4542
|
},
|
|
4293
4543
|
/**
|
|
4294
4544
|
*
|
|
@@ -4311,6 +4561,18 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4311
4561
|
updateOrganization(organizationId: string, organization: Organization, options?: any): AxiosPromise<Organization> {
|
|
4312
4562
|
return localVarFp.updateOrganization(organizationId, organization, options).then((request) => request(axios, basePath));
|
|
4313
4563
|
},
|
|
4564
|
+
/**
|
|
4565
|
+
*
|
|
4566
|
+
* @summary Update the specified access to User for an Organization
|
|
4567
|
+
* @param {string} organizationId the Organization identifier
|
|
4568
|
+
* @param {string} identityId the User identifier
|
|
4569
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4570
|
+
* @param {*} [options] Override http request option.
|
|
4571
|
+
* @throws {RequiredError}
|
|
4572
|
+
*/
|
|
4573
|
+
updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationAccessControl> {
|
|
4574
|
+
return localVarFp.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(axios, basePath));
|
|
4575
|
+
},
|
|
4314
4576
|
/**
|
|
4315
4577
|
*
|
|
4316
4578
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -4356,7 +4618,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4356
4618
|
export class OrganizationApi extends BaseAPI {
|
|
4357
4619
|
/**
|
|
4358
4620
|
*
|
|
4359
|
-
* @summary
|
|
4621
|
+
* @summary Add a control access to the Organization
|
|
4360
4622
|
* @param {string} organizationId the Organization identifier
|
|
4361
4623
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
4362
4624
|
* @param {*} [options] Override http request option.
|
|
@@ -4403,7 +4665,7 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4403
4665
|
|
|
4404
4666
|
/**
|
|
4405
4667
|
*
|
|
4406
|
-
* @summary
|
|
4668
|
+
* @summary Get a control access for the Organization
|
|
4407
4669
|
* @param {string} organizationId the Organization identifier
|
|
4408
4670
|
* @param {string} identityId the User identifier
|
|
4409
4671
|
* @param {*} [options] Override http request option.
|
|
@@ -4442,7 +4704,7 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4442
4704
|
/**
|
|
4443
4705
|
*
|
|
4444
4706
|
* @summary Get the Organization security users list
|
|
4445
|
-
* @param {string} organizationId
|
|
4707
|
+
* @param {string} organizationId The Organization identifier
|
|
4446
4708
|
* @param {*} [options] Override http request option.
|
|
4447
4709
|
* @throws {RequiredError}
|
|
4448
4710
|
* @memberof OrganizationApi
|
|
@@ -4478,15 +4740,15 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4478
4740
|
|
|
4479
4741
|
/**
|
|
4480
4742
|
*
|
|
4481
|
-
* @summary
|
|
4743
|
+
* @summary Set the Organization default security
|
|
4482
4744
|
* @param {string} organizationId the Organization identifier
|
|
4483
|
-
* @param {
|
|
4745
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
4484
4746
|
* @param {*} [options] Override http request option.
|
|
4485
4747
|
* @throws {RequiredError}
|
|
4486
4748
|
* @memberof OrganizationApi
|
|
4487
4749
|
*/
|
|
4488
|
-
public setOrganizationDefaultSecurity(organizationId: string,
|
|
4489
|
-
return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId,
|
|
4750
|
+
public setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
|
|
4751
|
+
return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(this.axios, this.basePath));
|
|
4490
4752
|
}
|
|
4491
4753
|
|
|
4492
4754
|
/**
|
|
@@ -4514,6 +4776,20 @@ export class OrganizationApi extends BaseAPI {
|
|
|
4514
4776
|
return OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then((request) => request(this.axios, this.basePath));
|
|
4515
4777
|
}
|
|
4516
4778
|
|
|
4779
|
+
/**
|
|
4780
|
+
*
|
|
4781
|
+
* @summary Update the specified access to User for an Organization
|
|
4782
|
+
* @param {string} organizationId the Organization identifier
|
|
4783
|
+
* @param {string} identityId the User identifier
|
|
4784
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
4785
|
+
* @param {*} [options] Override http request option.
|
|
4786
|
+
* @throws {RequiredError}
|
|
4787
|
+
* @memberof OrganizationApi
|
|
4788
|
+
*/
|
|
4789
|
+
public updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
|
|
4790
|
+
return OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(this.axios, this.basePath));
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4517
4793
|
/**
|
|
4518
4794
|
*
|
|
4519
4795
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -4615,7 +4891,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4615
4891
|
},
|
|
4616
4892
|
/**
|
|
4617
4893
|
*
|
|
4618
|
-
* @summary
|
|
4894
|
+
* @summary Add a control access to the Scenario
|
|
4619
4895
|
* @param {string} organizationId the Organization identifier
|
|
4620
4896
|
* @param {string} workspaceId the Workspace identifier
|
|
4621
4897
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5038,7 +5314,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5038
5314
|
},
|
|
5039
5315
|
/**
|
|
5040
5316
|
*
|
|
5041
|
-
* @summary
|
|
5317
|
+
* @summary Get a control access for the Scenario
|
|
5042
5318
|
* @param {string} organizationId the Organization identifier
|
|
5043
5319
|
* @param {string} workspaceId the Workspace identifier
|
|
5044
5320
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5460,23 +5736,23 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5460
5736
|
},
|
|
5461
5737
|
/**
|
|
5462
5738
|
*
|
|
5463
|
-
* @summary
|
|
5739
|
+
* @summary Set the Scenario default security
|
|
5464
5740
|
* @param {string} organizationId the Organization identifier
|
|
5465
5741
|
* @param {string} workspaceId the Workspace identifier
|
|
5466
5742
|
* @param {string} scenarioId the Scenario identifier
|
|
5467
|
-
* @param {
|
|
5743
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5468
5744
|
* @param {*} [options] Override http request option.
|
|
5469
5745
|
* @throws {RequiredError}
|
|
5470
5746
|
*/
|
|
5471
|
-
setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string,
|
|
5747
|
+
setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5472
5748
|
// verify required parameter 'organizationId' is not null or undefined
|
|
5473
5749
|
assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId)
|
|
5474
5750
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
5475
5751
|
assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId)
|
|
5476
5752
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
5477
5753
|
assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId)
|
|
5478
|
-
// verify required parameter '
|
|
5479
|
-
assertParamExists('setScenarioDefaultSecurity', '
|
|
5754
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
5755
|
+
assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole)
|
|
5480
5756
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default`
|
|
5481
5757
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5482
5758
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
@@ -5503,7 +5779,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5503
5779
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5504
5780
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5505
5781
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5506
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5782
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
|
|
5507
5783
|
|
|
5508
5784
|
return {
|
|
5509
5785
|
url: toPathString(localVarUrlObj),
|
|
@@ -5557,6 +5833,62 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5557
5833
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5558
5834
|
localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
|
|
5559
5835
|
|
|
5836
|
+
return {
|
|
5837
|
+
url: toPathString(localVarUrlObj),
|
|
5838
|
+
options: localVarRequestOptions,
|
|
5839
|
+
};
|
|
5840
|
+
},
|
|
5841
|
+
/**
|
|
5842
|
+
*
|
|
5843
|
+
* @summary Update the specified access to User for a Scenario
|
|
5844
|
+
* @param {string} organizationId the Organization identifier
|
|
5845
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5846
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5847
|
+
* @param {string} identityId the User identifier
|
|
5848
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
5849
|
+
* @param {*} [options] Override http request option.
|
|
5850
|
+
* @throws {RequiredError}
|
|
5851
|
+
*/
|
|
5852
|
+
updateScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5853
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5854
|
+
assertParamExists('updateScenarioAccessControl', 'organizationId', organizationId)
|
|
5855
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5856
|
+
assertParamExists('updateScenarioAccessControl', 'workspaceId', workspaceId)
|
|
5857
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
5858
|
+
assertParamExists('updateScenarioAccessControl', 'scenarioId', scenarioId)
|
|
5859
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
5860
|
+
assertParamExists('updateScenarioAccessControl', 'identityId', identityId)
|
|
5861
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
5862
|
+
assertParamExists('updateScenarioAccessControl', 'scenarioRole', scenarioRole)
|
|
5863
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
|
|
5864
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5865
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
5866
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5867
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
5868
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5869
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5870
|
+
let baseOptions;
|
|
5871
|
+
if (configuration) {
|
|
5872
|
+
baseOptions = configuration.baseOptions;
|
|
5873
|
+
}
|
|
5874
|
+
|
|
5875
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
5876
|
+
const localVarHeaderParameter = {} as any;
|
|
5877
|
+
const localVarQueryParameter = {} as any;
|
|
5878
|
+
|
|
5879
|
+
// authentication oAuth2AuthCode required
|
|
5880
|
+
// oauth required
|
|
5881
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5882
|
+
|
|
5883
|
+
|
|
5884
|
+
|
|
5885
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5886
|
+
|
|
5887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5889
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5890
|
+
localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
|
|
5891
|
+
|
|
5560
5892
|
return {
|
|
5561
5893
|
url: toPathString(localVarUrlObj),
|
|
5562
5894
|
options: localVarRequestOptions,
|
|
@@ -5588,7 +5920,7 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5588
5920
|
},
|
|
5589
5921
|
/**
|
|
5590
5922
|
*
|
|
5591
|
-
* @summary
|
|
5923
|
+
* @summary Add a control access to the Scenario
|
|
5592
5924
|
* @param {string} organizationId the Organization identifier
|
|
5593
5925
|
* @param {string} workspaceId the Workspace identifier
|
|
5594
5926
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5706,7 +6038,7 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5706
6038
|
},
|
|
5707
6039
|
/**
|
|
5708
6040
|
*
|
|
5709
|
-
* @summary
|
|
6041
|
+
* @summary Get a control access for the Scenario
|
|
5710
6042
|
* @param {string} organizationId the Organization identifier
|
|
5711
6043
|
* @param {string} workspaceId the Workspace identifier
|
|
5712
6044
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5825,16 +6157,16 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5825
6157
|
},
|
|
5826
6158
|
/**
|
|
5827
6159
|
*
|
|
5828
|
-
* @summary
|
|
6160
|
+
* @summary Set the Scenario default security
|
|
5829
6161
|
* @param {string} organizationId the Organization identifier
|
|
5830
6162
|
* @param {string} workspaceId the Workspace identifier
|
|
5831
6163
|
* @param {string} scenarioId the Scenario identifier
|
|
5832
|
-
* @param {
|
|
6164
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5833
6165
|
* @param {*} [options] Override http request option.
|
|
5834
6166
|
* @throws {RequiredError}
|
|
5835
6167
|
*/
|
|
5836
|
-
async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string,
|
|
5837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
6168
|
+
async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
|
|
6169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options);
|
|
5838
6170
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5839
6171
|
},
|
|
5840
6172
|
/**
|
|
@@ -5851,6 +6183,21 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
5851
6183
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenario(organizationId, workspaceId, scenarioId, scenario, options);
|
|
5852
6184
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5853
6185
|
},
|
|
6186
|
+
/**
|
|
6187
|
+
*
|
|
6188
|
+
* @summary Update the specified access to User for a Scenario
|
|
6189
|
+
* @param {string} organizationId the Organization identifier
|
|
6190
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6191
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6192
|
+
* @param {string} identityId the User identifier
|
|
6193
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6194
|
+
* @param {*} [options] Override http request option.
|
|
6195
|
+
* @throws {RequiredError}
|
|
6196
|
+
*/
|
|
6197
|
+
async updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
|
|
6198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options);
|
|
6199
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6200
|
+
},
|
|
5854
6201
|
}
|
|
5855
6202
|
};
|
|
5856
6203
|
|
|
@@ -5876,7 +6223,7 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5876
6223
|
},
|
|
5877
6224
|
/**
|
|
5878
6225
|
*
|
|
5879
|
-
* @summary
|
|
6226
|
+
* @summary Add a control access to the Scenario
|
|
5880
6227
|
* @param {string} organizationId the Organization identifier
|
|
5881
6228
|
* @param {string} workspaceId the Workspace identifier
|
|
5882
6229
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5985,7 +6332,7 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
5985
6332
|
},
|
|
5986
6333
|
/**
|
|
5987
6334
|
*
|
|
5988
|
-
* @summary
|
|
6335
|
+
* @summary Get a control access for the Scenario
|
|
5989
6336
|
* @param {string} organizationId the Organization identifier
|
|
5990
6337
|
* @param {string} workspaceId the Workspace identifier
|
|
5991
6338
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -6095,16 +6442,16 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
6095
6442
|
},
|
|
6096
6443
|
/**
|
|
6097
6444
|
*
|
|
6098
|
-
* @summary
|
|
6445
|
+
* @summary Set the Scenario default security
|
|
6099
6446
|
* @param {string} organizationId the Organization identifier
|
|
6100
6447
|
* @param {string} workspaceId the Workspace identifier
|
|
6101
6448
|
* @param {string} scenarioId the Scenario identifier
|
|
6102
|
-
* @param {
|
|
6449
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
6103
6450
|
* @param {*} [options] Override http request option.
|
|
6104
6451
|
* @throws {RequiredError}
|
|
6105
6452
|
*/
|
|
6106
|
-
setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string,
|
|
6107
|
-
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
6453
|
+
setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioSecurity> {
|
|
6454
|
+
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(axios, basePath));
|
|
6108
6455
|
},
|
|
6109
6456
|
/**
|
|
6110
6457
|
*
|
|
@@ -6119,6 +6466,20 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
6119
6466
|
updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: any): AxiosPromise<Scenario> {
|
|
6120
6467
|
return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(axios, basePath));
|
|
6121
6468
|
},
|
|
6469
|
+
/**
|
|
6470
|
+
*
|
|
6471
|
+
* @summary Update the specified access to User for a Scenario
|
|
6472
|
+
* @param {string} organizationId the Organization identifier
|
|
6473
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6474
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6475
|
+
* @param {string} identityId the User identifier
|
|
6476
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6477
|
+
* @param {*} [options] Override http request option.
|
|
6478
|
+
* @throws {RequiredError}
|
|
6479
|
+
*/
|
|
6480
|
+
updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioAccessControl> {
|
|
6481
|
+
return localVarFp.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(axios, basePath));
|
|
6482
|
+
},
|
|
6122
6483
|
};
|
|
6123
6484
|
};
|
|
6124
6485
|
|
|
@@ -6146,7 +6507,7 @@ export class ScenarioApi extends BaseAPI {
|
|
|
6146
6507
|
|
|
6147
6508
|
/**
|
|
6148
6509
|
*
|
|
6149
|
-
* @summary
|
|
6510
|
+
* @summary Add a control access to the Scenario
|
|
6150
6511
|
* @param {string} organizationId the Organization identifier
|
|
6151
6512
|
* @param {string} workspaceId the Workspace identifier
|
|
6152
6513
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -6273,7 +6634,7 @@ export class ScenarioApi extends BaseAPI {
|
|
|
6273
6634
|
|
|
6274
6635
|
/**
|
|
6275
6636
|
*
|
|
6276
|
-
* @summary
|
|
6637
|
+
* @summary Get a control access for the Scenario
|
|
6277
6638
|
* @param {string} organizationId the Organization identifier
|
|
6278
6639
|
* @param {string} workspaceId the Workspace identifier
|
|
6279
6640
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -6401,17 +6762,17 @@ export class ScenarioApi extends BaseAPI {
|
|
|
6401
6762
|
|
|
6402
6763
|
/**
|
|
6403
6764
|
*
|
|
6404
|
-
* @summary
|
|
6765
|
+
* @summary Set the Scenario default security
|
|
6405
6766
|
* @param {string} organizationId the Organization identifier
|
|
6406
6767
|
* @param {string} workspaceId the Workspace identifier
|
|
6407
6768
|
* @param {string} scenarioId the Scenario identifier
|
|
6408
|
-
* @param {
|
|
6769
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
6409
6770
|
* @param {*} [options] Override http request option.
|
|
6410
6771
|
* @throws {RequiredError}
|
|
6411
6772
|
* @memberof ScenarioApi
|
|
6412
6773
|
*/
|
|
6413
|
-
public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string,
|
|
6414
|
-
return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
6774
|
+
public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
|
|
6775
|
+
return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
|
|
6415
6776
|
}
|
|
6416
6777
|
|
|
6417
6778
|
/**
|
|
@@ -6428,6 +6789,22 @@ export class ScenarioApi extends BaseAPI {
|
|
|
6428
6789
|
public updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: AxiosRequestConfig) {
|
|
6429
6790
|
return ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(this.axios, this.basePath));
|
|
6430
6791
|
}
|
|
6792
|
+
|
|
6793
|
+
/**
|
|
6794
|
+
*
|
|
6795
|
+
* @summary Update the specified access to User for a Scenario
|
|
6796
|
+
* @param {string} organizationId the Organization identifier
|
|
6797
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6798
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6799
|
+
* @param {string} identityId the User identifier
|
|
6800
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
6801
|
+
* @param {*} [options] Override http request option.
|
|
6802
|
+
* @throws {RequiredError}
|
|
6803
|
+
* @memberof ScenarioApi
|
|
6804
|
+
*/
|
|
6805
|
+
public updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
|
|
6806
|
+
return ScenarioApiFp(this.configuration).updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
|
|
6807
|
+
}
|
|
6431
6808
|
}
|
|
6432
6809
|
|
|
6433
6810
|
|
|
@@ -6439,7 +6816,7 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6439
6816
|
return {
|
|
6440
6817
|
/**
|
|
6441
6818
|
*
|
|
6442
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6819
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6443
6820
|
* @param {string} organizationId the Organization identifier
|
|
6444
6821
|
* @param {*} [options] Override http request option.
|
|
6445
6822
|
* @throws {RequiredError}
|
|
@@ -6447,7 +6824,7 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6447
6824
|
deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6448
6825
|
// verify required parameter 'organizationId' is not null or undefined
|
|
6449
6826
|
assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
|
|
6450
|
-
const localVarPath = `/organizations/{organization_id}/scenarioruns/
|
|
6827
|
+
const localVarPath = `/organizations/{organization_id}/scenarioruns/historicaldata`
|
|
6451
6828
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
6452
6829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6453
6830
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6466,6 +6843,48 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6466
6843
|
|
|
6467
6844
|
|
|
6468
6845
|
|
|
6846
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6848
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6849
|
+
|
|
6850
|
+
return {
|
|
6851
|
+
url: toPathString(localVarUrlObj),
|
|
6852
|
+
options: localVarRequestOptions,
|
|
6853
|
+
};
|
|
6854
|
+
},
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6858
|
+
* @param {string} organizationId the Organization identifier
|
|
6859
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6860
|
+
* @param {*} [options] Override http request option.
|
|
6861
|
+
* @throws {RequiredError}
|
|
6862
|
+
*/
|
|
6863
|
+
deleteHistoricalDataWorkspace: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6864
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6865
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId)
|
|
6866
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6867
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId)
|
|
6868
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata`
|
|
6869
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6870
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
6871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6872
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6873
|
+
let baseOptions;
|
|
6874
|
+
if (configuration) {
|
|
6875
|
+
baseOptions = configuration.baseOptions;
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6879
|
+
const localVarHeaderParameter = {} as any;
|
|
6880
|
+
const localVarQueryParameter = {} as any;
|
|
6881
|
+
|
|
6882
|
+
// authentication oAuth2AuthCode required
|
|
6883
|
+
// oauth required
|
|
6884
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6885
|
+
|
|
6886
|
+
|
|
6887
|
+
|
|
6469
6888
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6470
6889
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6471
6890
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7007,7 +7426,7 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
7007
7426
|
return {
|
|
7008
7427
|
/**
|
|
7009
7428
|
*
|
|
7010
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7429
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7011
7430
|
* @param {string} organizationId the Organization identifier
|
|
7012
7431
|
* @param {*} [options] Override http request option.
|
|
7013
7432
|
* @throws {RequiredError}
|
|
@@ -7016,6 +7435,18 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
7016
7435
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
|
|
7017
7436
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7018
7437
|
},
|
|
7438
|
+
/**
|
|
7439
|
+
*
|
|
7440
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7441
|
+
* @param {string} organizationId the Organization identifier
|
|
7442
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7443
|
+
* @param {*} [options] Override http request option.
|
|
7444
|
+
* @throws {RequiredError}
|
|
7445
|
+
*/
|
|
7446
|
+
async deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options);
|
|
7448
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7449
|
+
},
|
|
7019
7450
|
/**
|
|
7020
7451
|
*
|
|
7021
7452
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -7175,7 +7606,7 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7175
7606
|
return {
|
|
7176
7607
|
/**
|
|
7177
7608
|
*
|
|
7178
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7609
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7179
7610
|
* @param {string} organizationId the Organization identifier
|
|
7180
7611
|
* @param {*} [options] Override http request option.
|
|
7181
7612
|
* @throws {RequiredError}
|
|
@@ -7183,6 +7614,17 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7183
7614
|
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
7184
7615
|
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
7185
7616
|
},
|
|
7617
|
+
/**
|
|
7618
|
+
*
|
|
7619
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7620
|
+
* @param {string} organizationId the Organization identifier
|
|
7621
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7622
|
+
* @param {*} [options] Override http request option.
|
|
7623
|
+
* @throws {RequiredError}
|
|
7624
|
+
*/
|
|
7625
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: any): AxiosPromise<void> {
|
|
7626
|
+
return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
7627
|
+
},
|
|
7186
7628
|
/**
|
|
7187
7629
|
*
|
|
7188
7630
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -7330,7 +7772,7 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7330
7772
|
export class ScenariorunApi extends BaseAPI {
|
|
7331
7773
|
/**
|
|
7332
7774
|
*
|
|
7333
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7775
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7334
7776
|
* @param {string} organizationId the Organization identifier
|
|
7335
7777
|
* @param {*} [options] Override http request option.
|
|
7336
7778
|
* @throws {RequiredError}
|
|
@@ -7340,6 +7782,19 @@ export class ScenariorunApi extends BaseAPI {
|
|
|
7340
7782
|
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
7341
7783
|
}
|
|
7342
7784
|
|
|
7785
|
+
/**
|
|
7786
|
+
*
|
|
7787
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7788
|
+
* @param {string} organizationId the Organization identifier
|
|
7789
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7790
|
+
* @param {*} [options] Override http request option.
|
|
7791
|
+
* @throws {RequiredError}
|
|
7792
|
+
* @memberof ScenariorunApi
|
|
7793
|
+
*/
|
|
7794
|
+
public deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
7795
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
7796
|
+
}
|
|
7797
|
+
|
|
7343
7798
|
/**
|
|
7344
7799
|
*
|
|
7345
7800
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -10321,7 +10776,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10321
10776
|
return {
|
|
10322
10777
|
/**
|
|
10323
10778
|
*
|
|
10324
|
-
* @summary
|
|
10779
|
+
* @summary Add a control access to the Workspace
|
|
10325
10780
|
* @param {string} organizationId the Organization identifier
|
|
10326
10781
|
* @param {string} workspaceId the Workspace identifier
|
|
10327
10782
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -10717,7 +11172,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10717
11172
|
},
|
|
10718
11173
|
/**
|
|
10719
11174
|
*
|
|
10720
|
-
* @summary
|
|
11175
|
+
* @summary Get a control access for the Workspace
|
|
10721
11176
|
* @param {string} organizationId the Organization identifier
|
|
10722
11177
|
* @param {string} workspaceId the Workspace identifier
|
|
10723
11178
|
* @param {string} identityId the User identifier
|
|
@@ -10939,20 +11394,20 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10939
11394
|
},
|
|
10940
11395
|
/**
|
|
10941
11396
|
*
|
|
10942
|
-
* @summary
|
|
11397
|
+
* @summary Set the Workspace default security
|
|
10943
11398
|
* @param {string} organizationId the Organization identifier
|
|
10944
11399
|
* @param {string} workspaceId the Workspace identifier
|
|
10945
|
-
* @param {
|
|
11400
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10946
11401
|
* @param {*} [options] Override http request option.
|
|
10947
11402
|
* @throws {RequiredError}
|
|
10948
11403
|
*/
|
|
10949
|
-
setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string,
|
|
11404
|
+
setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10950
11405
|
// verify required parameter 'organizationId' is not null or undefined
|
|
10951
11406
|
assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId)
|
|
10952
11407
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
10953
11408
|
assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId)
|
|
10954
|
-
// verify required parameter '
|
|
10955
|
-
assertParamExists('setWorkspaceDefaultSecurity', '
|
|
11409
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
11410
|
+
assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole)
|
|
10956
11411
|
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/default`
|
|
10957
11412
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10958
11413
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -10978,7 +11433,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10978
11433
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10979
11434
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10980
11435
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10981
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
11436
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
|
|
10982
11437
|
|
|
10983
11438
|
return {
|
|
10984
11439
|
url: toPathString(localVarUrlObj),
|
|
@@ -10990,7 +11445,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10990
11445
|
* @summary Update a workspace
|
|
10991
11446
|
* @param {string} organizationId the Organization identifier
|
|
10992
11447
|
* @param {string} workspaceId the Workspace identifier
|
|
10993
|
-
* @param {Workspace} workspace
|
|
11448
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10994
11449
|
* @param {*} [options] Override http request option.
|
|
10995
11450
|
* @throws {RequiredError}
|
|
10996
11451
|
*/
|
|
@@ -11033,6 +11488,58 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
11033
11488
|
options: localVarRequestOptions,
|
|
11034
11489
|
};
|
|
11035
11490
|
},
|
|
11491
|
+
/**
|
|
11492
|
+
*
|
|
11493
|
+
* @summary Update the specified access to User for a Workspace
|
|
11494
|
+
* @param {string} organizationId the Organization identifier
|
|
11495
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11496
|
+
* @param {string} identityId the User identifier
|
|
11497
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11498
|
+
* @param {*} [options] Override http request option.
|
|
11499
|
+
* @throws {RequiredError}
|
|
11500
|
+
*/
|
|
11501
|
+
updateWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11502
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
11503
|
+
assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId)
|
|
11504
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
11505
|
+
assertParamExists('updateWorkspaceAccessControl', 'workspaceId', workspaceId)
|
|
11506
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
11507
|
+
assertParamExists('updateWorkspaceAccessControl', 'identityId', identityId)
|
|
11508
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
11509
|
+
assertParamExists('updateWorkspaceAccessControl', 'workspaceRole', workspaceRole)
|
|
11510
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
|
|
11511
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
11512
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
11513
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
11514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11516
|
+
let baseOptions;
|
|
11517
|
+
if (configuration) {
|
|
11518
|
+
baseOptions = configuration.baseOptions;
|
|
11519
|
+
}
|
|
11520
|
+
|
|
11521
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11522
|
+
const localVarHeaderParameter = {} as any;
|
|
11523
|
+
const localVarQueryParameter = {} as any;
|
|
11524
|
+
|
|
11525
|
+
// authentication oAuth2AuthCode required
|
|
11526
|
+
// oauth required
|
|
11527
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
11528
|
+
|
|
11529
|
+
|
|
11530
|
+
|
|
11531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11532
|
+
|
|
11533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
|
|
11537
|
+
|
|
11538
|
+
return {
|
|
11539
|
+
url: toPathString(localVarUrlObj),
|
|
11540
|
+
options: localVarRequestOptions,
|
|
11541
|
+
};
|
|
11542
|
+
},
|
|
11036
11543
|
/**
|
|
11037
11544
|
*
|
|
11038
11545
|
* @summary Upload a file for the Workspace
|
|
@@ -11108,7 +11615,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11108
11615
|
return {
|
|
11109
11616
|
/**
|
|
11110
11617
|
*
|
|
11111
|
-
* @summary
|
|
11618
|
+
* @summary Add a control access to the Workspace
|
|
11112
11619
|
* @param {string} organizationId the Organization identifier
|
|
11113
11620
|
* @param {string} workspaceId the Workspace identifier
|
|
11114
11621
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -11218,7 +11725,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11218
11725
|
},
|
|
11219
11726
|
/**
|
|
11220
11727
|
*
|
|
11221
|
-
* @summary
|
|
11728
|
+
* @summary Get a control access for the Workspace
|
|
11222
11729
|
* @param {string} organizationId the Organization identifier
|
|
11223
11730
|
* @param {string} workspaceId the Workspace identifier
|
|
11224
11731
|
* @param {string} identityId the User identifier
|
|
@@ -11281,15 +11788,15 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11281
11788
|
},
|
|
11282
11789
|
/**
|
|
11283
11790
|
*
|
|
11284
|
-
* @summary
|
|
11791
|
+
* @summary Set the Workspace default security
|
|
11285
11792
|
* @param {string} organizationId the Organization identifier
|
|
11286
11793
|
* @param {string} workspaceId the Workspace identifier
|
|
11287
|
-
* @param {
|
|
11794
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
11288
11795
|
* @param {*} [options] Override http request option.
|
|
11289
11796
|
* @throws {RequiredError}
|
|
11290
11797
|
*/
|
|
11291
|
-
async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string,
|
|
11292
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
11798
|
+
async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
|
|
11799
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options);
|
|
11293
11800
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11294
11801
|
},
|
|
11295
11802
|
/**
|
|
@@ -11297,7 +11804,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11297
11804
|
* @summary Update a workspace
|
|
11298
11805
|
* @param {string} organizationId the Organization identifier
|
|
11299
11806
|
* @param {string} workspaceId the Workspace identifier
|
|
11300
|
-
* @param {Workspace} workspace
|
|
11807
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
11301
11808
|
* @param {*} [options] Override http request option.
|
|
11302
11809
|
* @throws {RequiredError}
|
|
11303
11810
|
*/
|
|
@@ -11305,6 +11812,20 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11305
11812
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspace(organizationId, workspaceId, workspace, options);
|
|
11306
11813
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11307
11814
|
},
|
|
11815
|
+
/**
|
|
11816
|
+
*
|
|
11817
|
+
* @summary Update the specified access to User for a Workspace
|
|
11818
|
+
* @param {string} organizationId the Organization identifier
|
|
11819
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11820
|
+
* @param {string} identityId the User identifier
|
|
11821
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11822
|
+
* @param {*} [options] Override http request option.
|
|
11823
|
+
* @throws {RequiredError}
|
|
11824
|
+
*/
|
|
11825
|
+
async updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
|
|
11826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options);
|
|
11827
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11828
|
+
},
|
|
11308
11829
|
/**
|
|
11309
11830
|
*
|
|
11310
11831
|
* @summary Upload a file for the Workspace
|
|
@@ -11332,7 +11853,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
11332
11853
|
return {
|
|
11333
11854
|
/**
|
|
11334
11855
|
*
|
|
11335
|
-
* @summary
|
|
11856
|
+
* @summary Add a control access to the Workspace
|
|
11336
11857
|
* @param {string} organizationId the Organization identifier
|
|
11337
11858
|
* @param {string} workspaceId the Workspace identifier
|
|
11338
11859
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -11433,7 +11954,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
11433
11954
|
},
|
|
11434
11955
|
/**
|
|
11435
11956
|
*
|
|
11436
|
-
* @summary
|
|
11957
|
+
* @summary Get a control access for the Workspace
|
|
11437
11958
|
* @param {string} organizationId the Organization identifier
|
|
11438
11959
|
* @param {string} workspaceId the Workspace identifier
|
|
11439
11960
|
* @param {string} identityId the User identifier
|
|
@@ -11491,28 +12012,41 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
11491
12012
|
},
|
|
11492
12013
|
/**
|
|
11493
12014
|
*
|
|
11494
|
-
* @summary
|
|
12015
|
+
* @summary Set the Workspace default security
|
|
11495
12016
|
* @param {string} organizationId the Organization identifier
|
|
11496
12017
|
* @param {string} workspaceId the Workspace identifier
|
|
11497
|
-
* @param {
|
|
12018
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
11498
12019
|
* @param {*} [options] Override http request option.
|
|
11499
12020
|
* @throws {RequiredError}
|
|
11500
12021
|
*/
|
|
11501
|
-
setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string,
|
|
11502
|
-
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
12022
|
+
setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceSecurity> {
|
|
12023
|
+
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(axios, basePath));
|
|
11503
12024
|
},
|
|
11504
12025
|
/**
|
|
11505
12026
|
*
|
|
11506
12027
|
* @summary Update a workspace
|
|
11507
12028
|
* @param {string} organizationId the Organization identifier
|
|
11508
12029
|
* @param {string} workspaceId the Workspace identifier
|
|
11509
|
-
* @param {Workspace} workspace
|
|
12030
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
11510
12031
|
* @param {*} [options] Override http request option.
|
|
11511
12032
|
* @throws {RequiredError}
|
|
11512
12033
|
*/
|
|
11513
12034
|
updateWorkspace(organizationId: string, workspaceId: string, workspace: Workspace, options?: any): AxiosPromise<Workspace> {
|
|
11514
12035
|
return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(axios, basePath));
|
|
11515
12036
|
},
|
|
12037
|
+
/**
|
|
12038
|
+
*
|
|
12039
|
+
* @summary Update the specified access to User for a Workspace
|
|
12040
|
+
* @param {string} organizationId the Organization identifier
|
|
12041
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12042
|
+
* @param {string} identityId the User identifier
|
|
12043
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
12044
|
+
* @param {*} [options] Override http request option.
|
|
12045
|
+
* @throws {RequiredError}
|
|
12046
|
+
*/
|
|
12047
|
+
updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
12048
|
+
return localVarFp.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(axios, basePath));
|
|
12049
|
+
},
|
|
11516
12050
|
/**
|
|
11517
12051
|
*
|
|
11518
12052
|
* @summary Upload a file for the Workspace
|
|
@@ -11539,7 +12073,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
11539
12073
|
export class WorkspaceApi extends BaseAPI {
|
|
11540
12074
|
/**
|
|
11541
12075
|
*
|
|
11542
|
-
* @summary
|
|
12076
|
+
* @summary Add a control access to the Workspace
|
|
11543
12077
|
* @param {string} organizationId the Organization identifier
|
|
11544
12078
|
* @param {string} workspaceId the Workspace identifier
|
|
11545
12079
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -11658,7 +12192,7 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
11658
12192
|
|
|
11659
12193
|
/**
|
|
11660
12194
|
*
|
|
11661
|
-
* @summary
|
|
12195
|
+
* @summary Get a control access for the Workspace
|
|
11662
12196
|
* @param {string} organizationId the Organization identifier
|
|
11663
12197
|
* @param {string} workspaceId the Workspace identifier
|
|
11664
12198
|
* @param {string} identityId the User identifier
|
|
@@ -11726,16 +12260,16 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
11726
12260
|
|
|
11727
12261
|
/**
|
|
11728
12262
|
*
|
|
11729
|
-
* @summary
|
|
12263
|
+
* @summary Set the Workspace default security
|
|
11730
12264
|
* @param {string} organizationId the Organization identifier
|
|
11731
12265
|
* @param {string} workspaceId the Workspace identifier
|
|
11732
|
-
* @param {
|
|
12266
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
11733
12267
|
* @param {*} [options] Override http request option.
|
|
11734
12268
|
* @throws {RequiredError}
|
|
11735
12269
|
* @memberof WorkspaceApi
|
|
11736
12270
|
*/
|
|
11737
|
-
public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string,
|
|
11738
|
-
return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
12271
|
+
public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
|
|
12272
|
+
return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
|
|
11739
12273
|
}
|
|
11740
12274
|
|
|
11741
12275
|
/**
|
|
@@ -11743,7 +12277,7 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
11743
12277
|
* @summary Update a workspace
|
|
11744
12278
|
* @param {string} organizationId the Organization identifier
|
|
11745
12279
|
* @param {string} workspaceId the Workspace identifier
|
|
11746
|
-
* @param {Workspace} workspace
|
|
12280
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
11747
12281
|
* @param {*} [options] Override http request option.
|
|
11748
12282
|
* @throws {RequiredError}
|
|
11749
12283
|
* @memberof WorkspaceApi
|
|
@@ -11752,6 +12286,21 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
11752
12286
|
return WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(this.axios, this.basePath));
|
|
11753
12287
|
}
|
|
11754
12288
|
|
|
12289
|
+
/**
|
|
12290
|
+
*
|
|
12291
|
+
* @summary Update the specified access to User for a Workspace
|
|
12292
|
+
* @param {string} organizationId the Organization identifier
|
|
12293
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12294
|
+
* @param {string} identityId the User identifier
|
|
12295
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
12296
|
+
* @param {*} [options] Override http request option.
|
|
12297
|
+
* @throws {RequiredError}
|
|
12298
|
+
* @memberof WorkspaceApi
|
|
12299
|
+
*/
|
|
12300
|
+
public updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
|
|
12301
|
+
return WorkspaceApiFp(this.configuration).updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
|
|
12302
|
+
}
|
|
12303
|
+
|
|
11755
12304
|
/**
|
|
11756
12305
|
*
|
|
11757
12306
|
* @summary Upload a file for the Workspace
|