@cosmotech/api-ts 2.4.5-private → 3.0.10-private

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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Cosmo Tech Platform API
5
5
  * Cosmo Tech Platform API
6
6
  *
7
- * The version of the OpenAPI document: 2.4.5-private
7
+ * The version of the OpenAPI document: 3.0.10-private
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -275,6 +275,60 @@ export interface Dataset {
275
275
  * @memberof Dataset
276
276
  */
277
277
  'organizationId'?: string;
278
+ /**
279
+ * the Dataset id which is the parent of this Dataset
280
+ * @type {string}
281
+ * @memberof Dataset
282
+ */
283
+ 'parentId'?: string;
284
+ /**
285
+ * the twin graph id
286
+ * @type {string}
287
+ * @memberof Dataset
288
+ */
289
+ 'twingraphId'?: string;
290
+ /**
291
+ * is this the main dataset
292
+ * @type {boolean}
293
+ * @memberof Dataset
294
+ */
295
+ 'main'?: boolean;
296
+ /**
297
+ * the Dataset creation date
298
+ * @type {number}
299
+ * @memberof Dataset
300
+ */
301
+ 'creationDate'?: number;
302
+ /**
303
+ * the last time a refresh was done
304
+ * @type {number}
305
+ * @memberof Dataset
306
+ */
307
+ 'refreshDate'?: number;
308
+ /**
309
+ *
310
+ * @type {DatasetSourceType}
311
+ * @memberof Dataset
312
+ */
313
+ 'sourceType'?: DatasetSourceType;
314
+ /**
315
+ *
316
+ * @type {SourceInfo}
317
+ * @memberof Dataset
318
+ */
319
+ 'source'?: SourceInfo;
320
+ /**
321
+ * the Dataset status
322
+ * @type {string}
323
+ * @memberof Dataset
324
+ */
325
+ 'status'?: DatasetStatusEnum;
326
+ /**
327
+ * the list of queries
328
+ * @type {Array<string>}
329
+ * @memberof Dataset
330
+ */
331
+ 'queries'?: Array<string>;
278
332
  /**
279
333
  * the list of tags
280
334
  * @type {Array<string>}
@@ -305,6 +359,41 @@ export interface Dataset {
305
359
  * @memberof Dataset
306
360
  */
307
361
  'compatibility'?: Array<DatasetCompatibility>;
362
+ /**
363
+ *
364
+ * @type {DatasetSecurity}
365
+ * @memberof Dataset
366
+ */
367
+ 'security'?: DatasetSecurity;
368
+ }
369
+
370
+ export const DatasetStatusEnum = {
371
+ Draft: 'DRAFT',
372
+ Pending: 'PENDING',
373
+ Error: 'ERROR',
374
+ Ready: 'READY'
375
+ } as const;
376
+
377
+ export type DatasetStatusEnum = typeof DatasetStatusEnum[keyof typeof DatasetStatusEnum];
378
+
379
+ /**
380
+ * a Dataset access control item
381
+ * @export
382
+ * @interface DatasetAccessControl
383
+ */
384
+ export interface DatasetAccessControl {
385
+ /**
386
+ * the identity id
387
+ * @type {string}
388
+ * @memberof DatasetAccessControl
389
+ */
390
+ 'id': string;
391
+ /**
392
+ * a role
393
+ * @type {string}
394
+ * @memberof DatasetAccessControl
395
+ */
396
+ 'role': string;
308
397
  }
309
398
  /**
310
399
  * a Dataset compatibility constraint to a Solution version open range
@@ -387,6 +476,19 @@ export interface DatasetCopyParameters {
387
476
  */
388
477
  'options'?: { [key: string]: object; };
389
478
  }
479
+ /**
480
+ * the Dataset Role
481
+ * @export
482
+ * @interface DatasetRole
483
+ */
484
+ export interface DatasetRole {
485
+ /**
486
+ * the Dataset Role
487
+ * @type {string}
488
+ * @memberof DatasetRole
489
+ */
490
+ 'role': string;
491
+ }
390
492
  /**
391
493
  * the search options
392
494
  * @export
@@ -400,6 +502,93 @@ export interface DatasetSearch {
400
502
  */
401
503
  'datasetTags': Array<string>;
402
504
  }
505
+ /**
506
+ * the dataset security information
507
+ * @export
508
+ * @interface DatasetSecurity
509
+ */
510
+ export interface DatasetSecurity {
511
+ /**
512
+ * the role by default
513
+ * @type {string}
514
+ * @memberof DatasetSecurity
515
+ */
516
+ 'default': string;
517
+ /**
518
+ * the list which can access this Dataset with detailed access control information
519
+ * @type {Array<DatasetAccessControl>}
520
+ * @memberof DatasetSecurity
521
+ */
522
+ 'accessControlList': Array<DatasetAccessControl>;
523
+ }
524
+ /**
525
+ * the Dataset Source Type
526
+ * @export
527
+ * @enum {string}
528
+ */
529
+
530
+ export const DatasetSourceType = {
531
+ Adt: 'ADT',
532
+ AzureStorage: 'AzureStorage',
533
+ File: 'File',
534
+ None: 'None',
535
+ Twincache: 'Twincache'
536
+ } as const;
537
+
538
+ export type DatasetSourceType = typeof DatasetSourceType[keyof typeof DatasetSourceType];
539
+
540
+
541
+ /**
542
+ * a twin graph hash
543
+ * @export
544
+ * @interface DatasetTwinGraphHash
545
+ */
546
+ export interface DatasetTwinGraphHash {
547
+ /**
548
+ * the hash of the graph
549
+ * @type {string}
550
+ * @memberof DatasetTwinGraphHash
551
+ */
552
+ 'hash'?: string;
553
+ }
554
+ /**
555
+ * a twin graph query in cypher language
556
+ * @export
557
+ * @interface DatasetTwinGraphInfo
558
+ */
559
+ export interface DatasetTwinGraphInfo {
560
+ /**
561
+ * the import job id
562
+ * @type {string}
563
+ * @memberof DatasetTwinGraphInfo
564
+ */
565
+ 'jobId'?: string;
566
+ /**
567
+ * the Dataset id
568
+ * @type {string}
569
+ * @memberof DatasetTwinGraphInfo
570
+ */
571
+ 'datasetId'?: string;
572
+ /**
573
+ * Twingraph status
574
+ * @type {string}
575
+ * @memberof DatasetTwinGraphInfo
576
+ */
577
+ 'status'?: string;
578
+ }
579
+ /**
580
+ * a twin graph query in cypher language
581
+ * @export
582
+ * @interface DatasetTwinGraphQuery
583
+ */
584
+ export interface DatasetTwinGraphQuery {
585
+ /**
586
+ * the query in cypher language
587
+ * @type {string}
588
+ * @memberof DatasetTwinGraphQuery
589
+ */
590
+ 'query': string;
591
+ }
403
592
  /**
404
593
  * Configuration of scenario runs deletion automatic mecanism
405
594
  * @export
@@ -817,6 +1006,12 @@ export interface RunTemplate {
817
1006
  * @memberof RunTemplate
818
1007
  */
819
1008
  'runTemplateSourceDir'?: string;
1009
+ /**
1010
+ *
1011
+ * @type {RunTemplateOrchestrator}
1012
+ * @memberof RunTemplate
1013
+ */
1014
+ 'orchestratorType'?: RunTemplateOrchestrator;
820
1015
  /**
821
1016
  * an optional duration in seconds in which a workflow is allowed to run
822
1017
  * @type {number}
@@ -848,6 +1043,20 @@ export const RunTemplateHandlerId = {
848
1043
  export type RunTemplateHandlerId = typeof RunTemplateHandlerId[keyof typeof RunTemplateHandlerId];
849
1044
 
850
1045
 
1046
+ /**
1047
+ * the Orchestrator to use for the Run Template
1048
+ * @export
1049
+ * @enum {string}
1050
+ */
1051
+
1052
+ export const RunTemplateOrchestrator = {
1053
+ ArgoWorkflow: 'argoWorkflow',
1054
+ CsmOrc: 'csmOrc'
1055
+ } as const;
1056
+
1057
+ export type RunTemplateOrchestrator = typeof RunTemplateOrchestrator[keyof typeof RunTemplateOrchestrator];
1058
+
1059
+
851
1060
  /**
852
1061
  * a Run Template Parameter
853
1062
  * @export
@@ -1447,6 +1656,12 @@ export interface ScenarioRun {
1447
1656
  * @memberof ScenarioRun
1448
1657
  */
1449
1658
  'sdkVersion'?: string;
1659
+ /**
1660
+ * the ScenarioRun creation date
1661
+ * @type {string}
1662
+ * @memberof ScenarioRun
1663
+ */
1664
+ 'createdAt'?: string;
1450
1665
  /**
1451
1666
  * set to true if the run template does not use any Datawarehouse consumers (AMQP consumers for Azure)
1452
1667
  * @type {boolean}
@@ -1638,6 +1853,44 @@ export interface ScenarioRunLogs {
1638
1853
  */
1639
1854
  'containers'?: { [key: string]: ScenarioRunContainerLogs; };
1640
1855
  }
1856
+ /**
1857
+ * the memory and CPU requested by the pod
1858
+ * @export
1859
+ * @interface ScenarioRunResourceRequested
1860
+ */
1861
+ export interface ScenarioRunResourceRequested {
1862
+ /**
1863
+ * the cpu requested
1864
+ * @type {number}
1865
+ * @memberof ScenarioRunResourceRequested
1866
+ */
1867
+ 'cpu'?: number;
1868
+ /**
1869
+ * the memory requested
1870
+ * @type {number}
1871
+ * @memberof ScenarioRunResourceRequested
1872
+ */
1873
+ 'memory'?: number;
1874
+ }
1875
+ /**
1876
+ * a ScenarioRunProbeResult with all ScenarioRunResult
1877
+ * @export
1878
+ * @interface ScenarioRunResult
1879
+ */
1880
+ export interface ScenarioRunResult {
1881
+ /**
1882
+ *
1883
+ * @type {string}
1884
+ * @memberof ScenarioRunResult
1885
+ */
1886
+ 'id'?: string;
1887
+ /**
1888
+ *
1889
+ * @type {Array<{ [key: string]: string; }>}
1890
+ * @memberof ScenarioRunResult
1891
+ */
1892
+ 'results'?: Array<{ [key: string]: string; }>;
1893
+ }
1641
1894
  /**
1642
1895
  * the search options
1643
1896
  * @export
@@ -1867,6 +2120,18 @@ export interface ScenarioRunStatusNode {
1867
2120
  * @memberof ScenarioRunStatusNode
1868
2121
  */
1869
2122
  'containerName'?: string;
2123
+ /**
2124
+ * the list of outbound nodes
2125
+ * @type {Array<string>}
2126
+ * @memberof ScenarioRunStatusNode
2127
+ */
2128
+ 'outboundNodes'?: Array<string>;
2129
+ /**
2130
+ *
2131
+ * @type {ScenarioRunResourceRequested}
2132
+ * @memberof ScenarioRunStatusNode
2133
+ */
2134
+ 'resourcesDuration'?: ScenarioRunResourceRequested;
1870
2135
  /**
1871
2136
  * estimatedDuration in seconds
1872
2137
  * @type {number}
@@ -2072,6 +2337,63 @@ export interface Solution {
2072
2337
  * @memberof Solution
2073
2338
  */
2074
2339
  'runTemplates'?: Array<RunTemplate>;
2340
+ /**
2341
+ *
2342
+ * @type {SolutionSecurity}
2343
+ * @memberof Solution
2344
+ */
2345
+ 'security'?: SolutionSecurity;
2346
+ }
2347
+ /**
2348
+ * a Solution access control item
2349
+ * @export
2350
+ * @interface SolutionAccessControl
2351
+ */
2352
+ export interface SolutionAccessControl {
2353
+ /**
2354
+ * the identity id
2355
+ * @type {string}
2356
+ * @memberof SolutionAccessControl
2357
+ */
2358
+ 'id': string;
2359
+ /**
2360
+ * a role
2361
+ * @type {string}
2362
+ * @memberof SolutionAccessControl
2363
+ */
2364
+ 'role': string;
2365
+ }
2366
+ /**
2367
+ * the Solution Role
2368
+ * @export
2369
+ * @interface SolutionRole
2370
+ */
2371
+ export interface SolutionRole {
2372
+ /**
2373
+ * the Solution Role
2374
+ * @type {string}
2375
+ * @memberof SolutionRole
2376
+ */
2377
+ 'role': string;
2378
+ }
2379
+ /**
2380
+ * the Solution security information
2381
+ * @export
2382
+ * @interface SolutionSecurity
2383
+ */
2384
+ export interface SolutionSecurity {
2385
+ /**
2386
+ * the role by default
2387
+ * @type {string}
2388
+ * @memberof SolutionSecurity
2389
+ */
2390
+ 'default': string;
2391
+ /**
2392
+ * the list which can access this Solution with detailed access control information
2393
+ * @type {Array<SolutionAccessControl>}
2394
+ * @memberof SolutionSecurity
2395
+ */
2396
+ 'accessControlList': Array<SolutionAccessControl>;
2075
2397
  }
2076
2398
  /**
2077
2399
  * Source job import information
@@ -2097,21 +2419,38 @@ export interface SourceInfo {
2097
2419
  * @memberof SourceInfo
2098
2420
  */
2099
2421
  'path'?: string;
2422
+ }
2423
+ /**
2424
+ * a twin graph query in cypher language
2425
+ * @export
2426
+ * @interface SubDatasetGraphQuery
2427
+ */
2428
+ export interface SubDatasetGraphQuery {
2100
2429
  /**
2101
- * the source type containing the files to import
2430
+ * the name of the subdataset
2102
2431
  * @type {string}
2103
- * @memberof SourceInfo
2432
+ * @memberof SubDatasetGraphQuery
2433
+ */
2434
+ 'name'?: string;
2435
+ /**
2436
+ * the description of the subdataset
2437
+ * @type {string}
2438
+ * @memberof SubDatasetGraphQuery
2439
+ */
2440
+ 'description'?: string;
2441
+ /**
2442
+ * the query in cypher language
2443
+ * @type {Array<string>}
2444
+ * @memberof SubDatasetGraphQuery
2445
+ */
2446
+ 'queries'?: Array<string>;
2447
+ /**
2448
+ * is this the main dataset
2449
+ * @type {boolean}
2450
+ * @memberof SubDatasetGraphQuery
2104
2451
  */
2105
- 'type': SourceInfoTypeEnum;
2452
+ 'main'?: boolean;
2106
2453
  }
2107
-
2108
- export const SourceInfoTypeEnum = {
2109
- Adt: 'ADT',
2110
- Storage: 'Storage'
2111
- } as const;
2112
-
2113
- export type SourceInfoTypeEnum = typeof SourceInfoTypeEnum[keyof typeof SourceInfoTypeEnum];
2114
-
2115
2454
  /**
2116
2455
  * Processing result
2117
2456
  * @export
@@ -2151,80 +2490,36 @@ export interface TwinGraphHash {
2151
2490
  'hash'?: string;
2152
2491
  }
2153
2492
  /**
2154
- * a twin graph import info
2493
+ * a twin graph query in cypher language
2155
2494
  * @export
2156
- * @interface TwinGraphImport
2495
+ * @interface TwinGraphQuery
2157
2496
  */
2158
- export interface TwinGraphImport {
2159
- /**
2160
- *
2161
- * @type {SourceInfo}
2162
- * @memberof TwinGraphImport
2163
- */
2164
- 'source': SourceInfo;
2497
+ export interface TwinGraphQuery {
2165
2498
  /**
2166
- * the graph id to import to
2499
+ * Twin graph version
2167
2500
  * @type {string}
2168
- * @memberof TwinGraphImport
2501
+ * @memberof TwinGraphQuery
2169
2502
  */
2170
- 'graphId': string;
2503
+ 'version'?: string;
2171
2504
  /**
2172
- * The version of the graph to import to. When not set, the last version before import is upgraded by 1. When set, the targeted graph is replaced
2505
+ * the query in cypher language
2173
2506
  * @type {string}
2174
- * @memberof TwinGraphImport
2507
+ * @memberof TwinGraphQuery
2175
2508
  */
2176
- 'version'?: string;
2509
+ 'query': string;
2177
2510
  }
2178
2511
  /**
2179
- * a twin graph query in cypher language
2512
+ * a Validator to validate a Dataset
2180
2513
  * @export
2181
- * @interface TwinGraphImportInfo
2514
+ * @interface Validator
2182
2515
  */
2183
- export interface TwinGraphImportInfo {
2516
+ export interface Validator {
2184
2517
  /**
2185
- * the import job id
2518
+ * the Validator id
2186
2519
  * @type {string}
2187
- * @memberof TwinGraphImportInfo
2520
+ * @memberof Validator
2188
2521
  */
2189
- 'jobId'?: string;
2190
- /**
2191
- * the twin graph name
2192
- * @type {string}
2193
- * @memberof TwinGraphImportInfo
2194
- */
2195
- 'graphName'?: string;
2196
- }
2197
- /**
2198
- * a twin graph query in cypher language
2199
- * @export
2200
- * @interface TwinGraphQuery
2201
- */
2202
- export interface TwinGraphQuery {
2203
- /**
2204
- * Twin graph version
2205
- * @type {string}
2206
- * @memberof TwinGraphQuery
2207
- */
2208
- 'version'?: string;
2209
- /**
2210
- * the query in cypher language
2211
- * @type {string}
2212
- * @memberof TwinGraphQuery
2213
- */
2214
- 'query': string;
2215
- }
2216
- /**
2217
- * a Validator to validate a Dataset
2218
- * @export
2219
- * @interface Validator
2220
- */
2221
- export interface Validator {
2222
- /**
2223
- * the Validator id
2224
- * @type {string}
2225
- * @memberof Validator
2226
- */
2227
- 'id': string;
2522
+ 'id': string;
2228
2523
  /**
2229
2524
  * the Validator name
2230
2525
  * @type {string}
@@ -2659,15 +2954,16 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2659
2954
  },
2660
2955
  /**
2661
2956
  *
2662
- * @summary Import existing connector
2663
- * @param {Connector} connector the Connector to import
2957
+ * @summary Get the details of a connector
2958
+ * @param {string} connectorName the Connector name
2664
2959
  * @param {*} [options] Override http request option.
2665
2960
  * @throws {RequiredError}
2666
2961
  */
2667
- importConnector: async (connector: Connector, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2668
- // verify required parameter 'connector' is not null or undefined
2669
- assertParamExists('importConnector', 'connector', connector)
2670
- const localVarPath = `/connectors/import`;
2962
+ findConnectorByName: async (connectorName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2963
+ // verify required parameter 'connectorName' is not null or undefined
2964
+ assertParamExists('findConnectorByName', 'connectorName', connectorName)
2965
+ const localVarPath = `/connectors/name/{connector_name}`
2966
+ .replace(`{${"connector_name"}}`, encodeURIComponent(String(connectorName)));
2671
2967
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2672
2968
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2673
2969
  let baseOptions;
@@ -2675,7 +2971,7 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2675
2971
  baseOptions = configuration.baseOptions;
2676
2972
  }
2677
2973
 
2678
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2974
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2679
2975
  const localVarHeaderParameter = {} as any;
2680
2976
  const localVarQueryParameter = {} as any;
2681
2977
 
@@ -2685,12 +2981,9 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2685
2981
 
2686
2982
 
2687
2983
 
2688
- localVarHeaderParameter['Content-Type'] = 'application/json';
2689
-
2690
2984
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2691
2985
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2692
2986
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2693
- localVarRequestOptions.data = serializeDataIfNeeded(connector, localVarRequestOptions, configuration)
2694
2987
 
2695
2988
  return {
2696
2989
  url: toPathString(localVarUrlObj),
@@ -2810,13 +3103,13 @@ export const ConnectorApiFp = function(configuration?: Configuration) {
2810
3103
  },
2811
3104
  /**
2812
3105
  *
2813
- * @summary Import existing connector
2814
- * @param {Connector} connector the Connector to import
3106
+ * @summary Get the details of a connector
3107
+ * @param {string} connectorName the Connector name
2815
3108
  * @param {*} [options] Override http request option.
2816
3109
  * @throws {RequiredError}
2817
3110
  */
2818
- async importConnector(connector: Connector, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Connector>> {
2819
- const localVarAxiosArgs = await localVarAxiosParamCreator.importConnector(connector, options);
3111
+ async findConnectorByName(connectorName: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Connector>> {
3112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findConnectorByName(connectorName, options);
2820
3113
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2821
3114
  },
2822
3115
  /**
@@ -2874,13 +3167,13 @@ export const ConnectorApiFactory = function (configuration?: Configuration, base
2874
3167
  },
2875
3168
  /**
2876
3169
  *
2877
- * @summary Import existing connector
2878
- * @param {Connector} connector the Connector to import
3170
+ * @summary Get the details of a connector
3171
+ * @param {string} connectorName the Connector name
2879
3172
  * @param {*} [options] Override http request option.
2880
3173
  * @throws {RequiredError}
2881
3174
  */
2882
- importConnector(connector: Connector, options?: any): AxiosPromise<Connector> {
2883
- return localVarFp.importConnector(connector, options).then((request) => request(axios, basePath));
3175
+ findConnectorByName(connectorName: string, options?: any): AxiosPromise<Connector> {
3176
+ return localVarFp.findConnectorByName(connectorName, options).then((request) => request(axios, basePath));
2884
3177
  },
2885
3178
  /**
2886
3179
  *
@@ -2939,14 +3232,14 @@ export class ConnectorApi extends BaseAPI {
2939
3232
 
2940
3233
  /**
2941
3234
  *
2942
- * @summary Import existing connector
2943
- * @param {Connector} connector the Connector to import
3235
+ * @summary Get the details of a connector
3236
+ * @param {string} connectorName the Connector name
2944
3237
  * @param {*} [options] Override http request option.
2945
3238
  * @throws {RequiredError}
2946
3239
  * @memberof ConnectorApi
2947
3240
  */
2948
- public importConnector(connector: Connector, options?: AxiosRequestConfig) {
2949
- return ConnectorApiFp(this.configuration).importConnector(connector, options).then((request) => request(this.axios, this.basePath));
3241
+ public findConnectorByName(connectorName: string, options?: AxiosRequestConfig) {
3242
+ return ConnectorApiFp(this.configuration).findConnectorByName(connectorName, options).then((request) => request(this.axios, this.basePath));
2950
3243
  }
2951
3244
 
2952
3245
  /**
@@ -2981,6 +3274,54 @@ export class ConnectorApi extends BaseAPI {
2981
3274
  */
2982
3275
  export const DatasetApiAxiosParamCreator = function (configuration?: Configuration) {
2983
3276
  return {
3277
+ /**
3278
+ *
3279
+ * @summary Add a control access to the Dataset
3280
+ * @param {string} organizationId the Organization identifier
3281
+ * @param {string} datasetId the Dataset identifier
3282
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
3283
+ * @param {*} [options] Override http request option.
3284
+ * @throws {RequiredError}
3285
+ */
3286
+ addDatasetAccessControl: async (organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3287
+ // verify required parameter 'organizationId' is not null or undefined
3288
+ assertParamExists('addDatasetAccessControl', 'organizationId', organizationId)
3289
+ // verify required parameter 'datasetId' is not null or undefined
3290
+ assertParamExists('addDatasetAccessControl', 'datasetId', datasetId)
3291
+ // verify required parameter 'datasetAccessControl' is not null or undefined
3292
+ assertParamExists('addDatasetAccessControl', 'datasetAccessControl', datasetAccessControl)
3293
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access`
3294
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3295
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
3296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3297
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3298
+ let baseOptions;
3299
+ if (configuration) {
3300
+ baseOptions = configuration.baseOptions;
3301
+ }
3302
+
3303
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3304
+ const localVarHeaderParameter = {} as any;
3305
+ const localVarQueryParameter = {} as any;
3306
+
3307
+ // authentication oAuth2AuthCode required
3308
+ // oauth required
3309
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3310
+
3311
+
3312
+
3313
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3314
+
3315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3317
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3318
+ localVarRequestOptions.data = serializeDataIfNeeded(datasetAccessControl, localVarRequestOptions, configuration)
3319
+
3320
+ return {
3321
+ url: toPathString(localVarUrlObj),
3322
+ options: localVarRequestOptions,
3323
+ };
3324
+ },
2984
3325
  /**
2985
3326
  *
2986
3327
  * @summary Add Dataset Compatibility elements.
@@ -3118,19 +3459,22 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3118
3459
  };
3119
3460
  },
3120
3461
  /**
3121
- *
3122
- * @summary Delete a dataset
3462
+ * Run a query on a dataset
3463
+ * @summary Run a query on a dataset
3123
3464
  * @param {string} organizationId the Organization identifier
3124
3465
  * @param {string} datasetId the Dataset identifier
3466
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
3125
3467
  * @param {*} [options] Override http request option.
3126
3468
  * @throws {RequiredError}
3127
3469
  */
3128
- deleteDataset: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3470
+ createSubDataset: async (organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3129
3471
  // verify required parameter 'organizationId' is not null or undefined
3130
- assertParamExists('deleteDataset', 'organizationId', organizationId)
3472
+ assertParamExists('createSubDataset', 'organizationId', organizationId)
3131
3473
  // verify required parameter 'datasetId' is not null or undefined
3132
- assertParamExists('deleteDataset', 'datasetId', datasetId)
3133
- const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
3474
+ assertParamExists('createSubDataset', 'datasetId', datasetId)
3475
+ // verify required parameter 'subDatasetGraphQuery' is not null or undefined
3476
+ assertParamExists('createSubDataset', 'subDatasetGraphQuery', subDatasetGraphQuery)
3477
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/subdataset`
3134
3478
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3135
3479
  .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
3136
3480
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3140,7 +3484,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3140
3484
  baseOptions = configuration.baseOptions;
3141
3485
  }
3142
3486
 
3143
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3487
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3144
3488
  const localVarHeaderParameter = {} as any;
3145
3489
  const localVarQueryParameter = {} as any;
3146
3490
 
@@ -3150,9 +3494,12 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3150
3494
 
3151
3495
 
3152
3496
 
3497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3498
+
3153
3499
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3154
3500
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3155
3501
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3502
+ localVarRequestOptions.data = serializeDataIfNeeded(subDatasetGraphQuery, localVarRequestOptions, configuration)
3156
3503
 
3157
3504
  return {
3158
3505
  url: toPathString(localVarUrlObj),
@@ -3160,19 +3507,28 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3160
3507
  };
3161
3508
  },
3162
3509
  /**
3163
- *
3164
- * @summary List all Datasets
3510
+ * create new entities in a graph instance
3511
+ * @summary Create new entities in a graph instance
3165
3512
  * @param {string} organizationId the Organization identifier
3166
- * @param {number} [page] page number to query
3167
- * @param {number} [size] amount of result by page
3513
+ * @param {string} datasetId the Dataset Identifier
3514
+ * @param {'node' | 'relationship'} type the entity model type
3515
+ * @param {Array<GraphProperties>} graphProperties the entities to create
3168
3516
  * @param {*} [options] Override http request option.
3169
3517
  * @throws {RequiredError}
3170
3518
  */
3171
- findAllDatasets: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3519
+ createTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3172
3520
  // verify required parameter 'organizationId' is not null or undefined
3173
- assertParamExists('findAllDatasets', 'organizationId', organizationId)
3174
- const localVarPath = `/organizations/{organization_id}/datasets`
3175
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
3521
+ assertParamExists('createTwingraphEntities', 'organizationId', organizationId)
3522
+ // verify required parameter 'datasetId' is not null or undefined
3523
+ assertParamExists('createTwingraphEntities', 'datasetId', datasetId)
3524
+ // verify required parameter 'type' is not null or undefined
3525
+ assertParamExists('createTwingraphEntities', 'type', type)
3526
+ // verify required parameter 'graphProperties' is not null or undefined
3527
+ assertParamExists('createTwingraphEntities', 'graphProperties', graphProperties)
3528
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
3529
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3530
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
3531
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
3176
3532
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3177
3533
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3178
3534
  let baseOptions;
@@ -3180,7 +3536,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3180
3536
  baseOptions = configuration.baseOptions;
3181
3537
  }
3182
3538
 
3183
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3539
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3184
3540
  const localVarHeaderParameter = {} as any;
3185
3541
  const localVarQueryParameter = {} as any;
3186
3542
 
@@ -3188,19 +3544,14 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3188
3544
  // oauth required
3189
3545
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3190
3546
 
3191
- if (page !== undefined) {
3192
- localVarQueryParameter['page'] = page;
3193
- }
3194
-
3195
- if (size !== undefined) {
3196
- localVarQueryParameter['size'] = size;
3197
- }
3198
-
3199
3547
 
3200
3548
 
3549
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3550
+
3201
3551
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3202
3552
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3203
3553
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3554
+ localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
3204
3555
 
3205
3556
  return {
3206
3557
  url: toPathString(localVarUrlObj),
@@ -3209,17 +3560,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3209
3560
  },
3210
3561
  /**
3211
3562
  *
3212
- * @summary Get the details of a Dataset
3563
+ * @summary Delete a dataset
3213
3564
  * @param {string} organizationId the Organization identifier
3214
3565
  * @param {string} datasetId the Dataset identifier
3215
3566
  * @param {*} [options] Override http request option.
3216
3567
  * @throws {RequiredError}
3217
3568
  */
3218
- findDatasetById: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3569
+ deleteDataset: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3219
3570
  // verify required parameter 'organizationId' is not null or undefined
3220
- assertParamExists('findDatasetById', 'organizationId', organizationId)
3571
+ assertParamExists('deleteDataset', 'organizationId', organizationId)
3221
3572
  // verify required parameter 'datasetId' is not null or undefined
3222
- assertParamExists('findDatasetById', 'datasetId', datasetId)
3573
+ assertParamExists('deleteDataset', 'datasetId', datasetId)
3223
3574
  const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
3224
3575
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3225
3576
  .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
@@ -3230,7 +3581,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3230
3581
  baseOptions = configuration.baseOptions;
3231
3582
  }
3232
3583
 
3233
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3584
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3234
3585
  const localVarHeaderParameter = {} as any;
3235
3586
  const localVarQueryParameter = {} as any;
3236
3587
 
@@ -3250,20 +3601,28 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3250
3601
  };
3251
3602
  },
3252
3603
  /**
3253
- *
3254
- * @summary Import a new Dataset
3604
+ * delete entities in a graph instance
3605
+ * @summary Delete entities in a graph instance
3255
3606
  * @param {string} organizationId the Organization identifier
3256
- * @param {Dataset} dataset the Dataset to import
3607
+ * @param {string} datasetId the Dataset Identifier
3608
+ * @param {'node' | 'relationship'} type the entity model type
3609
+ * @param {Array<string>} ids the entities to delete
3257
3610
  * @param {*} [options] Override http request option.
3258
3611
  * @throws {RequiredError}
3259
3612
  */
3260
- importDataset: async (organizationId: string, dataset: Dataset, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3613
+ deleteTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3261
3614
  // verify required parameter 'organizationId' is not null or undefined
3262
- assertParamExists('importDataset', 'organizationId', organizationId)
3263
- // verify required parameter 'dataset' is not null or undefined
3264
- assertParamExists('importDataset', 'dataset', dataset)
3265
- const localVarPath = `/organizations/{organization_id}/datasets/import`
3266
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
3615
+ assertParamExists('deleteTwingraphEntities', 'organizationId', organizationId)
3616
+ // verify required parameter 'datasetId' is not null or undefined
3617
+ assertParamExists('deleteTwingraphEntities', 'datasetId', datasetId)
3618
+ // verify required parameter 'type' is not null or undefined
3619
+ assertParamExists('deleteTwingraphEntities', 'type', type)
3620
+ // verify required parameter 'ids' is not null or undefined
3621
+ assertParamExists('deleteTwingraphEntities', 'ids', ids)
3622
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
3623
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3624
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
3625
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
3267
3626
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3268
3627
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3269
3628
  let baseOptions;
@@ -3271,7 +3630,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3271
3630
  baseOptions = configuration.baseOptions;
3272
3631
  }
3273
3632
 
3274
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3633
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3275
3634
  const localVarHeaderParameter = {} as any;
3276
3635
  const localVarQueryParameter = {} as any;
3277
3636
 
@@ -3279,14 +3638,15 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3279
3638
  // oauth required
3280
3639
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3281
3640
 
3641
+ if (ids) {
3642
+ localVarQueryParameter['ids'] = ids;
3643
+ }
3282
3644
 
3283
-
3284
- localVarHeaderParameter['Content-Type'] = 'application/json';
3285
3645
 
3646
+
3286
3647
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3287
3648
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3288
3649
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3289
- localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
3290
3650
 
3291
3651
  return {
3292
3652
  url: toPathString(localVarUrlObj),
@@ -3294,21 +3654,21 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3294
3654
  };
3295
3655
  },
3296
3656
  /**
3297
- *
3298
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
3657
+ * Download a graph compressed in a zip file
3658
+ * @summary Download a graph compressed in a zip file
3299
3659
  * @param {string} organizationId the Organization identifier
3300
- * @param {string} datasetId the Dataset identifier
3660
+ * @param {string} hash the Graph download identifier
3301
3661
  * @param {*} [options] Override http request option.
3302
3662
  * @throws {RequiredError}
3303
3663
  */
3304
- removeAllDatasetCompatibilityElements: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3664
+ downloadTwingraph: async (organizationId: string, hash: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3305
3665
  // verify required parameter 'organizationId' is not null or undefined
3306
- assertParamExists('removeAllDatasetCompatibilityElements', 'organizationId', organizationId)
3307
- // verify required parameter 'datasetId' is not null or undefined
3308
- assertParamExists('removeAllDatasetCompatibilityElements', 'datasetId', datasetId)
3309
- const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/compatibility`
3666
+ assertParamExists('downloadTwingraph', 'organizationId', organizationId)
3667
+ // verify required parameter 'hash' is not null or undefined
3668
+ assertParamExists('downloadTwingraph', 'hash', hash)
3669
+ const localVarPath = `/organizations/{organization_id}/datasets/twingraph/download/{hash}`
3310
3670
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3311
- .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
3671
+ .replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
3312
3672
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3313
3673
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3314
3674
  let baseOptions;
@@ -3316,7 +3676,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3316
3676
  baseOptions = configuration.baseOptions;
3317
3677
  }
3318
3678
 
3319
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3679
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3320
3680
  const localVarHeaderParameter = {} as any;
3321
3681
  const localVarQueryParameter = {} as any;
3322
3682
 
@@ -3337,20 +3697,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3337
3697
  },
3338
3698
  /**
3339
3699
  *
3340
- * @summary Search Datasets
3700
+ * @summary List all Datasets
3341
3701
  * @param {string} organizationId the Organization identifier
3342
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
3343
3702
  * @param {number} [page] page number to query
3344
3703
  * @param {number} [size] amount of result by page
3345
3704
  * @param {*} [options] Override http request option.
3346
3705
  * @throws {RequiredError}
3347
3706
  */
3348
- searchDatasets: async (organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3707
+ findAllDatasets: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3349
3708
  // verify required parameter 'organizationId' is not null or undefined
3350
- assertParamExists('searchDatasets', 'organizationId', organizationId)
3351
- // verify required parameter 'datasetSearch' is not null or undefined
3352
- assertParamExists('searchDatasets', 'datasetSearch', datasetSearch)
3353
- const localVarPath = `/organizations/{organization_id}/datasets/search`
3709
+ assertParamExists('findAllDatasets', 'organizationId', organizationId)
3710
+ const localVarPath = `/organizations/{organization_id}/datasets`
3354
3711
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
3355
3712
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3356
3713
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3359,7 +3716,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3359
3716
  baseOptions = configuration.baseOptions;
3360
3717
  }
3361
3718
 
3362
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3719
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3363
3720
  const localVarHeaderParameter = {} as any;
3364
3721
  const localVarQueryParameter = {} as any;
3365
3722
 
@@ -3377,12 +3734,9 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3377
3734
 
3378
3735
 
3379
3736
 
3380
- localVarHeaderParameter['Content-Type'] = 'application/json';
3381
-
3382
3737
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3383
3738
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3384
3739
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3385
- localVarRequestOptions.data = serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration)
3386
3740
 
3387
3741
  return {
3388
3742
  url: toPathString(localVarUrlObj),
@@ -3391,20 +3745,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3391
3745
  },
3392
3746
  /**
3393
3747
  *
3394
- * @summary Update a dataset
3748
+ * @summary Get the details of a Dataset
3395
3749
  * @param {string} organizationId the Organization identifier
3396
3750
  * @param {string} datasetId the Dataset identifier
3397
- * @param {Dataset} dataset the new Dataset details.
3398
3751
  * @param {*} [options] Override http request option.
3399
3752
  * @throws {RequiredError}
3400
3753
  */
3401
- updateDataset: async (organizationId: string, datasetId: string, dataset: Dataset, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3754
+ findDatasetById: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3402
3755
  // verify required parameter 'organizationId' is not null or undefined
3403
- assertParamExists('updateDataset', 'organizationId', organizationId)
3756
+ assertParamExists('findDatasetById', 'organizationId', organizationId)
3404
3757
  // verify required parameter 'datasetId' is not null or undefined
3405
- assertParamExists('updateDataset', 'datasetId', datasetId)
3406
- // verify required parameter 'dataset' is not null or undefined
3407
- assertParamExists('updateDataset', 'dataset', dataset)
3758
+ assertParamExists('findDatasetById', 'datasetId', datasetId)
3408
3759
  const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
3409
3760
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3410
3761
  .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
@@ -3415,7 +3766,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3415
3766
  baseOptions = configuration.baseOptions;
3416
3767
  }
3417
3768
 
3418
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3769
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3419
3770
  const localVarHeaderParameter = {} as any;
3420
3771
  const localVarQueryParameter = {} as any;
3421
3772
 
@@ -3425,151 +3776,1082 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3425
3776
 
3426
3777
 
3427
3778
 
3428
- localVarHeaderParameter['Content-Type'] = 'application/json';
3429
-
3430
3779
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3431
3780
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3432
3781
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3433
- localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
3434
3782
 
3435
3783
  return {
3436
3784
  url: toPathString(localVarUrlObj),
3437
3785
  options: localVarRequestOptions,
3438
3786
  };
3439
3787
  },
3440
- }
3441
- };
3442
-
3443
- /**
3444
- * DatasetApi - functional programming interface
3445
- * @export
3446
- */
3447
- export const DatasetApiFp = function(configuration?: Configuration) {
3448
- const localVarAxiosParamCreator = DatasetApiAxiosParamCreator(configuration)
3449
- return {
3450
3788
  /**
3451
3789
  *
3452
- * @summary Add Dataset Compatibility elements.
3790
+ * @summary Get a control access for the Dataset
3453
3791
  * @param {string} organizationId the Organization identifier
3454
3792
  * @param {string} datasetId the Dataset identifier
3455
- * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
3793
+ * @param {string} identityId the User identifier
3456
3794
  * @param {*} [options] Override http request option.
3457
3795
  * @throws {RequiredError}
3458
3796
  */
3459
- async addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DatasetCompatibility>>> {
3460
- const localVarAxiosArgs = await localVarAxiosParamCreator.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options);
3461
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3797
+ getDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3798
+ // verify required parameter 'organizationId' is not null or undefined
3799
+ assertParamExists('getDatasetAccessControl', 'organizationId', organizationId)
3800
+ // verify required parameter 'datasetId' is not null or undefined
3801
+ assertParamExists('getDatasetAccessControl', 'datasetId', datasetId)
3802
+ // verify required parameter 'identityId' is not null or undefined
3803
+ assertParamExists('getDatasetAccessControl', 'identityId', identityId)
3804
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
3805
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3806
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
3807
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
3808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3809
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3810
+ let baseOptions;
3811
+ if (configuration) {
3812
+ baseOptions = configuration.baseOptions;
3813
+ }
3814
+
3815
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3816
+ const localVarHeaderParameter = {} as any;
3817
+ const localVarQueryParameter = {} as any;
3818
+
3819
+ // authentication oAuth2AuthCode required
3820
+ // oauth required
3821
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3822
+
3823
+
3824
+
3825
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3827
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3828
+
3829
+ return {
3830
+ url: toPathString(localVarUrlObj),
3831
+ options: localVarRequestOptions,
3832
+ };
3462
3833
  },
3463
3834
  /**
3464
3835
  *
3465
- * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
3836
+ * @summary Get the Dataset security users list
3466
3837
  * @param {string} organizationId the Organization identifier
3467
- * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
3838
+ * @param {string} datasetId the Dataset identifier
3468
3839
  * @param {*} [options] Override http request option.
3469
3840
  * @throws {RequiredError}
3470
3841
  */
3471
- async copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetCopyParameters>> {
3472
- const localVarAxiosArgs = await localVarAxiosParamCreator.copyDataset(organizationId, datasetCopyParameters, options);
3473
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3474
- },
3842
+ getDatasetSecurityUsers: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3843
+ // verify required parameter 'organizationId' is not null or undefined
3844
+ assertParamExists('getDatasetSecurityUsers', 'organizationId', organizationId)
3845
+ // verify required parameter 'datasetId' is not null or undefined
3846
+ assertParamExists('getDatasetSecurityUsers', 'datasetId', datasetId)
3847
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/users`
3848
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3849
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
3850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3852
+ let baseOptions;
3853
+ if (configuration) {
3854
+ baseOptions = configuration.baseOptions;
3855
+ }
3856
+
3857
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3858
+ const localVarHeaderParameter = {} as any;
3859
+ const localVarQueryParameter = {} as any;
3860
+
3861
+ // authentication oAuth2AuthCode required
3862
+ // oauth required
3863
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3864
+
3865
+
3866
+
3867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3869
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3870
+
3871
+ return {
3872
+ url: toPathString(localVarUrlObj),
3873
+ options: localVarRequestOptions,
3874
+ };
3875
+ },
3876
+ /**
3877
+ * Get the status of a twingraph import
3878
+ * @summary Get the status of twingraph import
3879
+ * @param {string} organizationId the Organization identifier
3880
+ * @param {string} datasetId the dataset identifier
3881
+ * @param {string} jobId the job identifier
3882
+ * @param {*} [options] Override http request option.
3883
+ * @throws {RequiredError}
3884
+ */
3885
+ getDatasetTwingraphStatus: async (organizationId: string, datasetId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3886
+ // verify required parameter 'organizationId' is not null or undefined
3887
+ assertParamExists('getDatasetTwingraphStatus', 'organizationId', organizationId)
3888
+ // verify required parameter 'datasetId' is not null or undefined
3889
+ assertParamExists('getDatasetTwingraphStatus', 'datasetId', datasetId)
3890
+ // verify required parameter 'jobId' is not null or undefined
3891
+ assertParamExists('getDatasetTwingraphStatus', 'jobId', jobId)
3892
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/job/{job_id}/status`
3893
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3894
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
3895
+ .replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
3896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3898
+ let baseOptions;
3899
+ if (configuration) {
3900
+ baseOptions = configuration.baseOptions;
3901
+ }
3902
+
3903
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3904
+ const localVarHeaderParameter = {} as any;
3905
+ const localVarQueryParameter = {} as any;
3906
+
3907
+ // authentication oAuth2AuthCode required
3908
+ // oauth required
3909
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3910
+
3911
+
3912
+
3913
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3915
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3916
+
3917
+ return {
3918
+ url: toPathString(localVarUrlObj),
3919
+ options: localVarRequestOptions,
3920
+ };
3921
+ },
3922
+ /**
3923
+ * get entities in a graph instance
3924
+ * @summary Get entities in a graph instance
3925
+ * @param {string} organizationId the Organization identifier
3926
+ * @param {string} datasetId the Dataset Identifier
3927
+ * @param {'node' | 'relationship'} type the entity model type
3928
+ * @param {Array<string>} ids the entities to get
3929
+ * @param {*} [options] Override http request option.
3930
+ * @throws {RequiredError}
3931
+ */
3932
+ getTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3933
+ // verify required parameter 'organizationId' is not null or undefined
3934
+ assertParamExists('getTwingraphEntities', 'organizationId', organizationId)
3935
+ // verify required parameter 'datasetId' is not null or undefined
3936
+ assertParamExists('getTwingraphEntities', 'datasetId', datasetId)
3937
+ // verify required parameter 'type' is not null or undefined
3938
+ assertParamExists('getTwingraphEntities', 'type', type)
3939
+ // verify required parameter 'ids' is not null or undefined
3940
+ assertParamExists('getTwingraphEntities', 'ids', ids)
3941
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
3942
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3943
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
3944
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
3945
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3946
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3947
+ let baseOptions;
3948
+ if (configuration) {
3949
+ baseOptions = configuration.baseOptions;
3950
+ }
3951
+
3952
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3953
+ const localVarHeaderParameter = {} as any;
3954
+ const localVarQueryParameter = {} as any;
3955
+
3956
+ // authentication oAuth2AuthCode required
3957
+ // oauth required
3958
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3959
+
3960
+ if (ids) {
3961
+ localVarQueryParameter['ids'] = ids;
3962
+ }
3963
+
3964
+
3965
+
3966
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3967
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3968
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3969
+
3970
+ return {
3971
+ url: toPathString(localVarUrlObj),
3972
+ options: localVarRequestOptions,
3973
+ };
3974
+ },
3975
+ /**
3976
+ * Refresh ADT, Storage dataset
3977
+ * @summary Refresh dataset
3978
+ * @param {string} organizationId the Organization identifier
3979
+ * @param {string} datasetId the Dataset identifier
3980
+ * @param {*} [options] Override http request option.
3981
+ * @throws {RequiredError}
3982
+ */
3983
+ refreshDataset: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3984
+ // verify required parameter 'organizationId' is not null or undefined
3985
+ assertParamExists('refreshDataset', 'organizationId', organizationId)
3986
+ // verify required parameter 'datasetId' is not null or undefined
3987
+ assertParamExists('refreshDataset', 'datasetId', datasetId)
3988
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/refresh`
3989
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3990
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
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: 'POST', ...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
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4009
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4010
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4011
+
4012
+ return {
4013
+ url: toPathString(localVarUrlObj),
4014
+ options: localVarRequestOptions,
4015
+ };
4016
+ },
4017
+ /**
4018
+ *
4019
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
4020
+ * @param {string} organizationId the Organization identifier
4021
+ * @param {string} datasetId the Dataset identifier
4022
+ * @param {*} [options] Override http request option.
4023
+ * @throws {RequiredError}
4024
+ */
4025
+ removeAllDatasetCompatibilityElements: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4026
+ // verify required parameter 'organizationId' is not null or undefined
4027
+ assertParamExists('removeAllDatasetCompatibilityElements', 'organizationId', organizationId)
4028
+ // verify required parameter 'datasetId' is not null or undefined
4029
+ assertParamExists('removeAllDatasetCompatibilityElements', 'datasetId', datasetId)
4030
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/compatibility`
4031
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4032
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4035
+ let baseOptions;
4036
+ if (configuration) {
4037
+ baseOptions = configuration.baseOptions;
4038
+ }
4039
+
4040
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4041
+ const localVarHeaderParameter = {} as any;
4042
+ const localVarQueryParameter = {} as any;
4043
+
4044
+ // authentication oAuth2AuthCode required
4045
+ // oauth required
4046
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4047
+
4048
+
4049
+
4050
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4051
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4052
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4053
+
4054
+ return {
4055
+ url: toPathString(localVarUrlObj),
4056
+ options: localVarRequestOptions,
4057
+ };
4058
+ },
4059
+ /**
4060
+ *
4061
+ * @summary Remove the specified access from the given Dataset
4062
+ * @param {string} organizationId the Organization identifier
4063
+ * @param {string} datasetId the Dataset identifier
4064
+ * @param {string} identityId the User identifier
4065
+ * @param {*} [options] Override http request option.
4066
+ * @throws {RequiredError}
4067
+ */
4068
+ removeDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4069
+ // verify required parameter 'organizationId' is not null or undefined
4070
+ assertParamExists('removeDatasetAccessControl', 'organizationId', organizationId)
4071
+ // verify required parameter 'datasetId' is not null or undefined
4072
+ assertParamExists('removeDatasetAccessControl', 'datasetId', datasetId)
4073
+ // verify required parameter 'identityId' is not null or undefined
4074
+ assertParamExists('removeDatasetAccessControl', 'identityId', identityId)
4075
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
4076
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4077
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
4078
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
4079
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4080
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4081
+ let baseOptions;
4082
+ if (configuration) {
4083
+ baseOptions = configuration.baseOptions;
4084
+ }
4085
+
4086
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4087
+ const localVarHeaderParameter = {} as any;
4088
+ const localVarQueryParameter = {} as any;
4089
+
4090
+ // authentication oAuth2AuthCode required
4091
+ // oauth required
4092
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4093
+
4094
+
4095
+
4096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4098
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4099
+
4100
+ return {
4101
+ url: toPathString(localVarUrlObj),
4102
+ options: localVarRequestOptions,
4103
+ };
4104
+ },
4105
+ /**
4106
+ *
4107
+ * @summary Search Datasets
4108
+ * @param {string} organizationId the Organization identifier
4109
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
4110
+ * @param {number} [page] page number to query
4111
+ * @param {number} [size] amount of result by page
4112
+ * @param {*} [options] Override http request option.
4113
+ * @throws {RequiredError}
4114
+ */
4115
+ searchDatasets: async (organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4116
+ // verify required parameter 'organizationId' is not null or undefined
4117
+ assertParamExists('searchDatasets', 'organizationId', organizationId)
4118
+ // verify required parameter 'datasetSearch' is not null or undefined
4119
+ assertParamExists('searchDatasets', 'datasetSearch', datasetSearch)
4120
+ const localVarPath = `/organizations/{organization_id}/datasets/search`
4121
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
4122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4124
+ let baseOptions;
4125
+ if (configuration) {
4126
+ baseOptions = configuration.baseOptions;
4127
+ }
4128
+
4129
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4130
+ const localVarHeaderParameter = {} as any;
4131
+ const localVarQueryParameter = {} as any;
4132
+
4133
+ // authentication oAuth2AuthCode required
4134
+ // oauth required
4135
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4136
+
4137
+ if (page !== undefined) {
4138
+ localVarQueryParameter['page'] = page;
4139
+ }
4140
+
4141
+ if (size !== undefined) {
4142
+ localVarQueryParameter['size'] = size;
4143
+ }
4144
+
4145
+
4146
+
4147
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4148
+
4149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4152
+ localVarRequestOptions.data = serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration)
4153
+
4154
+ return {
4155
+ url: toPathString(localVarUrlObj),
4156
+ options: localVarRequestOptions,
4157
+ };
4158
+ },
4159
+ /**
4160
+ * Run a query on a graph instance and return the result as a zip file in async mode
4161
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
4162
+ * @param {string} organizationId the Organization identifier
4163
+ * @param {string} datasetId the Graph Identifier
4164
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
4165
+ * @param {*} [options] Override http request option.
4166
+ * @throws {RequiredError}
4167
+ */
4168
+ twingraphBatchQuery: async (organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4169
+ // verify required parameter 'organizationId' is not null or undefined
4170
+ assertParamExists('twingraphBatchQuery', 'organizationId', organizationId)
4171
+ // verify required parameter 'datasetId' is not null or undefined
4172
+ assertParamExists('twingraphBatchQuery', 'datasetId', datasetId)
4173
+ // verify required parameter 'datasetTwinGraphQuery' is not null or undefined
4174
+ assertParamExists('twingraphBatchQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery)
4175
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/batch-query`
4176
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4177
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4179
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4180
+ let baseOptions;
4181
+ if (configuration) {
4182
+ baseOptions = configuration.baseOptions;
4183
+ }
4184
+
4185
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4186
+ const localVarHeaderParameter = {} as any;
4187
+ const localVarQueryParameter = {} as any;
4188
+
4189
+ // authentication oAuth2AuthCode required
4190
+ // oauth required
4191
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4192
+
4193
+
4194
+
4195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4196
+
4197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4199
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4200
+ localVarRequestOptions.data = serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration)
4201
+
4202
+ return {
4203
+ url: toPathString(localVarUrlObj),
4204
+ options: localVarRequestOptions,
4205
+ };
4206
+ },
4207
+ /**
4208
+ * Async batch update by loading a CSV file on a graph instance
4209
+ * @summary Async batch update by loading a CSV file on a graph instance
4210
+ * @param {string} organizationId the Organization identifier
4211
+ * @param {string} datasetId the Dataset Identifier
4212
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
4213
+ * @param {any} body
4214
+ * @param {*} [options] Override http request option.
4215
+ * @throws {RequiredError}
4216
+ */
4217
+ twingraphBatchUpdate: async (organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4218
+ // verify required parameter 'organizationId' is not null or undefined
4219
+ assertParamExists('twingraphBatchUpdate', 'organizationId', organizationId)
4220
+ // verify required parameter 'datasetId' is not null or undefined
4221
+ assertParamExists('twingraphBatchUpdate', 'datasetId', datasetId)
4222
+ // verify required parameter 'twinGraphQuery' is not null or undefined
4223
+ assertParamExists('twingraphBatchUpdate', 'twinGraphQuery', twinGraphQuery)
4224
+ // verify required parameter 'body' is not null or undefined
4225
+ assertParamExists('twingraphBatchUpdate', 'body', body)
4226
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/batch`
4227
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4228
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4231
+ let baseOptions;
4232
+ if (configuration) {
4233
+ baseOptions = configuration.baseOptions;
4234
+ }
4235
+
4236
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4237
+ const localVarHeaderParameter = {} as any;
4238
+ const localVarQueryParameter = {} as any;
4239
+
4240
+ // authentication oAuth2AuthCode required
4241
+ // oauth required
4242
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4243
+
4244
+ if (twinGraphQuery !== undefined) {
4245
+ localVarQueryParameter['twinGraphQuery'] = twinGraphQuery;
4246
+ }
4247
+
4248
+
4249
+
4250
+ localVarHeaderParameter['Content-Type'] = 'text/csv';
4251
+
4252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4255
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4256
+
4257
+ return {
4258
+ url: toPathString(localVarUrlObj),
4259
+ options: localVarRequestOptions,
4260
+ };
4261
+ },
4262
+ /**
4263
+ * Run a query on a graph instance and return the result as a json
4264
+ * @summary Run a query on a graph instance and return the result as a json
4265
+ * @param {string} organizationId the Organization identifier
4266
+ * @param {string} datasetId the Dataset identifier
4267
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
4268
+ * @param {*} [options] Override http request option.
4269
+ * @throws {RequiredError}
4270
+ */
4271
+ twingraphQuery: async (organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4272
+ // verify required parameter 'organizationId' is not null or undefined
4273
+ assertParamExists('twingraphQuery', 'organizationId', organizationId)
4274
+ // verify required parameter 'datasetId' is not null or undefined
4275
+ assertParamExists('twingraphQuery', 'datasetId', datasetId)
4276
+ // verify required parameter 'datasetTwinGraphQuery' is not null or undefined
4277
+ assertParamExists('twingraphQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery)
4278
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph`
4279
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4280
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4283
+ let baseOptions;
4284
+ if (configuration) {
4285
+ baseOptions = configuration.baseOptions;
4286
+ }
4287
+
4288
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4289
+ const localVarHeaderParameter = {} as any;
4290
+ const localVarQueryParameter = {} as any;
4291
+
4292
+ // authentication oAuth2AuthCode required
4293
+ // oauth required
4294
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4295
+
4296
+
4297
+
4298
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4299
+
4300
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4302
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4303
+ localVarRequestOptions.data = serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration)
4304
+
4305
+ return {
4306
+ url: toPathString(localVarUrlObj),
4307
+ options: localVarRequestOptions,
4308
+ };
4309
+ },
4310
+ /**
4311
+ *
4312
+ * @summary Update a dataset
4313
+ * @param {string} organizationId the Organization identifier
4314
+ * @param {string} datasetId the Dataset identifier
4315
+ * @param {Dataset} dataset the new Dataset details.
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ */
4319
+ updateDataset: async (organizationId: string, datasetId: string, dataset: Dataset, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4320
+ // verify required parameter 'organizationId' is not null or undefined
4321
+ assertParamExists('updateDataset', 'organizationId', organizationId)
4322
+ // verify required parameter 'datasetId' is not null or undefined
4323
+ assertParamExists('updateDataset', 'datasetId', datasetId)
4324
+ // verify required parameter 'dataset' is not null or undefined
4325
+ assertParamExists('updateDataset', 'dataset', dataset)
4326
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
4327
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4328
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4331
+ let baseOptions;
4332
+ if (configuration) {
4333
+ baseOptions = configuration.baseOptions;
4334
+ }
4335
+
4336
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4337
+ const localVarHeaderParameter = {} as any;
4338
+ const localVarQueryParameter = {} as any;
4339
+
4340
+ // authentication oAuth2AuthCode required
4341
+ // oauth required
4342
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4343
+
4344
+
4345
+
4346
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4347
+
4348
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4349
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4350
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4351
+ localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
4352
+
4353
+ return {
4354
+ url: toPathString(localVarUrlObj),
4355
+ options: localVarRequestOptions,
4356
+ };
4357
+ },
4358
+ /**
4359
+ *
4360
+ * @summary Update the specified access to User for a Dataset
4361
+ * @param {string} organizationId the Organization identifier
4362
+ * @param {string} datasetId the Dataset identifier
4363
+ * @param {string} identityId the User identifier
4364
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
4365
+ * @param {*} [options] Override http request option.
4366
+ * @throws {RequiredError}
4367
+ */
4368
+ updateDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4369
+ // verify required parameter 'organizationId' is not null or undefined
4370
+ assertParamExists('updateDatasetAccessControl', 'organizationId', organizationId)
4371
+ // verify required parameter 'datasetId' is not null or undefined
4372
+ assertParamExists('updateDatasetAccessControl', 'datasetId', datasetId)
4373
+ // verify required parameter 'identityId' is not null or undefined
4374
+ assertParamExists('updateDatasetAccessControl', 'identityId', identityId)
4375
+ // verify required parameter 'datasetRole' is not null or undefined
4376
+ assertParamExists('updateDatasetAccessControl', 'datasetRole', datasetRole)
4377
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
4378
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4379
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
4380
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
4381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4383
+ let baseOptions;
4384
+ if (configuration) {
4385
+ baseOptions = configuration.baseOptions;
4386
+ }
4387
+
4388
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4389
+ const localVarHeaderParameter = {} as any;
4390
+ const localVarQueryParameter = {} as any;
4391
+
4392
+ // authentication oAuth2AuthCode required
4393
+ // oauth required
4394
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4395
+
4396
+
4397
+
4398
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4399
+
4400
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4401
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4402
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4403
+ localVarRequestOptions.data = serializeDataIfNeeded(datasetRole, localVarRequestOptions, configuration)
4404
+
4405
+ return {
4406
+ url: toPathString(localVarUrlObj),
4407
+ options: localVarRequestOptions,
4408
+ };
4409
+ },
4410
+ /**
4411
+ * update entities in a graph instance
4412
+ * @summary Update entities in a graph instance
4413
+ * @param {string} organizationId the Organization identifier
4414
+ * @param {string} datasetId the Dataset Identifier
4415
+ * @param {'node' | 'relationship'} type the entity model type
4416
+ * @param {Array<GraphProperties>} graphProperties the entities to update
4417
+ * @param {*} [options] Override http request option.
4418
+ * @throws {RequiredError}
4419
+ */
4420
+ updateTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4421
+ // verify required parameter 'organizationId' is not null or undefined
4422
+ assertParamExists('updateTwingraphEntities', 'organizationId', organizationId)
4423
+ // verify required parameter 'datasetId' is not null or undefined
4424
+ assertParamExists('updateTwingraphEntities', 'datasetId', datasetId)
4425
+ // verify required parameter 'type' is not null or undefined
4426
+ assertParamExists('updateTwingraphEntities', 'type', type)
4427
+ // verify required parameter 'graphProperties' is not null or undefined
4428
+ assertParamExists('updateTwingraphEntities', 'graphProperties', graphProperties)
4429
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
4430
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4431
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
4432
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
4433
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4434
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4435
+ let baseOptions;
4436
+ if (configuration) {
4437
+ baseOptions = configuration.baseOptions;
4438
+ }
4439
+
4440
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4441
+ const localVarHeaderParameter = {} as any;
4442
+ const localVarQueryParameter = {} as any;
4443
+
4444
+ // authentication oAuth2AuthCode required
4445
+ // oauth required
4446
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4447
+
4448
+
4449
+
4450
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4451
+
4452
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4454
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4455
+ localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
4456
+
4457
+ return {
4458
+ url: toPathString(localVarUrlObj),
4459
+ options: localVarRequestOptions,
4460
+ };
4461
+ },
4462
+ /**
4463
+ * Upload Twingraph ZIP
4464
+ * @summary Upload Twingraph with ZIP File
4465
+ * @param {string} organizationId the Organization identifier
4466
+ * @param {string} datasetId the Dataset identifier
4467
+ * @param {any} body
4468
+ * @param {*} [options] Override http request option.
4469
+ * @throws {RequiredError}
4470
+ */
4471
+ uploadTwingraph: async (organizationId: string, datasetId: string, body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4472
+ // verify required parameter 'organizationId' is not null or undefined
4473
+ assertParamExists('uploadTwingraph', 'organizationId', organizationId)
4474
+ // verify required parameter 'datasetId' is not null or undefined
4475
+ assertParamExists('uploadTwingraph', 'datasetId', datasetId)
4476
+ // verify required parameter 'body' is not null or undefined
4477
+ assertParamExists('uploadTwingraph', 'body', body)
4478
+ const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
4479
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
4480
+ .replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
4481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4483
+ let baseOptions;
4484
+ if (configuration) {
4485
+ baseOptions = configuration.baseOptions;
4486
+ }
4487
+
4488
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4489
+ const localVarHeaderParameter = {} as any;
4490
+ const localVarQueryParameter = {} as any;
4491
+
4492
+ // authentication oAuth2AuthCode required
4493
+ // oauth required
4494
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4495
+
4496
+
4497
+
4498
+ localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
4499
+
4500
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4502
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4503
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4504
+
4505
+ return {
4506
+ url: toPathString(localVarUrlObj),
4507
+ options: localVarRequestOptions,
4508
+ };
4509
+ },
4510
+ }
4511
+ };
4512
+
4513
+ /**
4514
+ * DatasetApi - functional programming interface
4515
+ * @export
4516
+ */
4517
+ export const DatasetApiFp = function(configuration?: Configuration) {
4518
+ const localVarAxiosParamCreator = DatasetApiAxiosParamCreator(configuration)
4519
+ return {
4520
+ /**
4521
+ *
4522
+ * @summary Add a control access to the Dataset
4523
+ * @param {string} organizationId the Organization identifier
4524
+ * @param {string} datasetId the Dataset identifier
4525
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
4526
+ * @param {*} [options] Override http request option.
4527
+ * @throws {RequiredError}
4528
+ */
4529
+ async addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
4530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options);
4531
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4532
+ },
4533
+ /**
4534
+ *
4535
+ * @summary Add Dataset Compatibility elements.
4536
+ * @param {string} organizationId the Organization identifier
4537
+ * @param {string} datasetId the Dataset identifier
4538
+ * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
4539
+ * @param {*} [options] Override http request option.
4540
+ * @throws {RequiredError}
4541
+ */
4542
+ async addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DatasetCompatibility>>> {
4543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options);
4544
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4545
+ },
4546
+ /**
4547
+ *
4548
+ * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
4549
+ * @param {string} organizationId the Organization identifier
4550
+ * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
4551
+ * @param {*} [options] Override http request option.
4552
+ * @throws {RequiredError}
4553
+ */
4554
+ async copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetCopyParameters>> {
4555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.copyDataset(organizationId, datasetCopyParameters, options);
4556
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4557
+ },
4558
+ /**
4559
+ *
4560
+ * @summary Create a new Dataset
4561
+ * @param {string} organizationId the Organization identifier
4562
+ * @param {Dataset} dataset the Dataset to create
4563
+ * @param {*} [options] Override http request option.
4564
+ * @throws {RequiredError}
4565
+ */
4566
+ async createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
4567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDataset(organizationId, dataset, options);
4568
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4569
+ },
4570
+ /**
4571
+ * Run a query on a dataset
4572
+ * @summary Run a query on a dataset
4573
+ * @param {string} organizationId the Organization identifier
4574
+ * @param {string} datasetId the Dataset identifier
4575
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
4576
+ * @param {*} [options] Override http request option.
4577
+ * @throws {RequiredError}
4578
+ */
4579
+ async createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
4580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options);
4581
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4582
+ },
4583
+ /**
4584
+ * create new entities in a graph instance
4585
+ * @summary Create new entities in a graph instance
4586
+ * @param {string} organizationId the Organization identifier
4587
+ * @param {string} datasetId the Dataset Identifier
4588
+ * @param {'node' | 'relationship'} type the entity model type
4589
+ * @param {Array<GraphProperties>} graphProperties the entities to create
4590
+ * @param {*} [options] Override http request option.
4591
+ * @throws {RequiredError}
4592
+ */
4593
+ async createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options);
4595
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4596
+ },
4597
+ /**
4598
+ *
4599
+ * @summary Delete a dataset
4600
+ * @param {string} organizationId the Organization identifier
4601
+ * @param {string} datasetId the Dataset identifier
4602
+ * @param {*} [options] Override http request option.
4603
+ * @throws {RequiredError}
4604
+ */
4605
+ async deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDataset(organizationId, datasetId, options);
4607
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4608
+ },
4609
+ /**
4610
+ * delete entities in a graph instance
4611
+ * @summary Delete entities in a graph instance
4612
+ * @param {string} organizationId the Organization identifier
4613
+ * @param {string} datasetId the Dataset Identifier
4614
+ * @param {'node' | 'relationship'} type the entity model type
4615
+ * @param {Array<string>} ids the entities to delete
4616
+ * @param {*} [options] Override http request option.
4617
+ * @throws {RequiredError}
4618
+ */
4619
+ async deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTwingraphEntities(organizationId, datasetId, type, ids, options);
4621
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4622
+ },
4623
+ /**
4624
+ * Download a graph compressed in a zip file
4625
+ * @summary Download a graph compressed in a zip file
4626
+ * @param {string} organizationId the Organization identifier
4627
+ * @param {string} hash the Graph download identifier
4628
+ * @param {*} [options] Override http request option.
4629
+ * @throws {RequiredError}
4630
+ */
4631
+ async downloadTwingraph(organizationId: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
4632
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadTwingraph(organizationId, hash, options);
4633
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4634
+ },
4635
+ /**
4636
+ *
4637
+ * @summary List all Datasets
4638
+ * @param {string} organizationId the Organization identifier
4639
+ * @param {number} [page] page number to query
4640
+ * @param {number} [size] amount of result by page
4641
+ * @param {*} [options] Override http request option.
4642
+ * @throws {RequiredError}
4643
+ */
4644
+ async findAllDatasets(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
4645
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options);
4646
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4647
+ },
4648
+ /**
4649
+ *
4650
+ * @summary Get the details of a Dataset
4651
+ * @param {string} organizationId the Organization identifier
4652
+ * @param {string} datasetId the Dataset identifier
4653
+ * @param {*} [options] Override http request option.
4654
+ * @throws {RequiredError}
4655
+ */
4656
+ async findDatasetById(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
4657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options);
4658
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4659
+ },
4660
+ /**
4661
+ *
4662
+ * @summary Get a control access for the Dataset
4663
+ * @param {string} organizationId the Organization identifier
4664
+ * @param {string} datasetId the Dataset identifier
4665
+ * @param {string} identityId the User identifier
4666
+ * @param {*} [options] Override http request option.
4667
+ * @throws {RequiredError}
4668
+ */
4669
+ async getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
4670
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetAccessControl(organizationId, datasetId, identityId, options);
4671
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4672
+ },
4673
+ /**
4674
+ *
4675
+ * @summary Get the Dataset security users list
4676
+ * @param {string} organizationId the Organization identifier
4677
+ * @param {string} datasetId the Dataset identifier
4678
+ * @param {*} [options] Override http request option.
4679
+ * @throws {RequiredError}
4680
+ */
4681
+ async getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
4682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetSecurityUsers(organizationId, datasetId, options);
4683
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4684
+ },
4685
+ /**
4686
+ * Get the status of a twingraph import
4687
+ * @summary Get the status of twingraph import
4688
+ * @param {string} organizationId the Organization identifier
4689
+ * @param {string} datasetId the dataset identifier
4690
+ * @param {string} jobId the job identifier
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ */
4694
+ async getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options);
4696
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4697
+ },
4698
+ /**
4699
+ * get entities in a graph instance
4700
+ * @summary Get entities in a graph instance
4701
+ * @param {string} organizationId the Organization identifier
4702
+ * @param {string} datasetId the Dataset Identifier
4703
+ * @param {'node' | 'relationship'} type the entity model type
4704
+ * @param {Array<string>} ids the entities to get
4705
+ * @param {*} [options] Override http request option.
4706
+ * @throws {RequiredError}
4707
+ */
4708
+ async getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTwingraphEntities(organizationId, datasetId, type, ids, options);
4710
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4711
+ },
4712
+ /**
4713
+ * Refresh ADT, Storage dataset
4714
+ * @summary Refresh dataset
4715
+ * @param {string} organizationId the Organization identifier
4716
+ * @param {string} datasetId the Dataset identifier
4717
+ * @param {*} [options] Override http request option.
4718
+ * @throws {RequiredError}
4719
+ */
4720
+ async refreshDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetTwinGraphInfo>> {
4721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshDataset(organizationId, datasetId, options);
4722
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4723
+ },
4724
+ /**
4725
+ *
4726
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
4727
+ * @param {string} organizationId the Organization identifier
4728
+ * @param {string} datasetId the Dataset identifier
4729
+ * @param {*} [options] Override http request option.
4730
+ * @throws {RequiredError}
4731
+ */
4732
+ async removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4733
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllDatasetCompatibilityElements(organizationId, datasetId, options);
4734
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4735
+ },
4736
+ /**
4737
+ *
4738
+ * @summary Remove the specified access from the given Dataset
4739
+ * @param {string} organizationId the Organization identifier
4740
+ * @param {string} datasetId the Dataset identifier
4741
+ * @param {string} identityId the User identifier
4742
+ * @param {*} [options] Override http request option.
4743
+ * @throws {RequiredError}
4744
+ */
4745
+ async removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeDatasetAccessControl(organizationId, datasetId, identityId, options);
4747
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4748
+ },
3475
4749
  /**
3476
4750
  *
3477
- * @summary Create a new Dataset
4751
+ * @summary Search Datasets
3478
4752
  * @param {string} organizationId the Organization identifier
3479
- * @param {Dataset} dataset the Dataset to create
4753
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
4754
+ * @param {number} [page] page number to query
4755
+ * @param {number} [size] amount of result by page
3480
4756
  * @param {*} [options] Override http request option.
3481
4757
  * @throws {RequiredError}
3482
4758
  */
3483
- async createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
3484
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDataset(organizationId, dataset, options);
4759
+ async searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
4760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options);
3485
4761
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3486
4762
  },
3487
4763
  /**
3488
- *
3489
- * @summary Delete a dataset
4764
+ * Run a query on a graph instance and return the result as a zip file in async mode
4765
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
3490
4766
  * @param {string} organizationId the Organization identifier
3491
- * @param {string} datasetId the Dataset identifier
4767
+ * @param {string} datasetId the Graph Identifier
4768
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
3492
4769
  * @param {*} [options] Override http request option.
3493
4770
  * @throws {RequiredError}
3494
4771
  */
3495
- async deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3496
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDataset(organizationId, datasetId, options);
4772
+ async twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetTwinGraphHash>> {
4773
+ const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options);
3497
4774
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3498
4775
  },
3499
4776
  /**
3500
- *
3501
- * @summary List all Datasets
4777
+ * Async batch update by loading a CSV file on a graph instance
4778
+ * @summary Async batch update by loading a CSV file on a graph instance
3502
4779
  * @param {string} organizationId the Organization identifier
3503
- * @param {number} [page] page number to query
3504
- * @param {number} [size] amount of result by page
4780
+ * @param {string} datasetId the Dataset Identifier
4781
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
4782
+ * @param {any} body
3505
4783
  * @param {*} [options] Override http request option.
3506
4784
  * @throws {RequiredError}
3507
4785
  */
3508
- async findAllDatasets(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3509
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options);
4786
+ async twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphBatchResult>> {
4787
+ const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options);
3510
4788
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3511
4789
  },
3512
4790
  /**
3513
- *
3514
- * @summary Get the details of a Dataset
4791
+ * Run a query on a graph instance and return the result as a json
4792
+ * @summary Run a query on a graph instance and return the result as a json
3515
4793
  * @param {string} organizationId the Organization identifier
3516
4794
  * @param {string} datasetId the Dataset identifier
4795
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
3517
4796
  * @param {*} [options] Override http request option.
3518
4797
  * @throws {RequiredError}
3519
4798
  */
3520
- async findDatasetById(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
3521
- const localVarAxiosArgs = await localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options);
4799
+ async twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options);
3522
4801
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3523
4802
  },
3524
4803
  /**
3525
4804
  *
3526
- * @summary Import a new Dataset
4805
+ * @summary Update a dataset
3527
4806
  * @param {string} organizationId the Organization identifier
3528
- * @param {Dataset} dataset the Dataset to import
4807
+ * @param {string} datasetId the Dataset identifier
4808
+ * @param {Dataset} dataset the new Dataset details.
3529
4809
  * @param {*} [options] Override http request option.
3530
4810
  * @throws {RequiredError}
3531
4811
  */
3532
- async importDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
3533
- const localVarAxiosArgs = await localVarAxiosParamCreator.importDataset(organizationId, dataset, options);
4812
+ async updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
4813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDataset(organizationId, datasetId, dataset, options);
3534
4814
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3535
4815
  },
3536
4816
  /**
3537
4817
  *
3538
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
4818
+ * @summary Update the specified access to User for a Dataset
3539
4819
  * @param {string} organizationId the Organization identifier
3540
4820
  * @param {string} datasetId the Dataset identifier
4821
+ * @param {string} identityId the User identifier
4822
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
3541
4823
  * @param {*} [options] Override http request option.
3542
4824
  * @throws {RequiredError}
3543
4825
  */
3544
- async removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3545
- const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllDatasetCompatibilityElements(organizationId, datasetId, options);
4826
+ async updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
4827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options);
3546
4828
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3547
4829
  },
3548
4830
  /**
3549
- *
3550
- * @summary Search Datasets
4831
+ * update entities in a graph instance
4832
+ * @summary Update entities in a graph instance
3551
4833
  * @param {string} organizationId the Organization identifier
3552
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
3553
- * @param {number} [page] page number to query
3554
- * @param {number} [size] amount of result by page
4834
+ * @param {string} datasetId the Dataset Identifier
4835
+ * @param {'node' | 'relationship'} type the entity model type
4836
+ * @param {Array<GraphProperties>} graphProperties the entities to update
3555
4837
  * @param {*} [options] Override http request option.
3556
4838
  * @throws {RequiredError}
3557
4839
  */
3558
- async searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3559
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options);
4840
+ async updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
4841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options);
3560
4842
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3561
4843
  },
3562
4844
  /**
3563
- *
3564
- * @summary Update a dataset
4845
+ * Upload Twingraph ZIP
4846
+ * @summary Upload Twingraph with ZIP File
3565
4847
  * @param {string} organizationId the Organization identifier
3566
4848
  * @param {string} datasetId the Dataset identifier
3567
- * @param {Dataset} dataset the new Dataset details.
4849
+ * @param {any} body
3568
4850
  * @param {*} [options] Override http request option.
3569
4851
  * @throws {RequiredError}
3570
4852
  */
3571
- async updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
3572
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDataset(organizationId, datasetId, dataset, options);
4853
+ async uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4854
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadTwingraph(organizationId, datasetId, body, options);
3573
4855
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3574
4856
  },
3575
4857
  }
@@ -3582,6 +4864,18 @@ export const DatasetApiFp = function(configuration?: Configuration) {
3582
4864
  export const DatasetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3583
4865
  const localVarFp = DatasetApiFp(configuration)
3584
4866
  return {
4867
+ /**
4868
+ *
4869
+ * @summary Add a control access to the Dataset
4870
+ * @param {string} organizationId the Organization identifier
4871
+ * @param {string} datasetId the Dataset identifier
4872
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
4873
+ * @param {*} [options] Override http request option.
4874
+ * @throws {RequiredError}
4875
+ */
4876
+ addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: any): AxiosPromise<DatasetAccessControl> {
4877
+ return localVarFp.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then((request) => request(axios, basePath));
4878
+ },
3585
4879
  /**
3586
4880
  *
3587
4881
  * @summary Add Dataset Compatibility elements.
@@ -3616,6 +4910,31 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3616
4910
  createDataset(organizationId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
3617
4911
  return localVarFp.createDataset(organizationId, dataset, options).then((request) => request(axios, basePath));
3618
4912
  },
4913
+ /**
4914
+ * Run a query on a dataset
4915
+ * @summary Run a query on a dataset
4916
+ * @param {string} organizationId the Organization identifier
4917
+ * @param {string} datasetId the Dataset identifier
4918
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
4919
+ * @param {*} [options] Override http request option.
4920
+ * @throws {RequiredError}
4921
+ */
4922
+ createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: any): AxiosPromise<Dataset> {
4923
+ return localVarFp.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then((request) => request(axios, basePath));
4924
+ },
4925
+ /**
4926
+ * create new entities in a graph instance
4927
+ * @summary Create new entities in a graph instance
4928
+ * @param {string} organizationId the Organization identifier
4929
+ * @param {string} datasetId the Dataset Identifier
4930
+ * @param {'node' | 'relationship'} type the entity model type
4931
+ * @param {Array<GraphProperties>} graphProperties the entities to create
4932
+ * @param {*} [options] Override http request option.
4933
+ * @throws {RequiredError}
4934
+ */
4935
+ createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
4936
+ return localVarFp.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(axios, basePath));
4937
+ },
3619
4938
  /**
3620
4939
  *
3621
4940
  * @summary Delete a dataset
@@ -3627,6 +4946,30 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3627
4946
  deleteDataset(organizationId: string, datasetId: string, options?: any): AxiosPromise<void> {
3628
4947
  return localVarFp.deleteDataset(organizationId, datasetId, options).then((request) => request(axios, basePath));
3629
4948
  },
4949
+ /**
4950
+ * delete entities in a graph instance
4951
+ * @summary Delete entities in a graph instance
4952
+ * @param {string} organizationId the Organization identifier
4953
+ * @param {string} datasetId the Dataset Identifier
4954
+ * @param {'node' | 'relationship'} type the entity model type
4955
+ * @param {Array<string>} ids the entities to delete
4956
+ * @param {*} [options] Override http request option.
4957
+ * @throws {RequiredError}
4958
+ */
4959
+ deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<void> {
4960
+ return localVarFp.deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(axios, basePath));
4961
+ },
4962
+ /**
4963
+ * Download a graph compressed in a zip file
4964
+ * @summary Download a graph compressed in a zip file
4965
+ * @param {string} organizationId the Organization identifier
4966
+ * @param {string} hash the Graph download identifier
4967
+ * @param {*} [options] Override http request option.
4968
+ * @throws {RequiredError}
4969
+ */
4970
+ downloadTwingraph(organizationId: string, hash: string, options?: any): AxiosPromise<any> {
4971
+ return localVarFp.downloadTwingraph(organizationId, hash, options).then((request) => request(axios, basePath));
4972
+ },
3630
4973
  /**
3631
4974
  *
3632
4975
  * @summary List all Datasets
@@ -3652,14 +4995,62 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3652
4995
  },
3653
4996
  /**
3654
4997
  *
3655
- * @summary Import a new Dataset
4998
+ * @summary Get a control access for the Dataset
4999
+ * @param {string} organizationId the Organization identifier
5000
+ * @param {string} datasetId the Dataset identifier
5001
+ * @param {string} identityId the User identifier
5002
+ * @param {*} [options] Override http request option.
5003
+ * @throws {RequiredError}
5004
+ */
5005
+ getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<DatasetAccessControl> {
5006
+ return localVarFp.getDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(axios, basePath));
5007
+ },
5008
+ /**
5009
+ *
5010
+ * @summary Get the Dataset security users list
5011
+ * @param {string} organizationId the Organization identifier
5012
+ * @param {string} datasetId the Dataset identifier
5013
+ * @param {*} [options] Override http request option.
5014
+ * @throws {RequiredError}
5015
+ */
5016
+ getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: any): AxiosPromise<Array<string>> {
5017
+ return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then((request) => request(axios, basePath));
5018
+ },
5019
+ /**
5020
+ * Get the status of a twingraph import
5021
+ * @summary Get the status of twingraph import
5022
+ * @param {string} organizationId the Organization identifier
5023
+ * @param {string} datasetId the dataset identifier
5024
+ * @param {string} jobId the job identifier
5025
+ * @param {*} [options] Override http request option.
5026
+ * @throws {RequiredError}
5027
+ */
5028
+ getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: any): AxiosPromise<string> {
5029
+ return localVarFp.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then((request) => request(axios, basePath));
5030
+ },
5031
+ /**
5032
+ * get entities in a graph instance
5033
+ * @summary Get entities in a graph instance
3656
5034
  * @param {string} organizationId the Organization identifier
3657
- * @param {Dataset} dataset the Dataset to import
5035
+ * @param {string} datasetId the Dataset Identifier
5036
+ * @param {'node' | 'relationship'} type the entity model type
5037
+ * @param {Array<string>} ids the entities to get
5038
+ * @param {*} [options] Override http request option.
5039
+ * @throws {RequiredError}
5040
+ */
5041
+ getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<string> {
5042
+ return localVarFp.getTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(axios, basePath));
5043
+ },
5044
+ /**
5045
+ * Refresh ADT, Storage dataset
5046
+ * @summary Refresh dataset
5047
+ * @param {string} organizationId the Organization identifier
5048
+ * @param {string} datasetId the Dataset identifier
3658
5049
  * @param {*} [options] Override http request option.
3659
5050
  * @throws {RequiredError}
3660
5051
  */
3661
- importDataset(organizationId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
3662
- return localVarFp.importDataset(organizationId, dataset, options).then((request) => request(axios, basePath));
5052
+ refreshDataset(organizationId: string, datasetId: string, options?: any): AxiosPromise<DatasetTwinGraphInfo> {
5053
+ return localVarFp.refreshDataset(organizationId, datasetId, options).then((request) => request(axios, basePath));
3663
5054
  },
3664
5055
  /**
3665
5056
  *
@@ -3672,6 +5063,18 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3672
5063
  removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: any): AxiosPromise<void> {
3673
5064
  return localVarFp.removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(axios, basePath));
3674
5065
  },
5066
+ /**
5067
+ *
5068
+ * @summary Remove the specified access from the given Dataset
5069
+ * @param {string} organizationId the Organization identifier
5070
+ * @param {string} datasetId the Dataset identifier
5071
+ * @param {string} identityId the User identifier
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ */
5075
+ removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<void> {
5076
+ return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(axios, basePath));
5077
+ },
3675
5078
  /**
3676
5079
  *
3677
5080
  * @summary Search Datasets
@@ -3685,6 +5088,43 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3685
5088
  searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: any): AxiosPromise<Array<Dataset>> {
3686
5089
  return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(axios, basePath));
3687
5090
  },
5091
+ /**
5092
+ * Run a query on a graph instance and return the result as a zip file in async mode
5093
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
5094
+ * @param {string} organizationId the Organization identifier
5095
+ * @param {string} datasetId the Graph Identifier
5096
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
5097
+ * @param {*} [options] Override http request option.
5098
+ * @throws {RequiredError}
5099
+ */
5100
+ twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: any): AxiosPromise<DatasetTwinGraphHash> {
5101
+ return localVarFp.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(axios, basePath));
5102
+ },
5103
+ /**
5104
+ * Async batch update by loading a CSV file on a graph instance
5105
+ * @summary Async batch update by loading a CSV file on a graph instance
5106
+ * @param {string} organizationId the Organization identifier
5107
+ * @param {string} datasetId the Dataset Identifier
5108
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
5109
+ * @param {any} body
5110
+ * @param {*} [options] Override http request option.
5111
+ * @throws {RequiredError}
5112
+ */
5113
+ twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: any): AxiosPromise<TwinGraphBatchResult> {
5114
+ return localVarFp.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then((request) => request(axios, basePath));
5115
+ },
5116
+ /**
5117
+ * Run a query on a graph instance and return the result as a json
5118
+ * @summary Run a query on a graph instance and return the result as a json
5119
+ * @param {string} organizationId the Organization identifier
5120
+ * @param {string} datasetId the Dataset identifier
5121
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
5122
+ * @param {*} [options] Override http request option.
5123
+ * @throws {RequiredError}
5124
+ */
5125
+ twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: any): AxiosPromise<string> {
5126
+ return localVarFp.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(axios, basePath));
5127
+ },
3688
5128
  /**
3689
5129
  *
3690
5130
  * @summary Update a dataset
@@ -3697,6 +5137,44 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3697
5137
  updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
3698
5138
  return localVarFp.updateDataset(organizationId, datasetId, dataset, options).then((request) => request(axios, basePath));
3699
5139
  },
5140
+ /**
5141
+ *
5142
+ * @summary Update the specified access to User for a Dataset
5143
+ * @param {string} organizationId the Organization identifier
5144
+ * @param {string} datasetId the Dataset identifier
5145
+ * @param {string} identityId the User identifier
5146
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
5147
+ * @param {*} [options] Override http request option.
5148
+ * @throws {RequiredError}
5149
+ */
5150
+ updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: any): AxiosPromise<DatasetAccessControl> {
5151
+ return localVarFp.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then((request) => request(axios, basePath));
5152
+ },
5153
+ /**
5154
+ * update entities in a graph instance
5155
+ * @summary Update entities in a graph instance
5156
+ * @param {string} organizationId the Organization identifier
5157
+ * @param {string} datasetId the Dataset Identifier
5158
+ * @param {'node' | 'relationship'} type the entity model type
5159
+ * @param {Array<GraphProperties>} graphProperties the entities to update
5160
+ * @param {*} [options] Override http request option.
5161
+ * @throws {RequiredError}
5162
+ */
5163
+ updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
5164
+ return localVarFp.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(axios, basePath));
5165
+ },
5166
+ /**
5167
+ * Upload Twingraph ZIP
5168
+ * @summary Upload Twingraph with ZIP File
5169
+ * @param {string} organizationId the Organization identifier
5170
+ * @param {string} datasetId the Dataset identifier
5171
+ * @param {any} body
5172
+ * @param {*} [options] Override http request option.
5173
+ * @throws {RequiredError}
5174
+ */
5175
+ uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<void> {
5176
+ return localVarFp.uploadTwingraph(organizationId, datasetId, body, options).then((request) => request(axios, basePath));
5177
+ },
3700
5178
  };
3701
5179
  };
3702
5180
 
@@ -3707,6 +5185,20 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3707
5185
  * @extends {BaseAPI}
3708
5186
  */
3709
5187
  export class DatasetApi extends BaseAPI {
5188
+ /**
5189
+ *
5190
+ * @summary Add a control access to the Dataset
5191
+ * @param {string} organizationId the Organization identifier
5192
+ * @param {string} datasetId the Dataset identifier
5193
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ * @memberof DatasetApi
5197
+ */
5198
+ public addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: AxiosRequestConfig) {
5199
+ return DatasetApiFp(this.configuration).addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then((request) => request(this.axios, this.basePath));
5200
+ }
5201
+
3710
5202
  /**
3711
5203
  *
3712
5204
  * @summary Add Dataset Compatibility elements.
@@ -3717,47 +5209,104 @@ export class DatasetApi extends BaseAPI {
3717
5209
  * @throws {RequiredError}
3718
5210
  * @memberof DatasetApi
3719
5211
  */
3720
- public addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig) {
3721
- return DatasetApiFp(this.configuration).addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options).then((request) => request(this.axios, this.basePath));
5212
+ public addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig) {
5213
+ return DatasetApiFp(this.configuration).addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options).then((request) => request(this.axios, this.basePath));
5214
+ }
5215
+
5216
+ /**
5217
+ *
5218
+ * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
5219
+ * @param {string} organizationId the Organization identifier
5220
+ * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
5221
+ * @param {*} [options] Override http request option.
5222
+ * @throws {RequiredError}
5223
+ * @memberof DatasetApi
5224
+ */
5225
+ public copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig) {
5226
+ return DatasetApiFp(this.configuration).copyDataset(organizationId, datasetCopyParameters, options).then((request) => request(this.axios, this.basePath));
5227
+ }
5228
+
5229
+ /**
5230
+ *
5231
+ * @summary Create a new Dataset
5232
+ * @param {string} organizationId the Organization identifier
5233
+ * @param {Dataset} dataset the Dataset to create
5234
+ * @param {*} [options] Override http request option.
5235
+ * @throws {RequiredError}
5236
+ * @memberof DatasetApi
5237
+ */
5238
+ public createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig) {
5239
+ return DatasetApiFp(this.configuration).createDataset(organizationId, dataset, options).then((request) => request(this.axios, this.basePath));
5240
+ }
5241
+
5242
+ /**
5243
+ * Run a query on a dataset
5244
+ * @summary Run a query on a dataset
5245
+ * @param {string} organizationId the Organization identifier
5246
+ * @param {string} datasetId the Dataset identifier
5247
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
5248
+ * @param {*} [options] Override http request option.
5249
+ * @throws {RequiredError}
5250
+ * @memberof DatasetApi
5251
+ */
5252
+ public createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: AxiosRequestConfig) {
5253
+ return DatasetApiFp(this.configuration).createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then((request) => request(this.axios, this.basePath));
5254
+ }
5255
+
5256
+ /**
5257
+ * create new entities in a graph instance
5258
+ * @summary Create new entities in a graph instance
5259
+ * @param {string} organizationId the Organization identifier
5260
+ * @param {string} datasetId the Dataset Identifier
5261
+ * @param {'node' | 'relationship'} type the entity model type
5262
+ * @param {Array<GraphProperties>} graphProperties the entities to create
5263
+ * @param {*} [options] Override http request option.
5264
+ * @throws {RequiredError}
5265
+ * @memberof DatasetApi
5266
+ */
5267
+ public createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
5268
+ return DatasetApiFp(this.configuration).createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
3722
5269
  }
3723
5270
 
3724
5271
  /**
3725
5272
  *
3726
- * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
5273
+ * @summary Delete a dataset
3727
5274
  * @param {string} organizationId the Organization identifier
3728
- * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
5275
+ * @param {string} datasetId the Dataset identifier
3729
5276
  * @param {*} [options] Override http request option.
3730
5277
  * @throws {RequiredError}
3731
5278
  * @memberof DatasetApi
3732
5279
  */
3733
- public copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig) {
3734
- return DatasetApiFp(this.configuration).copyDataset(organizationId, datasetCopyParameters, options).then((request) => request(this.axios, this.basePath));
5280
+ public deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
5281
+ return DatasetApiFp(this.configuration).deleteDataset(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
3735
5282
  }
3736
5283
 
3737
5284
  /**
3738
- *
3739
- * @summary Create a new Dataset
5285
+ * delete entities in a graph instance
5286
+ * @summary Delete entities in a graph instance
3740
5287
  * @param {string} organizationId the Organization identifier
3741
- * @param {Dataset} dataset the Dataset to create
5288
+ * @param {string} datasetId the Dataset Identifier
5289
+ * @param {'node' | 'relationship'} type the entity model type
5290
+ * @param {Array<string>} ids the entities to delete
3742
5291
  * @param {*} [options] Override http request option.
3743
5292
  * @throws {RequiredError}
3744
5293
  * @memberof DatasetApi
3745
5294
  */
3746
- public createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig) {
3747
- return DatasetApiFp(this.configuration).createDataset(organizationId, dataset, options).then((request) => request(this.axios, this.basePath));
5295
+ public deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
5296
+ return DatasetApiFp(this.configuration).deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(this.axios, this.basePath));
3748
5297
  }
3749
5298
 
3750
5299
  /**
3751
- *
3752
- * @summary Delete a dataset
5300
+ * Download a graph compressed in a zip file
5301
+ * @summary Download a graph compressed in a zip file
3753
5302
  * @param {string} organizationId the Organization identifier
3754
- * @param {string} datasetId the Dataset identifier
5303
+ * @param {string} hash the Graph download identifier
3755
5304
  * @param {*} [options] Override http request option.
3756
5305
  * @throws {RequiredError}
3757
5306
  * @memberof DatasetApi
3758
5307
  */
3759
- public deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
3760
- return DatasetApiFp(this.configuration).deleteDataset(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
5308
+ public downloadTwingraph(organizationId: string, hash: string, options?: AxiosRequestConfig) {
5309
+ return DatasetApiFp(this.configuration).downloadTwingraph(organizationId, hash, options).then((request) => request(this.axios, this.basePath));
3761
5310
  }
3762
5311
 
3763
5312
  /**
@@ -3789,15 +5338,71 @@ export class DatasetApi extends BaseAPI {
3789
5338
 
3790
5339
  /**
3791
5340
  *
3792
- * @summary Import a new Dataset
5341
+ * @summary Get a control access for the Dataset
5342
+ * @param {string} organizationId the Organization identifier
5343
+ * @param {string} datasetId the Dataset identifier
5344
+ * @param {string} identityId the User identifier
5345
+ * @param {*} [options] Override http request option.
5346
+ * @throws {RequiredError}
5347
+ * @memberof DatasetApi
5348
+ */
5349
+ public getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig) {
5350
+ return DatasetApiFp(this.configuration).getDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(this.axios, this.basePath));
5351
+ }
5352
+
5353
+ /**
5354
+ *
5355
+ * @summary Get the Dataset security users list
5356
+ * @param {string} organizationId the Organization identifier
5357
+ * @param {string} datasetId the Dataset identifier
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ * @memberof DatasetApi
5361
+ */
5362
+ public getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
5363
+ return DatasetApiFp(this.configuration).getDatasetSecurityUsers(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
5364
+ }
5365
+
5366
+ /**
5367
+ * Get the status of a twingraph import
5368
+ * @summary Get the status of twingraph import
5369
+ * @param {string} organizationId the Organization identifier
5370
+ * @param {string} datasetId the dataset identifier
5371
+ * @param {string} jobId the job identifier
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ * @memberof DatasetApi
5375
+ */
5376
+ public getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: AxiosRequestConfig) {
5377
+ return DatasetApiFp(this.configuration).getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then((request) => request(this.axios, this.basePath));
5378
+ }
5379
+
5380
+ /**
5381
+ * get entities in a graph instance
5382
+ * @summary Get entities in a graph instance
5383
+ * @param {string} organizationId the Organization identifier
5384
+ * @param {string} datasetId the Dataset Identifier
5385
+ * @param {'node' | 'relationship'} type the entity model type
5386
+ * @param {Array<string>} ids the entities to get
5387
+ * @param {*} [options] Override http request option.
5388
+ * @throws {RequiredError}
5389
+ * @memberof DatasetApi
5390
+ */
5391
+ public getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
5392
+ return DatasetApiFp(this.configuration).getTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(this.axios, this.basePath));
5393
+ }
5394
+
5395
+ /**
5396
+ * Refresh ADT, Storage dataset
5397
+ * @summary Refresh dataset
3793
5398
  * @param {string} organizationId the Organization identifier
3794
- * @param {Dataset} dataset the Dataset to import
5399
+ * @param {string} datasetId the Dataset identifier
3795
5400
  * @param {*} [options] Override http request option.
3796
5401
  * @throws {RequiredError}
3797
5402
  * @memberof DatasetApi
3798
5403
  */
3799
- public importDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig) {
3800
- return DatasetApiFp(this.configuration).importDataset(organizationId, dataset, options).then((request) => request(this.axios, this.basePath));
5404
+ public refreshDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
5405
+ return DatasetApiFp(this.configuration).refreshDataset(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
3801
5406
  }
3802
5407
 
3803
5408
  /**
@@ -3813,6 +5418,20 @@ export class DatasetApi extends BaseAPI {
3813
5418
  return DatasetApiFp(this.configuration).removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
3814
5419
  }
3815
5420
 
5421
+ /**
5422
+ *
5423
+ * @summary Remove the specified access from the given Dataset
5424
+ * @param {string} organizationId the Organization identifier
5425
+ * @param {string} datasetId the Dataset identifier
5426
+ * @param {string} identityId the User identifier
5427
+ * @param {*} [options] Override http request option.
5428
+ * @throws {RequiredError}
5429
+ * @memberof DatasetApi
5430
+ */
5431
+ public removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig) {
5432
+ return DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(this.axios, this.basePath));
5433
+ }
5434
+
3816
5435
  /**
3817
5436
  *
3818
5437
  * @summary Search Datasets
@@ -3828,6 +5447,49 @@ export class DatasetApi extends BaseAPI {
3828
5447
  return DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(this.axios, this.basePath));
3829
5448
  }
3830
5449
 
5450
+ /**
5451
+ * Run a query on a graph instance and return the result as a zip file in async mode
5452
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
5453
+ * @param {string} organizationId the Organization identifier
5454
+ * @param {string} datasetId the Graph Identifier
5455
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ * @memberof DatasetApi
5459
+ */
5460
+ public twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig) {
5461
+ return DatasetApiFp(this.configuration).twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(this.axios, this.basePath));
5462
+ }
5463
+
5464
+ /**
5465
+ * Async batch update by loading a CSV file on a graph instance
5466
+ * @summary Async batch update by loading a CSV file on a graph instance
5467
+ * @param {string} organizationId the Organization identifier
5468
+ * @param {string} datasetId the Dataset Identifier
5469
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
5470
+ * @param {any} body
5471
+ * @param {*} [options] Override http request option.
5472
+ * @throws {RequiredError}
5473
+ * @memberof DatasetApi
5474
+ */
5475
+ public twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: AxiosRequestConfig) {
5476
+ return DatasetApiFp(this.configuration).twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then((request) => request(this.axios, this.basePath));
5477
+ }
5478
+
5479
+ /**
5480
+ * Run a query on a graph instance and return the result as a json
5481
+ * @summary Run a query on a graph instance and return the result as a json
5482
+ * @param {string} organizationId the Organization identifier
5483
+ * @param {string} datasetId the Dataset identifier
5484
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
5485
+ * @param {*} [options] Override http request option.
5486
+ * @throws {RequiredError}
5487
+ * @memberof DatasetApi
5488
+ */
5489
+ public twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig) {
5490
+ return DatasetApiFp(this.configuration).twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(this.axios, this.basePath));
5491
+ }
5492
+
3831
5493
  /**
3832
5494
  *
3833
5495
  * @summary Update a dataset
@@ -3841,6 +5503,50 @@ export class DatasetApi extends BaseAPI {
3841
5503
  public updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: AxiosRequestConfig) {
3842
5504
  return DatasetApiFp(this.configuration).updateDataset(organizationId, datasetId, dataset, options).then((request) => request(this.axios, this.basePath));
3843
5505
  }
5506
+
5507
+ /**
5508
+ *
5509
+ * @summary Update the specified access to User for a Dataset
5510
+ * @param {string} organizationId the Organization identifier
5511
+ * @param {string} datasetId the Dataset identifier
5512
+ * @param {string} identityId the User identifier
5513
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
5514
+ * @param {*} [options] Override http request option.
5515
+ * @throws {RequiredError}
5516
+ * @memberof DatasetApi
5517
+ */
5518
+ public updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: AxiosRequestConfig) {
5519
+ return DatasetApiFp(this.configuration).updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then((request) => request(this.axios, this.basePath));
5520
+ }
5521
+
5522
+ /**
5523
+ * update entities in a graph instance
5524
+ * @summary Update entities in a graph instance
5525
+ * @param {string} organizationId the Organization identifier
5526
+ * @param {string} datasetId the Dataset Identifier
5527
+ * @param {'node' | 'relationship'} type the entity model type
5528
+ * @param {Array<GraphProperties>} graphProperties the entities to update
5529
+ * @param {*} [options] Override http request option.
5530
+ * @throws {RequiredError}
5531
+ * @memberof DatasetApi
5532
+ */
5533
+ public updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
5534
+ return DatasetApiFp(this.configuration).updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
5535
+ }
5536
+
5537
+ /**
5538
+ * Upload Twingraph ZIP
5539
+ * @summary Upload Twingraph with ZIP File
5540
+ * @param {string} organizationId the Organization identifier
5541
+ * @param {string} datasetId the Dataset identifier
5542
+ * @param {any} body
5543
+ * @param {*} [options] Override http request option.
5544
+ * @throws {RequiredError}
5545
+ * @memberof DatasetApi
5546
+ */
5547
+ public uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig) {
5548
+ return DatasetApiFp(this.configuration).uploadTwingraph(organizationId, datasetId, body, options).then((request) => request(this.axios, this.basePath));
5549
+ }
3844
5550
  }
3845
5551
 
3846
5552
 
@@ -4170,46 +5876,6 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
4170
5876
  options: localVarRequestOptions,
4171
5877
  };
4172
5878
  },
4173
- /**
4174
- *
4175
- * @summary Import an organization
4176
- * @param {Organization} organization the Organization to import
4177
- * @param {*} [options] Override http request option.
4178
- * @throws {RequiredError}
4179
- */
4180
- importOrganization: async (organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4181
- // verify required parameter 'organization' is not null or undefined
4182
- assertParamExists('importOrganization', 'organization', organization)
4183
- const localVarPath = `/organizations/import`;
4184
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4185
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4186
- let baseOptions;
4187
- if (configuration) {
4188
- baseOptions = configuration.baseOptions;
4189
- }
4190
-
4191
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4192
- const localVarHeaderParameter = {} as any;
4193
- const localVarQueryParameter = {} as any;
4194
-
4195
- // authentication oAuth2AuthCode required
4196
- // oauth required
4197
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4198
-
4199
-
4200
-
4201
- localVarHeaderParameter['Content-Type'] = 'application/json';
4202
-
4203
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4204
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4205
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4206
- localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
4207
-
4208
- return {
4209
- url: toPathString(localVarUrlObj),
4210
- options: localVarRequestOptions,
4211
- };
4212
- },
4213
5879
  /**
4214
5880
  *
4215
5881
  * @summary Register a new organization
@@ -4699,17 +6365,6 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4699
6365
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options);
4700
6366
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4701
6367
  },
4702
- /**
4703
- *
4704
- * @summary Import an organization
4705
- * @param {Organization} organization the Organization to import
4706
- * @param {*} [options] Override http request option.
4707
- * @throws {RequiredError}
4708
- */
4709
- async importOrganization(organization: Organization, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
4710
- const localVarAxiosArgs = await localVarAxiosParamCreator.importOrganization(organization, options);
4711
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4712
- },
4713
6368
  /**
4714
6369
  *
4715
6370
  * @summary Register a new organization
@@ -4910,16 +6565,6 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4910
6565
  getOrganizationSecurityUsers(organizationId: string, options?: any): AxiosPromise<Array<string>> {
4911
6566
  return localVarFp.getOrganizationSecurityUsers(organizationId, options).then((request) => request(axios, basePath));
4912
6567
  },
4913
- /**
4914
- *
4915
- * @summary Import an organization
4916
- * @param {Organization} organization the Organization to import
4917
- * @param {*} [options] Override http request option.
4918
- * @throws {RequiredError}
4919
- */
4920
- importOrganization(organization: Organization, options?: any): AxiosPromise<Organization> {
4921
- return localVarFp.importOrganization(organization, options).then((request) => request(axios, basePath));
4922
- },
4923
6568
  /**
4924
6569
  *
4925
6570
  * @summary Register a new organization
@@ -5127,18 +6772,6 @@ export class OrganizationApi extends BaseAPI {
5127
6772
  return OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then((request) => request(this.axios, this.basePath));
5128
6773
  }
5129
6774
 
5130
- /**
5131
- *
5132
- * @summary Import an organization
5133
- * @param {Organization} organization the Organization to import
5134
- * @param {*} [options] Override http request option.
5135
- * @throws {RequiredError}
5136
- * @memberof OrganizationApi
5137
- */
5138
- public importOrganization(organization: Organization, options?: AxiosRequestConfig) {
5139
- return OrganizationApiFp(this.configuration).importOrganization(organization, options).then((request) => request(this.axios, this.basePath));
5140
- }
5141
-
5142
6775
  /**
5143
6776
  *
5144
6777
  * @summary Register a new organization
@@ -5513,11 +7146,10 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5513
7146
  * @param {string} organizationId the Organization identifier
5514
7147
  * @param {string} workspaceId the Workspace identifier
5515
7148
  * @param {string} scenarioId the Scenario identifier
5516
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
5517
7149
  * @param {*} [options] Override http request option.
5518
7150
  * @throws {RequiredError}
5519
7151
  */
5520
- deleteScenario: async (organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7152
+ deleteScenario: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5521
7153
  // verify required parameter 'organizationId' is not null or undefined
5522
7154
  assertParamExists('deleteScenario', 'organizationId', organizationId)
5523
7155
  // verify required parameter 'workspaceId' is not null or undefined
@@ -5543,10 +7175,6 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5543
7175
  // oauth required
5544
7176
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
5545
7177
 
5546
- if (waitRelationshipPropagation !== undefined) {
5547
- localVarQueryParameter['wait_relationship_propagation'] = waitRelationshipPropagation;
5548
- }
5549
-
5550
7178
 
5551
7179
 
5552
7180
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5863,20 +7491,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5863
7491
  * @summary Get the Scenario permission by given role
5864
7492
  * @param {string} organizationId the Organization identifier
5865
7493
  * @param {string} workspaceId the Workspace identifier
7494
+ * @param {string} scenarioId the Scenario identifier
5866
7495
  * @param {string} role the Role
5867
7496
  * @param {*} [options] Override http request option.
5868
7497
  * @throws {RequiredError}
5869
7498
  */
5870
- getScenarioPermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7499
+ getScenarioPermissions: async (organizationId: string, workspaceId: string, scenarioId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5871
7500
  // verify required parameter 'organizationId' is not null or undefined
5872
7501
  assertParamExists('getScenarioPermissions', 'organizationId', organizationId)
5873
7502
  // verify required parameter 'workspaceId' is not null or undefined
5874
7503
  assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId)
7504
+ // verify required parameter 'scenarioId' is not null or undefined
7505
+ assertParamExists('getScenarioPermissions', 'scenarioId', scenarioId)
5875
7506
  // verify required parameter 'role' is not null or undefined
5876
7507
  assertParamExists('getScenarioPermissions', 'role', role)
5877
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}`
7508
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/permissions/{role}`
5878
7509
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
5879
7510
  .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
7511
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
5880
7512
  .replace(`{${"role"}}`, encodeURIComponent(String(role)));
5881
7513
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5882
7514
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6084,54 +7716,6 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
6084
7716
  options: localVarRequestOptions,
6085
7717
  };
6086
7718
  },
6087
- /**
6088
- *
6089
- * @summary Import Scenario
6090
- * @param {string} organizationId the Organization identifier
6091
- * @param {string} workspaceId the Workspace identifier
6092
- * @param {Scenario} scenario the Scenario to import
6093
- * @param {*} [options] Override http request option.
6094
- * @throws {RequiredError}
6095
- */
6096
- importScenario: async (organizationId: string, workspaceId: string, scenario: Scenario, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6097
- // verify required parameter 'organizationId' is not null or undefined
6098
- assertParamExists('importScenario', 'organizationId', organizationId)
6099
- // verify required parameter 'workspaceId' is not null or undefined
6100
- assertParamExists('importScenario', 'workspaceId', workspaceId)
6101
- // verify required parameter 'scenario' is not null or undefined
6102
- assertParamExists('importScenario', 'scenario', scenario)
6103
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/import`
6104
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6105
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
6106
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6107
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6108
- let baseOptions;
6109
- if (configuration) {
6110
- baseOptions = configuration.baseOptions;
6111
- }
6112
-
6113
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6114
- const localVarHeaderParameter = {} as any;
6115
- const localVarQueryParameter = {} as any;
6116
-
6117
- // authentication oAuth2AuthCode required
6118
- // oauth required
6119
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6120
-
6121
-
6122
-
6123
- localVarHeaderParameter['Content-Type'] = 'application/json';
6124
-
6125
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6126
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6127
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6128
- localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
6129
-
6130
- return {
6131
- url: toPathString(localVarUrlObj),
6132
- options: localVarRequestOptions,
6133
- };
6134
- },
6135
7719
  /**
6136
7720
  *
6137
7721
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6471,12 +8055,11 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6471
8055
  * @param {string} organizationId the Organization identifier
6472
8056
  * @param {string} workspaceId the Workspace identifier
6473
8057
  * @param {string} scenarioId the Scenario identifier
6474
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
6475
8058
  * @param {*} [options] Override http request option.
6476
8059
  * @throws {RequiredError}
6477
8060
  */
6478
- async deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6479
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options);
8061
+ async deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, options);
6480
8063
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6481
8064
  },
6482
8065
  /**
@@ -6567,12 +8150,13 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6567
8150
  * @summary Get the Scenario permission by given role
6568
8151
  * @param {string} organizationId the Organization identifier
6569
8152
  * @param {string} workspaceId the Workspace identifier
8153
+ * @param {string} scenarioId the Scenario identifier
6570
8154
  * @param {string} role the Role
6571
8155
  * @param {*} [options] Override http request option.
6572
8156
  * @throws {RequiredError}
6573
8157
  */
6574
- async getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
6575
- const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options);
8158
+ async getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
8159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options);
6576
8160
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6577
8161
  },
6578
8162
  /**
@@ -6626,19 +8210,6 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6626
8210
  const localVarAxiosArgs = await localVarAxiosParamCreator.getScenariosTree(organizationId, workspaceId, options);
6627
8211
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6628
8212
  },
6629
- /**
6630
- *
6631
- * @summary Import Scenario
6632
- * @param {string} organizationId the Organization identifier
6633
- * @param {string} workspaceId the Workspace identifier
6634
- * @param {Scenario} scenario the Scenario to import
6635
- * @param {*} [options] Override http request option.
6636
- * @throws {RequiredError}
6637
- */
6638
- async importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scenario>> {
6639
- const localVarAxiosArgs = await localVarAxiosParamCreator.importScenario(organizationId, workspaceId, scenario, options);
6640
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6641
- },
6642
8213
  /**
6643
8214
  *
6644
8215
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6787,12 +8358,11 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6787
8358
  * @param {string} organizationId the Organization identifier
6788
8359
  * @param {string} workspaceId the Workspace identifier
6789
8360
  * @param {string} scenarioId the Scenario identifier
6790
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
6791
8361
  * @param {*} [options] Override http request option.
6792
8362
  * @throws {RequiredError}
6793
8363
  */
6794
- deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options?: any): AxiosPromise<void> {
6795
- return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options).then((request) => request(axios, basePath));
8364
+ deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<void> {
8365
+ return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
6796
8366
  },
6797
8367
  /**
6798
8368
  *
@@ -6876,12 +8446,13 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6876
8446
  * @summary Get the Scenario permission by given role
6877
8447
  * @param {string} organizationId the Organization identifier
6878
8448
  * @param {string} workspaceId the Workspace identifier
8449
+ * @param {string} scenarioId the Scenario identifier
6879
8450
  * @param {string} role the Role
6880
8451
  * @param {*} [options] Override http request option.
6881
8452
  * @throws {RequiredError}
6882
8453
  */
6883
- getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: any): AxiosPromise<Array<string>> {
6884
- return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(axios, basePath));
8454
+ getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: any): AxiosPromise<Array<string>> {
8455
+ return localVarFp.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then((request) => request(axios, basePath));
6885
8456
  },
6886
8457
  /**
6887
8458
  *
@@ -6930,18 +8501,6 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6930
8501
  getScenariosTree(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<Scenario>> {
6931
8502
  return localVarFp.getScenariosTree(organizationId, workspaceId, options).then((request) => request(axios, basePath));
6932
8503
  },
6933
- /**
6934
- *
6935
- * @summary Import Scenario
6936
- * @param {string} organizationId the Organization identifier
6937
- * @param {string} workspaceId the Workspace identifier
6938
- * @param {Scenario} scenario the Scenario to import
6939
- * @param {*} [options] Override http request option.
6940
- * @throws {RequiredError}
6941
- */
6942
- importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: any): AxiosPromise<Scenario> {
6943
- return localVarFp.importScenario(organizationId, workspaceId, scenario, options).then((request) => request(axios, basePath));
6944
- },
6945
8504
  /**
6946
8505
  *
6947
8506
  * @summary Remove all Parameter Values from the Scenario specified
@@ -7095,13 +8654,12 @@ export class ScenarioApi extends BaseAPI {
7095
8654
  * @param {string} organizationId the Organization identifier
7096
8655
  * @param {string} workspaceId the Workspace identifier
7097
8656
  * @param {string} scenarioId the Scenario identifier
7098
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
7099
8657
  * @param {*} [options] Override http request option.
7100
8658
  * @throws {RequiredError}
7101
8659
  * @memberof ScenarioApi
7102
8660
  */
7103
- public deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, waitRelationshipPropagation?: boolean, options?: AxiosRequestConfig) {
7104
- return ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options).then((request) => request(this.axios, this.basePath));
8661
+ public deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
8662
+ return ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
7105
8663
  }
7106
8664
 
7107
8665
  /**
@@ -7198,13 +8756,14 @@ export class ScenarioApi extends BaseAPI {
7198
8756
  * @summary Get the Scenario permission by given role
7199
8757
  * @param {string} organizationId the Organization identifier
7200
8758
  * @param {string} workspaceId the Workspace identifier
8759
+ * @param {string} scenarioId the Scenario identifier
7201
8760
  * @param {string} role the Role
7202
8761
  * @param {*} [options] Override http request option.
7203
8762
  * @throws {RequiredError}
7204
8763
  * @memberof ScenarioApi
7205
8764
  */
7206
- public getScenarioPermissions(organizationId: string, workspaceId: string, role: string, options?: AxiosRequestConfig) {
7207
- return ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then((request) => request(this.axios, this.basePath));
8765
+ public getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: AxiosRequestConfig) {
8766
+ return ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then((request) => request(this.axios, this.basePath));
7208
8767
  }
7209
8768
 
7210
8769
  /**
@@ -7262,20 +8821,6 @@ export class ScenarioApi extends BaseAPI {
7262
8821
  return ScenarioApiFp(this.configuration).getScenariosTree(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
7263
8822
  }
7264
8823
 
7265
- /**
7266
- *
7267
- * @summary Import Scenario
7268
- * @param {string} organizationId the Organization identifier
7269
- * @param {string} workspaceId the Workspace identifier
7270
- * @param {Scenario} scenario the Scenario to import
7271
- * @param {*} [options] Override http request option.
7272
- * @throws {RequiredError}
7273
- * @memberof ScenarioApi
7274
- */
7275
- public importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: AxiosRequestConfig) {
7276
- return ScenarioApiFp(this.configuration).importScenario(organizationId, workspaceId, scenario, options).then((request) => request(this.axios, this.basePath));
7277
- }
7278
-
7279
8824
  /**
7280
8825
  *
7281
8826
  * @summary Remove all Parameter Values from the Scenario specified
@@ -7818,58 +9363,6 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7818
9363
  options: localVarRequestOptions,
7819
9364
  };
7820
9365
  },
7821
- /**
7822
- *
7823
- * @summary import a ScenarioRun for the Scenario
7824
- * @param {string} organizationId the Organization identifier
7825
- * @param {string} workspaceId the Workspace identifier
7826
- * @param {string} scenarioId the Scenario identifier
7827
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
7828
- * @param {*} [options] Override http request option.
7829
- * @throws {RequiredError}
7830
- */
7831
- importScenarioRun: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7832
- // verify required parameter 'organizationId' is not null or undefined
7833
- assertParamExists('importScenarioRun', 'organizationId', organizationId)
7834
- // verify required parameter 'workspaceId' is not null or undefined
7835
- assertParamExists('importScenarioRun', 'workspaceId', workspaceId)
7836
- // verify required parameter 'scenarioId' is not null or undefined
7837
- assertParamExists('importScenarioRun', 'scenarioId', scenarioId)
7838
- // verify required parameter 'scenarioRun' is not null or undefined
7839
- assertParamExists('importScenarioRun', 'scenarioRun', scenarioRun)
7840
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/run/import`
7841
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
7842
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
7843
- .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
7844
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7845
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7846
- let baseOptions;
7847
- if (configuration) {
7848
- baseOptions = configuration.baseOptions;
7849
- }
7850
-
7851
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7852
- const localVarHeaderParameter = {} as any;
7853
- const localVarQueryParameter = {} as any;
7854
-
7855
- // authentication oAuth2AuthCode required
7856
- // oauth required
7857
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7858
-
7859
-
7860
-
7861
- localVarHeaderParameter['Content-Type'] = 'application/json';
7862
-
7863
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7864
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7865
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7866
- localVarRequestOptions.data = serializeDataIfNeeded(scenarioRun, localVarRequestOptions, configuration)
7867
-
7868
- return {
7869
- url: toPathString(localVarUrlObj),
7870
- options: localVarRequestOptions,
7871
- };
7872
- },
7873
9366
  /**
7874
9367
  *
7875
9368
  * @summary run a ScenarioRun for the Scenario
@@ -8194,20 +9687,6 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
8194
9687
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options);
8195
9688
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8196
9689
  },
8197
- /**
8198
- *
8199
- * @summary import a ScenarioRun for the Scenario
8200
- * @param {string} organizationId the Organization identifier
8201
- * @param {string} workspaceId the Workspace identifier
8202
- * @param {string} scenarioId the Scenario identifier
8203
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
8204
- * @param {*} [options] Override http request option.
8205
- * @throws {RequiredError}
8206
- */
8207
- async importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioRun>> {
8208
- const localVarAxiosArgs = await localVarAxiosParamCreator.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options);
8209
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8210
- },
8211
9690
  /**
8212
9691
  *
8213
9692
  * @summary run a ScenarioRun for the Scenario
@@ -8387,19 +9866,6 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
8387
9866
  getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<ScenarioRun>> {
8388
9867
  return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then((request) => request(axios, basePath));
8389
9868
  },
8390
- /**
8391
- *
8392
- * @summary import a ScenarioRun for the Scenario
8393
- * @param {string} organizationId the Organization identifier
8394
- * @param {string} workspaceId the Workspace identifier
8395
- * @param {string} scenarioId the Scenario identifier
8396
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
8397
- * @param {*} [options] Override http request option.
8398
- * @throws {RequiredError}
8399
- */
8400
- importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: any): AxiosPromise<ScenarioRun> {
8401
- return localVarFp.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then((request) => request(axios, basePath));
8402
- },
8403
9869
  /**
8404
9870
  *
8405
9871
  * @summary run a ScenarioRun for the Scenario
@@ -8597,72 +10063,302 @@ export class ScenariorunApi extends BaseAPI {
8597
10063
 
8598
10064
  /**
8599
10065
  *
8600
- * @summary import a ScenarioRun for the Scenario
10066
+ * @summary run a ScenarioRun for the Scenario
10067
+ * @param {string} organizationId the Organization identifier
10068
+ * @param {string} workspaceId the Workspace identifier
10069
+ * @param {string} scenarioId the Scenario identifier
10070
+ * @param {*} [options] Override http request option.
10071
+ * @throws {RequiredError}
10072
+ * @memberof ScenariorunApi
10073
+ */
10074
+ public runScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
10075
+ return ScenariorunApiFp(this.configuration).runScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
10076
+ }
10077
+
10078
+ /**
10079
+ *
10080
+ * @summary Search ScenarioRuns
10081
+ * @param {string} organizationId the Organization identifier
10082
+ * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
10083
+ * @param {number} [page] page number to query
10084
+ * @param {number} [size] amount of result by page
10085
+ * @param {*} [options] Override http request option.
10086
+ * @throws {RequiredError}
10087
+ * @memberof ScenariorunApi
10088
+ */
10089
+ public searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: AxiosRequestConfig) {
10090
+ return ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then((request) => request(this.axios, this.basePath));
10091
+ }
10092
+
10093
+ /**
10094
+ *
10095
+ * @summary Start a new scenariorun with raw containers definition
10096
+ * @param {string} organizationId the Organization identifier
10097
+ * @param {ScenarioRunStartContainers} scenarioRunStartContainers the raw containers definition
10098
+ * @param {*} [options] Override http request option.
10099
+ * @throws {RequiredError}
10100
+ * @memberof ScenariorunApi
10101
+ */
10102
+ public startScenarioRunContainers(organizationId: string, scenarioRunStartContainers: ScenarioRunStartContainers, options?: AxiosRequestConfig) {
10103
+ return ScenariorunApiFp(this.configuration).startScenarioRunContainers(organizationId, scenarioRunStartContainers, options).then((request) => request(this.axios, this.basePath));
10104
+ }
10105
+
10106
+ /**
10107
+ *
10108
+ * @summary stop a ScenarioRun for the Scenario
10109
+ * @param {string} organizationId the Organization identifier
10110
+ * @param {string} scenariorunId the scenariorun identifier
10111
+ * @param {*} [options] Override http request option.
10112
+ * @throws {RequiredError}
10113
+ * @memberof ScenariorunApi
10114
+ */
10115
+ public stopScenarioRun(organizationId: string, scenariorunId: string, options?: AxiosRequestConfig) {
10116
+ return ScenariorunApiFp(this.configuration).stopScenarioRun(organizationId, scenariorunId, options).then((request) => request(this.axios, this.basePath));
10117
+ }
10118
+ }
10119
+
10120
+
10121
+ /**
10122
+ * ScenariorunresultApi - axios parameter creator
10123
+ * @export
10124
+ */
10125
+ export const ScenariorunresultApiAxiosParamCreator = function (configuration?: Configuration) {
10126
+ return {
10127
+ /**
10128
+ *
10129
+ * @summary Get a ScenarioRunResult in the Organization
10130
+ * @param {string} organizationId the Organization identifier
10131
+ * @param {string} workspaceId the Workspace identifier
10132
+ * @param {string} scenarioId the Scenario identifier
10133
+ * @param {string} scenariorunId the ScenarioRun identifier
10134
+ * @param {string} probeId the Probe identifier
10135
+ * @param {*} [options] Override http request option.
10136
+ * @throws {RequiredError}
10137
+ */
10138
+ getScenarioRunResult: async (organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10139
+ // verify required parameter 'organizationId' is not null or undefined
10140
+ assertParamExists('getScenarioRunResult', 'organizationId', organizationId)
10141
+ // verify required parameter 'workspaceId' is not null or undefined
10142
+ assertParamExists('getScenarioRunResult', 'workspaceId', workspaceId)
10143
+ // verify required parameter 'scenarioId' is not null or undefined
10144
+ assertParamExists('getScenarioRunResult', 'scenarioId', scenarioId)
10145
+ // verify required parameter 'scenariorunId' is not null or undefined
10146
+ assertParamExists('getScenarioRunResult', 'scenariorunId', scenariorunId)
10147
+ // verify required parameter 'probeId' is not null or undefined
10148
+ assertParamExists('getScenarioRunResult', 'probeId', probeId)
10149
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}`
10150
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10151
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
10152
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
10153
+ .replace(`{${"scenariorun_id"}}`, encodeURIComponent(String(scenariorunId)))
10154
+ .replace(`{${"probe_id"}}`, encodeURIComponent(String(probeId)));
10155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10157
+ let baseOptions;
10158
+ if (configuration) {
10159
+ baseOptions = configuration.baseOptions;
10160
+ }
10161
+
10162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10163
+ const localVarHeaderParameter = {} as any;
10164
+ const localVarQueryParameter = {} as any;
10165
+
10166
+ // authentication oAuth2AuthCode required
10167
+ // oauth required
10168
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10169
+
10170
+
10171
+
10172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10175
+
10176
+ return {
10177
+ url: toPathString(localVarUrlObj),
10178
+ options: localVarRequestOptions,
10179
+ };
10180
+ },
10181
+ /**
10182
+ *
10183
+ * @summary Create a new ScenarioRunResult in the Organization
10184
+ * @param {string} organizationId the Organization identifier
10185
+ * @param {string} workspaceId the Workspace identifier
10186
+ * @param {string} scenarioId the Scenario identifier
10187
+ * @param {string} scenariorunId the ScenarioRun identifier
10188
+ * @param {string} probeId the Probe identifier
10189
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
10190
+ * @param {*} [options] Override http request option.
10191
+ * @throws {RequiredError}
10192
+ */
10193
+ sendScenarioRunResult: async (organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10194
+ // verify required parameter 'organizationId' is not null or undefined
10195
+ assertParamExists('sendScenarioRunResult', 'organizationId', organizationId)
10196
+ // verify required parameter 'workspaceId' is not null or undefined
10197
+ assertParamExists('sendScenarioRunResult', 'workspaceId', workspaceId)
10198
+ // verify required parameter 'scenarioId' is not null or undefined
10199
+ assertParamExists('sendScenarioRunResult', 'scenarioId', scenarioId)
10200
+ // verify required parameter 'scenariorunId' is not null or undefined
10201
+ assertParamExists('sendScenarioRunResult', 'scenariorunId', scenariorunId)
10202
+ // verify required parameter 'probeId' is not null or undefined
10203
+ assertParamExists('sendScenarioRunResult', 'probeId', probeId)
10204
+ // verify required parameter 'requestBody' is not null or undefined
10205
+ assertParamExists('sendScenarioRunResult', 'requestBody', requestBody)
10206
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}`
10207
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10208
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
10209
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
10210
+ .replace(`{${"scenariorun_id"}}`, encodeURIComponent(String(scenariorunId)))
10211
+ .replace(`{${"probe_id"}}`, encodeURIComponent(String(probeId)));
10212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10213
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10214
+ let baseOptions;
10215
+ if (configuration) {
10216
+ baseOptions = configuration.baseOptions;
10217
+ }
10218
+
10219
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10220
+ const localVarHeaderParameter = {} as any;
10221
+ const localVarQueryParameter = {} as any;
10222
+
10223
+ // authentication oAuth2AuthCode required
10224
+ // oauth required
10225
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10226
+
10227
+
10228
+
10229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10230
+
10231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10234
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
10235
+
10236
+ return {
10237
+ url: toPathString(localVarUrlObj),
10238
+ options: localVarRequestOptions,
10239
+ };
10240
+ },
10241
+ }
10242
+ };
10243
+
10244
+ /**
10245
+ * ScenariorunresultApi - functional programming interface
10246
+ * @export
10247
+ */
10248
+ export const ScenariorunresultApiFp = function(configuration?: Configuration) {
10249
+ const localVarAxiosParamCreator = ScenariorunresultApiAxiosParamCreator(configuration)
10250
+ return {
10251
+ /**
10252
+ *
10253
+ * @summary Get a ScenarioRunResult in the Organization
10254
+ * @param {string} organizationId the Organization identifier
10255
+ * @param {string} workspaceId the Workspace identifier
10256
+ * @param {string} scenarioId the Scenario identifier
10257
+ * @param {string} scenariorunId the ScenarioRun identifier
10258
+ * @param {string} probeId the Probe identifier
10259
+ * @param {*} [options] Override http request option.
10260
+ * @throws {RequiredError}
10261
+ */
10262
+ async getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioRunResult>> {
10263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options);
10264
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10265
+ },
10266
+ /**
10267
+ *
10268
+ * @summary Create a new ScenarioRunResult in the Organization
10269
+ * @param {string} organizationId the Organization identifier
10270
+ * @param {string} workspaceId the Workspace identifier
10271
+ * @param {string} scenarioId the Scenario identifier
10272
+ * @param {string} scenariorunId the ScenarioRun identifier
10273
+ * @param {string} probeId the Probe identifier
10274
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
10275
+ * @param {*} [options] Override http request option.
10276
+ * @throws {RequiredError}
10277
+ */
10278
+ async sendScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioRunResult>> {
10279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options);
10280
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10281
+ },
10282
+ }
10283
+ };
10284
+
10285
+ /**
10286
+ * ScenariorunresultApi - factory interface
10287
+ * @export
10288
+ */
10289
+ export const ScenariorunresultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10290
+ const localVarFp = ScenariorunresultApiFp(configuration)
10291
+ return {
10292
+ /**
10293
+ *
10294
+ * @summary Get a ScenarioRunResult in the Organization
10295
+ * @param {string} organizationId the Organization identifier
10296
+ * @param {string} workspaceId the Workspace identifier
10297
+ * @param {string} scenarioId the Scenario identifier
10298
+ * @param {string} scenariorunId the ScenarioRun identifier
10299
+ * @param {string} probeId the Probe identifier
10300
+ * @param {*} [options] Override http request option.
10301
+ * @throws {RequiredError}
10302
+ */
10303
+ getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: any): AxiosPromise<ScenarioRunResult> {
10304
+ return localVarFp.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then((request) => request(axios, basePath));
10305
+ },
10306
+ /**
10307
+ *
10308
+ * @summary Create a new ScenarioRunResult in the Organization
10309
+ * @param {string} organizationId the Organization identifier
10310
+ * @param {string} workspaceId the Workspace identifier
10311
+ * @param {string} scenarioId the Scenario identifier
10312
+ * @param {string} scenariorunId the ScenarioRun identifier
10313
+ * @param {string} probeId the Probe identifier
10314
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
10315
+ * @param {*} [options] Override http request option.
10316
+ * @throws {RequiredError}
10317
+ */
10318
+ sendScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options?: any): AxiosPromise<ScenarioRunResult> {
10319
+ return localVarFp.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then((request) => request(axios, basePath));
10320
+ },
10321
+ };
10322
+ };
10323
+
10324
+ /**
10325
+ * ScenariorunresultApi - object-oriented interface
10326
+ * @export
10327
+ * @class ScenariorunresultApi
10328
+ * @extends {BaseAPI}
10329
+ */
10330
+ export class ScenariorunresultApi extends BaseAPI {
10331
+ /**
10332
+ *
10333
+ * @summary Get a ScenarioRunResult in the Organization
8601
10334
  * @param {string} organizationId the Organization identifier
8602
10335
  * @param {string} workspaceId the Workspace identifier
8603
10336
  * @param {string} scenarioId the Scenario identifier
8604
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
10337
+ * @param {string} scenariorunId the ScenarioRun identifier
10338
+ * @param {string} probeId the Probe identifier
8605
10339
  * @param {*} [options] Override http request option.
8606
10340
  * @throws {RequiredError}
8607
- * @memberof ScenariorunApi
10341
+ * @memberof ScenariorunresultApi
8608
10342
  */
8609
- public importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: AxiosRequestConfig) {
8610
- return ScenariorunApiFp(this.configuration).importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then((request) => request(this.axios, this.basePath));
10343
+ public getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: AxiosRequestConfig) {
10344
+ return ScenariorunresultApiFp(this.configuration).getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then((request) => request(this.axios, this.basePath));
8611
10345
  }
8612
10346
 
8613
10347
  /**
8614
10348
  *
8615
- * @summary run a ScenarioRun for the Scenario
10349
+ * @summary Create a new ScenarioRunResult in the Organization
8616
10350
  * @param {string} organizationId the Organization identifier
8617
10351
  * @param {string} workspaceId the Workspace identifier
8618
10352
  * @param {string} scenarioId the Scenario identifier
10353
+ * @param {string} scenariorunId the ScenarioRun identifier
10354
+ * @param {string} probeId the Probe identifier
10355
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
8619
10356
  * @param {*} [options] Override http request option.
8620
10357
  * @throws {RequiredError}
8621
- * @memberof ScenariorunApi
8622
- */
8623
- public runScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
8624
- return ScenariorunApiFp(this.configuration).runScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
8625
- }
8626
-
8627
- /**
8628
- *
8629
- * @summary Search ScenarioRuns
8630
- * @param {string} organizationId the Organization identifier
8631
- * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
8632
- * @param {number} [page] page number to query
8633
- * @param {number} [size] amount of result by page
8634
- * @param {*} [options] Override http request option.
8635
- * @throws {RequiredError}
8636
- * @memberof ScenariorunApi
8637
- */
8638
- public searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: AxiosRequestConfig) {
8639
- return ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then((request) => request(this.axios, this.basePath));
8640
- }
8641
-
8642
- /**
8643
- *
8644
- * @summary Start a new scenariorun with raw containers definition
8645
- * @param {string} organizationId the Organization identifier
8646
- * @param {ScenarioRunStartContainers} scenarioRunStartContainers the raw containers definition
8647
- * @param {*} [options] Override http request option.
8648
- * @throws {RequiredError}
8649
- * @memberof ScenariorunApi
8650
- */
8651
- public startScenarioRunContainers(organizationId: string, scenarioRunStartContainers: ScenarioRunStartContainers, options?: AxiosRequestConfig) {
8652
- return ScenariorunApiFp(this.configuration).startScenarioRunContainers(organizationId, scenarioRunStartContainers, options).then((request) => request(this.axios, this.basePath));
8653
- }
8654
-
8655
- /**
8656
- *
8657
- * @summary stop a ScenarioRun for the Scenario
8658
- * @param {string} organizationId the Organization identifier
8659
- * @param {string} scenariorunId the scenariorun identifier
8660
- * @param {*} [options] Override http request option.
8661
- * @throws {RequiredError}
8662
- * @memberof ScenariorunApi
10358
+ * @memberof ScenariorunresultApi
8663
10359
  */
8664
- public stopScenarioRun(organizationId: string, scenariorunId: string, options?: AxiosRequestConfig) {
8665
- return ScenariorunApiFp(this.configuration).stopScenarioRun(organizationId, scenariorunId, options).then((request) => request(this.axios, this.basePath));
10360
+ public sendScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options?: AxiosRequestConfig) {
10361
+ return ScenariorunresultApiFp(this.configuration).sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then((request) => request(this.axios, this.basePath));
8666
10362
  }
8667
10363
  }
8668
10364
 
@@ -8817,6 +10513,54 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8817
10513
  options: localVarRequestOptions,
8818
10514
  };
8819
10515
  },
10516
+ /**
10517
+ *
10518
+ * @summary Add a control access to the Solution
10519
+ * @param {string} organizationId the Organization identifier
10520
+ * @param {string} solutionId the Solution identifier
10521
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
10522
+ * @param {*} [options] Override http request option.
10523
+ * @throws {RequiredError}
10524
+ */
10525
+ addSolutionAccessControl: async (organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10526
+ // verify required parameter 'organizationId' is not null or undefined
10527
+ assertParamExists('addSolutionAccessControl', 'organizationId', organizationId)
10528
+ // verify required parameter 'solutionId' is not null or undefined
10529
+ assertParamExists('addSolutionAccessControl', 'solutionId', solutionId)
10530
+ // verify required parameter 'solutionAccessControl' is not null or undefined
10531
+ assertParamExists('addSolutionAccessControl', 'solutionAccessControl', solutionAccessControl)
10532
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access`
10533
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10534
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
10535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10536
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10537
+ let baseOptions;
10538
+ if (configuration) {
10539
+ baseOptions = configuration.baseOptions;
10540
+ }
10541
+
10542
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10543
+ const localVarHeaderParameter = {} as any;
10544
+ const localVarQueryParameter = {} as any;
10545
+
10546
+ // authentication oAuth2AuthCode required
10547
+ // oauth required
10548
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10549
+
10550
+
10551
+
10552
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10553
+
10554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10556
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10557
+ localVarRequestOptions.data = serializeDataIfNeeded(solutionAccessControl, localVarRequestOptions, configuration)
10558
+
10559
+ return {
10560
+ url: toPathString(localVarUrlObj),
10561
+ options: localVarRequestOptions,
10562
+ };
10563
+ },
8820
10564
  /**
8821
10565
  *
8822
10566
  * @summary Register a new solution
@@ -9091,19 +10835,24 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
9091
10835
  },
9092
10836
  /**
9093
10837
  *
9094
- * @summary Import a solution
10838
+ * @summary Get a control access for the Solution
9095
10839
  * @param {string} organizationId the Organization identifier
9096
- * @param {Solution} solution the Solution to import
10840
+ * @param {string} solutionId the Solution identifier
10841
+ * @param {string} identityId the User identifier
9097
10842
  * @param {*} [options] Override http request option.
9098
10843
  * @throws {RequiredError}
9099
10844
  */
9100
- importSolution: async (organizationId: string, solution: Solution, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10845
+ getSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9101
10846
  // verify required parameter 'organizationId' is not null or undefined
9102
- assertParamExists('importSolution', 'organizationId', organizationId)
9103
- // verify required parameter 'solution' is not null or undefined
9104
- assertParamExists('importSolution', 'solution', solution)
9105
- const localVarPath = `/organizations/{organization_id}/solutions/import`
9106
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10847
+ assertParamExists('getSolutionAccessControl', 'organizationId', organizationId)
10848
+ // verify required parameter 'solutionId' is not null or undefined
10849
+ assertParamExists('getSolutionAccessControl', 'solutionId', solutionId)
10850
+ // verify required parameter 'identityId' is not null or undefined
10851
+ assertParamExists('getSolutionAccessControl', 'identityId', identityId)
10852
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
10853
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10854
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
10855
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
9107
10856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9108
10857
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9109
10858
  let baseOptions;
@@ -9111,7 +10860,7 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
9111
10860
  baseOptions = configuration.baseOptions;
9112
10861
  }
9113
10862
 
9114
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10863
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9115
10864
  const localVarHeaderParameter = {} as any;
9116
10865
  const localVarQueryParameter = {} as any;
9117
10866
 
@@ -9121,12 +10870,51 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
9121
10870
 
9122
10871
 
9123
10872
 
9124
- localVarHeaderParameter['Content-Type'] = 'application/json';
10873
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10875
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10876
+
10877
+ return {
10878
+ url: toPathString(localVarUrlObj),
10879
+ options: localVarRequestOptions,
10880
+ };
10881
+ },
10882
+ /**
10883
+ *
10884
+ * @summary Get the Solution security users list
10885
+ * @param {string} organizationId the Organization identifier
10886
+ * @param {string} solutionId the Solution identifier
10887
+ * @param {*} [options] Override http request option.
10888
+ * @throws {RequiredError}
10889
+ */
10890
+ getSolutionSecurityUsers: async (organizationId: string, solutionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10891
+ // verify required parameter 'organizationId' is not null or undefined
10892
+ assertParamExists('getSolutionSecurityUsers', 'organizationId', organizationId)
10893
+ // verify required parameter 'solutionId' is not null or undefined
10894
+ assertParamExists('getSolutionSecurityUsers', 'solutionId', solutionId)
10895
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/users`
10896
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10897
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
10898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10899
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10900
+ let baseOptions;
10901
+ if (configuration) {
10902
+ baseOptions = configuration.baseOptions;
10903
+ }
10904
+
10905
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10906
+ const localVarHeaderParameter = {} as any;
10907
+ const localVarQueryParameter = {} as any;
10908
+
10909
+ // authentication oAuth2AuthCode required
10910
+ // oauth required
10911
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10912
+
9125
10913
 
10914
+
9126
10915
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9127
10916
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9128
10917
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9129
- localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
9130
10918
 
9131
10919
  return {
9132
10920
  url: toPathString(localVarUrlObj),
@@ -9261,23 +11049,121 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
9261
11049
  },
9262
11050
  /**
9263
11051
  *
9264
- * @summary Update a solution
11052
+ * @summary Remove the specified access from the given Organization Solution
11053
+ * @param {string} organizationId the Organization identifier
11054
+ * @param {string} solutionId the Solution identifier
11055
+ * @param {string} identityId the User identifier
11056
+ * @param {*} [options] Override http request option.
11057
+ * @throws {RequiredError}
11058
+ */
11059
+ removeSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11060
+ // verify required parameter 'organizationId' is not null or undefined
11061
+ assertParamExists('removeSolutionAccessControl', 'organizationId', organizationId)
11062
+ // verify required parameter 'solutionId' is not null or undefined
11063
+ assertParamExists('removeSolutionAccessControl', 'solutionId', solutionId)
11064
+ // verify required parameter 'identityId' is not null or undefined
11065
+ assertParamExists('removeSolutionAccessControl', 'identityId', identityId)
11066
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
11067
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
11068
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
11069
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
11070
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11071
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11072
+ let baseOptions;
11073
+ if (configuration) {
11074
+ baseOptions = configuration.baseOptions;
11075
+ }
11076
+
11077
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11078
+ const localVarHeaderParameter = {} as any;
11079
+ const localVarQueryParameter = {} as any;
11080
+
11081
+ // authentication oAuth2AuthCode required
11082
+ // oauth required
11083
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
11084
+
11085
+
11086
+
11087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11089
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11090
+
11091
+ return {
11092
+ url: toPathString(localVarUrlObj),
11093
+ options: localVarRequestOptions,
11094
+ };
11095
+ },
11096
+ /**
11097
+ *
11098
+ * @summary Update a solution
11099
+ * @param {string} organizationId the Organization identifier
11100
+ * @param {string} solutionId the Solution identifier
11101
+ * @param {Solution} solution the new Solution details.
11102
+ * @param {*} [options] Override http request option.
11103
+ * @throws {RequiredError}
11104
+ */
11105
+ updateSolution: async (organizationId: string, solutionId: string, solution: Solution, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11106
+ // verify required parameter 'organizationId' is not null or undefined
11107
+ assertParamExists('updateSolution', 'organizationId', organizationId)
11108
+ // verify required parameter 'solutionId' is not null or undefined
11109
+ assertParamExists('updateSolution', 'solutionId', solutionId)
11110
+ // verify required parameter 'solution' is not null or undefined
11111
+ assertParamExists('updateSolution', 'solution', solution)
11112
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}`
11113
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
11114
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
11115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11117
+ let baseOptions;
11118
+ if (configuration) {
11119
+ baseOptions = configuration.baseOptions;
11120
+ }
11121
+
11122
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11123
+ const localVarHeaderParameter = {} as any;
11124
+ const localVarQueryParameter = {} as any;
11125
+
11126
+ // authentication oAuth2AuthCode required
11127
+ // oauth required
11128
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
11129
+
11130
+
11131
+
11132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11133
+
11134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11137
+ localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
11138
+
11139
+ return {
11140
+ url: toPathString(localVarUrlObj),
11141
+ options: localVarRequestOptions,
11142
+ };
11143
+ },
11144
+ /**
11145
+ *
11146
+ * @summary Update the specified access to User for a Solution
9265
11147
  * @param {string} organizationId the Organization identifier
9266
11148
  * @param {string} solutionId the Solution identifier
9267
- * @param {Solution} solution the new Solution details.
11149
+ * @param {string} identityId the User identifier
11150
+ * @param {SolutionRole} solutionRole The new Solution Access Control
9268
11151
  * @param {*} [options] Override http request option.
9269
11152
  * @throws {RequiredError}
9270
11153
  */
9271
- updateSolution: async (organizationId: string, solutionId: string, solution: Solution, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11154
+ updateSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9272
11155
  // verify required parameter 'organizationId' is not null or undefined
9273
- assertParamExists('updateSolution', 'organizationId', organizationId)
11156
+ assertParamExists('updateSolutionAccessControl', 'organizationId', organizationId)
9274
11157
  // verify required parameter 'solutionId' is not null or undefined
9275
- assertParamExists('updateSolution', 'solutionId', solutionId)
9276
- // verify required parameter 'solution' is not null or undefined
9277
- assertParamExists('updateSolution', 'solution', solution)
9278
- const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}`
11158
+ assertParamExists('updateSolutionAccessControl', 'solutionId', solutionId)
11159
+ // verify required parameter 'identityId' is not null or undefined
11160
+ assertParamExists('updateSolutionAccessControl', 'identityId', identityId)
11161
+ // verify required parameter 'solutionRole' is not null or undefined
11162
+ assertParamExists('updateSolutionAccessControl', 'solutionRole', solutionRole)
11163
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
9279
11164
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9280
- .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
11165
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
11166
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
9281
11167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9282
11168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9283
11169
  let baseOptions;
@@ -9300,7 +11186,7 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
9300
11186
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9301
11187
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9302
11188
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9303
- localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
11189
+ localVarRequestOptions.data = serializeDataIfNeeded(solutionRole, localVarRequestOptions, configuration)
9304
11190
 
9305
11191
  return {
9306
11192
  url: toPathString(localVarUrlObj),
@@ -9469,6 +11355,19 @@ export const SolutionApiFp = function(configuration?: Configuration) {
9469
11355
  const localVarAxiosArgs = await localVarAxiosParamCreator.addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options);
9470
11356
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9471
11357
  },
11358
+ /**
11359
+ *
11360
+ * @summary Add a control access to the Solution
11361
+ * @param {string} organizationId the Organization identifier
11362
+ * @param {string} solutionId the Solution identifier
11363
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
11364
+ * @param {*} [options] Override http request option.
11365
+ * @throws {RequiredError}
11366
+ */
11367
+ async addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
11368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options);
11369
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11370
+ },
9472
11371
  /**
9473
11372
  *
9474
11373
  * @summary Register a new solution
@@ -9547,14 +11446,27 @@ export const SolutionApiFp = function(configuration?: Configuration) {
9547
11446
  },
9548
11447
  /**
9549
11448
  *
9550
- * @summary Import a solution
11449
+ * @summary Get a control access for the Solution
11450
+ * @param {string} organizationId the Organization identifier
11451
+ * @param {string} solutionId the Solution identifier
11452
+ * @param {string} identityId the User identifier
11453
+ * @param {*} [options] Override http request option.
11454
+ * @throws {RequiredError}
11455
+ */
11456
+ async getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
11457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSolutionAccessControl(organizationId, solutionId, identityId, options);
11458
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11459
+ },
11460
+ /**
11461
+ *
11462
+ * @summary Get the Solution security users list
9551
11463
  * @param {string} organizationId the Organization identifier
9552
- * @param {Solution} solution the Solution to import
11464
+ * @param {string} solutionId the Solution identifier
9553
11465
  * @param {*} [options] Override http request option.
9554
11466
  * @throws {RequiredError}
9555
11467
  */
9556
- async importSolution(organizationId: string, solution: Solution, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Solution>> {
9557
- const localVarAxiosArgs = await localVarAxiosParamCreator.importSolution(organizationId, solution, options);
11468
+ async getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
11469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSolutionSecurityUsers(organizationId, solutionId, options);
9558
11470
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9559
11471
  },
9560
11472
  /**
@@ -9593,6 +11505,19 @@ export const SolutionApiFp = function(configuration?: Configuration) {
9593
11505
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllSolutionParameters(organizationId, solutionId, options);
9594
11506
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9595
11507
  },
11508
+ /**
11509
+ *
11510
+ * @summary Remove the specified access from the given Organization Solution
11511
+ * @param {string} organizationId the Organization identifier
11512
+ * @param {string} solutionId the Solution identifier
11513
+ * @param {string} identityId the User identifier
11514
+ * @param {*} [options] Override http request option.
11515
+ * @throws {RequiredError}
11516
+ */
11517
+ async removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
11518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeSolutionAccessControl(organizationId, solutionId, identityId, options);
11519
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11520
+ },
9596
11521
  /**
9597
11522
  *
9598
11523
  * @summary Update a solution
@@ -9606,6 +11531,20 @@ export const SolutionApiFp = function(configuration?: Configuration) {
9606
11531
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateSolution(organizationId, solutionId, solution, options);
9607
11532
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9608
11533
  },
11534
+ /**
11535
+ *
11536
+ * @summary Update the specified access to User for a Solution
11537
+ * @param {string} organizationId the Organization identifier
11538
+ * @param {string} solutionId the Solution identifier
11539
+ * @param {string} identityId the User identifier
11540
+ * @param {SolutionRole} solutionRole The new Solution Access Control
11541
+ * @param {*} [options] Override http request option.
11542
+ * @throws {RequiredError}
11543
+ */
11544
+ async updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
11545
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options);
11546
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11547
+ },
9609
11548
  /**
9610
11549
  *
9611
11550
  * @summary Update the specified Solution Run Template
@@ -9682,6 +11621,18 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9682
11621
  addOrReplaceRunTemplates(organizationId: string, solutionId: string, runTemplate: Array<RunTemplate>, options?: any): AxiosPromise<Array<RunTemplate>> {
9683
11622
  return localVarFp.addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then((request) => request(axios, basePath));
9684
11623
  },
11624
+ /**
11625
+ *
11626
+ * @summary Add a control access to the Solution
11627
+ * @param {string} organizationId the Organization identifier
11628
+ * @param {string} solutionId the Solution identifier
11629
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
11630
+ * @param {*} [options] Override http request option.
11631
+ * @throws {RequiredError}
11632
+ */
11633
+ addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: any): AxiosPromise<SolutionAccessControl> {
11634
+ return localVarFp.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then((request) => request(axios, basePath));
11635
+ },
9685
11636
  /**
9686
11637
  *
9687
11638
  * @summary Register a new solution
@@ -9754,14 +11705,26 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9754
11705
  },
9755
11706
  /**
9756
11707
  *
9757
- * @summary Import a solution
11708
+ * @summary Get a control access for the Solution
11709
+ * @param {string} organizationId the Organization identifier
11710
+ * @param {string} solutionId the Solution identifier
11711
+ * @param {string} identityId the User identifier
11712
+ * @param {*} [options] Override http request option.
11713
+ * @throws {RequiredError}
11714
+ */
11715
+ getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: any): AxiosPromise<SolutionAccessControl> {
11716
+ return localVarFp.getSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(axios, basePath));
11717
+ },
11718
+ /**
11719
+ *
11720
+ * @summary Get the Solution security users list
9758
11721
  * @param {string} organizationId the Organization identifier
9759
- * @param {Solution} solution the Solution to import
11722
+ * @param {string} solutionId the Solution identifier
9760
11723
  * @param {*} [options] Override http request option.
9761
11724
  * @throws {RequiredError}
9762
11725
  */
9763
- importSolution(organizationId: string, solution: Solution, options?: any): AxiosPromise<Solution> {
9764
- return localVarFp.importSolution(organizationId, solution, options).then((request) => request(axios, basePath));
11726
+ getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: any): AxiosPromise<Array<string>> {
11727
+ return localVarFp.getSolutionSecurityUsers(organizationId, solutionId, options).then((request) => request(axios, basePath));
9765
11728
  },
9766
11729
  /**
9767
11730
  *
@@ -9796,6 +11759,18 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9796
11759
  removeAllSolutionParameters(organizationId: string, solutionId: string, options?: any): AxiosPromise<void> {
9797
11760
  return localVarFp.removeAllSolutionParameters(organizationId, solutionId, options).then((request) => request(axios, basePath));
9798
11761
  },
11762
+ /**
11763
+ *
11764
+ * @summary Remove the specified access from the given Organization Solution
11765
+ * @param {string} organizationId the Organization identifier
11766
+ * @param {string} solutionId the Solution identifier
11767
+ * @param {string} identityId the User identifier
11768
+ * @param {*} [options] Override http request option.
11769
+ * @throws {RequiredError}
11770
+ */
11771
+ removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: any): AxiosPromise<void> {
11772
+ return localVarFp.removeSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(axios, basePath));
11773
+ },
9799
11774
  /**
9800
11775
  *
9801
11776
  * @summary Update a solution
@@ -9808,6 +11783,19 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9808
11783
  updateSolution(organizationId: string, solutionId: string, solution: Solution, options?: any): AxiosPromise<Solution> {
9809
11784
  return localVarFp.updateSolution(organizationId, solutionId, solution, options).then((request) => request(axios, basePath));
9810
11785
  },
11786
+ /**
11787
+ *
11788
+ * @summary Update the specified access to User for a Solution
11789
+ * @param {string} organizationId the Organization identifier
11790
+ * @param {string} solutionId the Solution identifier
11791
+ * @param {string} identityId the User identifier
11792
+ * @param {SolutionRole} solutionRole The new Solution Access Control
11793
+ * @param {*} [options] Override http request option.
11794
+ * @throws {RequiredError}
11795
+ */
11796
+ updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: any): AxiosPromise<SolutionAccessControl> {
11797
+ return localVarFp.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then((request) => request(axios, basePath));
11798
+ },
9811
11799
  /**
9812
11800
  *
9813
11801
  * @summary Update the specified Solution Run Template
@@ -9888,6 +11876,20 @@ export class SolutionApi extends BaseAPI {
9888
11876
  return SolutionApiFp(this.configuration).addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then((request) => request(this.axios, this.basePath));
9889
11877
  }
9890
11878
 
11879
+ /**
11880
+ *
11881
+ * @summary Add a control access to the Solution
11882
+ * @param {string} organizationId the Organization identifier
11883
+ * @param {string} solutionId the Solution identifier
11884
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
11885
+ * @param {*} [options] Override http request option.
11886
+ * @throws {RequiredError}
11887
+ * @memberof SolutionApi
11888
+ */
11889
+ public addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: AxiosRequestConfig) {
11890
+ return SolutionApiFp(this.configuration).addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then((request) => request(this.axios, this.basePath));
11891
+ }
11892
+
9891
11893
  /**
9892
11894
  *
9893
11895
  * @summary Register a new solution
@@ -9972,15 +11974,29 @@ export class SolutionApi extends BaseAPI {
9972
11974
 
9973
11975
  /**
9974
11976
  *
9975
- * @summary Import a solution
11977
+ * @summary Get a control access for the Solution
11978
+ * @param {string} organizationId the Organization identifier
11979
+ * @param {string} solutionId the Solution identifier
11980
+ * @param {string} identityId the User identifier
11981
+ * @param {*} [options] Override http request option.
11982
+ * @throws {RequiredError}
11983
+ * @memberof SolutionApi
11984
+ */
11985
+ public getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig) {
11986
+ return SolutionApiFp(this.configuration).getSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(this.axios, this.basePath));
11987
+ }
11988
+
11989
+ /**
11990
+ *
11991
+ * @summary Get the Solution security users list
9976
11992
  * @param {string} organizationId the Organization identifier
9977
- * @param {Solution} solution the Solution to import
11993
+ * @param {string} solutionId the Solution identifier
9978
11994
  * @param {*} [options] Override http request option.
9979
11995
  * @throws {RequiredError}
9980
11996
  * @memberof SolutionApi
9981
11997
  */
9982
- public importSolution(organizationId: string, solution: Solution, options?: AxiosRequestConfig) {
9983
- return SolutionApiFp(this.configuration).importSolution(organizationId, solution, options).then((request) => request(this.axios, this.basePath));
11998
+ public getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: AxiosRequestConfig) {
11999
+ return SolutionApiFp(this.configuration).getSolutionSecurityUsers(organizationId, solutionId, options).then((request) => request(this.axios, this.basePath));
9984
12000
  }
9985
12001
 
9986
12002
  /**
@@ -10022,6 +12038,20 @@ export class SolutionApi extends BaseAPI {
10022
12038
  return SolutionApiFp(this.configuration).removeAllSolutionParameters(organizationId, solutionId, options).then((request) => request(this.axios, this.basePath));
10023
12039
  }
10024
12040
 
12041
+ /**
12042
+ *
12043
+ * @summary Remove the specified access from the given Organization Solution
12044
+ * @param {string} organizationId the Organization identifier
12045
+ * @param {string} solutionId the Solution identifier
12046
+ * @param {string} identityId the User identifier
12047
+ * @param {*} [options] Override http request option.
12048
+ * @throws {RequiredError}
12049
+ * @memberof SolutionApi
12050
+ */
12051
+ public removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig) {
12052
+ return SolutionApiFp(this.configuration).removeSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(this.axios, this.basePath));
12053
+ }
12054
+
10025
12055
  /**
10026
12056
  *
10027
12057
  * @summary Update a solution
@@ -10036,6 +12066,21 @@ export class SolutionApi extends BaseAPI {
10036
12066
  return SolutionApiFp(this.configuration).updateSolution(organizationId, solutionId, solution, options).then((request) => request(this.axios, this.basePath));
10037
12067
  }
10038
12068
 
12069
+ /**
12070
+ *
12071
+ * @summary Update the specified access to User for a Solution
12072
+ * @param {string} organizationId the Organization identifier
12073
+ * @param {string} solutionId the Solution identifier
12074
+ * @param {string} identityId the User identifier
12075
+ * @param {SolutionRole} solutionRole The new Solution Access Control
12076
+ * @param {*} [options] Override http request option.
12077
+ * @throws {RequiredError}
12078
+ * @memberof SolutionApi
12079
+ */
12080
+ public updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: AxiosRequestConfig) {
12081
+ return SolutionApiFp(this.configuration).updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then((request) => request(this.axios, this.basePath));
12082
+ }
12083
+
10039
12084
  /**
10040
12085
  *
10041
12086
  * @summary Update the specified Solution Run Template
@@ -10274,7 +12319,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
10274
12319
  };
10275
12320
  },
10276
12321
  /**
10277
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
12322
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
10278
12323
  * @summary Create a new graph
10279
12324
  * @param {string} organizationId the Organization identifier
10280
12325
  * @param {string} graphId the Graph Identifier
@@ -10547,50 +12592,6 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
10547
12592
  options: localVarRequestOptions,
10548
12593
  };
10549
12594
  },
10550
- /**
10551
- * Import a new version of a twin graph
10552
- * @summary Import a new version of a twin graph
10553
- * @param {string} organizationId the Organization identifier
10554
- * @param {TwinGraphImport} twinGraphImport the graph to import
10555
- * @param {*} [options] Override http request option.
10556
- * @throws {RequiredError}
10557
- */
10558
- importGraph: async (organizationId: string, twinGraphImport: TwinGraphImport, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10559
- // verify required parameter 'organizationId' is not null or undefined
10560
- assertParamExists('importGraph', 'organizationId', organizationId)
10561
- // verify required parameter 'twinGraphImport' is not null or undefined
10562
- assertParamExists('importGraph', 'twinGraphImport', twinGraphImport)
10563
- const localVarPath = `/organizations/{organization_id}/twingraph/import`
10564
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10565
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10566
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10567
- let baseOptions;
10568
- if (configuration) {
10569
- baseOptions = configuration.baseOptions;
10570
- }
10571
-
10572
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10573
- const localVarHeaderParameter = {} as any;
10574
- const localVarQueryParameter = {} as any;
10575
-
10576
- // authentication oAuth2AuthCode required
10577
- // oauth required
10578
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10579
-
10580
-
10581
-
10582
- localVarHeaderParameter['Content-Type'] = 'application/json';
10583
-
10584
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10585
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10586
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10587
- localVarRequestOptions.data = serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration)
10588
-
10589
- return {
10590
- url: toPathString(localVarUrlObj),
10591
- options: localVarRequestOptions,
10592
- };
10593
- },
10594
12595
  /**
10595
12596
  * Get the status of a job
10596
12597
  * @summary Get the status of a job
@@ -10845,7 +12846,7 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
10845
12846
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10846
12847
  },
10847
12848
  /**
10848
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
12849
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
10849
12850
  * @summary Create a new graph
10850
12851
  * @param {string} organizationId the Organization identifier
10851
12852
  * @param {string} graphId the Graph Identifier
@@ -10920,18 +12921,6 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
10920
12921
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
10921
12922
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10922
12923
  },
10923
- /**
10924
- * Import a new version of a twin graph
10925
- * @summary Import a new version of a twin graph
10926
- * @param {string} organizationId the Organization identifier
10927
- * @param {TwinGraphImport} twinGraphImport the graph to import
10928
- * @param {*} [options] Override http request option.
10929
- * @throws {RequiredError}
10930
- */
10931
- async importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphImportInfo>> {
10932
- const localVarAxiosArgs = await localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options);
10933
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10934
- },
10935
12924
  /**
10936
12925
  * Get the status of a job
10937
12926
  * @summary Get the status of a job
@@ -11044,7 +13033,7 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
11044
13033
  return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
11045
13034
  },
11046
13035
  /**
11047
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
13036
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
11048
13037
  * @summary Create a new graph
11049
13038
  * @param {string} organizationId the Organization identifier
11050
13039
  * @param {string} graphId the Graph Identifier
@@ -11113,17 +13102,6 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
11113
13102
  getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
11114
13103
  return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
11115
13104
  },
11116
- /**
11117
- * Import a new version of a twin graph
11118
- * @summary Import a new version of a twin graph
11119
- * @param {string} organizationId the Organization identifier
11120
- * @param {TwinGraphImport} twinGraphImport the graph to import
11121
- * @param {*} [options] Override http request option.
11122
- * @throws {RequiredError}
11123
- */
11124
- importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: any): AxiosPromise<TwinGraphImportInfo> {
11125
- return localVarFp.importGraph(organizationId, twinGraphImport, options).then((request) => request(axios, basePath));
11126
- },
11127
13105
  /**
11128
13106
  * Get the status of a job
11129
13107
  * @summary Get the status of a job
@@ -11240,7 +13218,7 @@ export class TwingraphApi extends BaseAPI {
11240
13218
  }
11241
13219
 
11242
13220
  /**
11243
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
13221
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
11244
13222
  * @summary Create a new graph
11245
13223
  * @param {string} organizationId the Organization identifier
11246
13224
  * @param {string} graphId the Graph Identifier
@@ -11321,19 +13299,6 @@ export class TwingraphApi extends BaseAPI {
11321
13299
  return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
11322
13300
  }
11323
13301
 
11324
- /**
11325
- * Import a new version of a twin graph
11326
- * @summary Import a new version of a twin graph
11327
- * @param {string} organizationId the Organization identifier
11328
- * @param {TwinGraphImport} twinGraphImport the graph to import
11329
- * @param {*} [options] Override http request option.
11330
- * @throws {RequiredError}
11331
- * @memberof TwingraphApi
11332
- */
11333
- public importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig) {
11334
- return TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then((request) => request(this.axios, this.basePath));
11335
- }
11336
-
11337
13302
  /**
11338
13303
  * Get the status of a job
11339
13304
  * @summary Get the status of a job
@@ -12795,50 +14760,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
12795
14760
  options: localVarRequestOptions,
12796
14761
  };
12797
14762
  },
12798
- /**
12799
- *
12800
- * @summary Import a workspace
12801
- * @param {string} organizationId the Organization identifier
12802
- * @param {Workspace} workspace the Workspace to import
12803
- * @param {*} [options] Override http request option.
12804
- * @throws {RequiredError}
12805
- */
12806
- importWorkspace: async (organizationId: string, workspace: Workspace, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12807
- // verify required parameter 'organizationId' is not null or undefined
12808
- assertParamExists('importWorkspace', 'organizationId', organizationId)
12809
- // verify required parameter 'workspace' is not null or undefined
12810
- assertParamExists('importWorkspace', 'workspace', workspace)
12811
- const localVarPath = `/organizations/{organization_id}/workspaces/import`
12812
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
12813
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12814
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12815
- let baseOptions;
12816
- if (configuration) {
12817
- baseOptions = configuration.baseOptions;
12818
- }
12819
-
12820
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12821
- const localVarHeaderParameter = {} as any;
12822
- const localVarQueryParameter = {} as any;
12823
-
12824
- // authentication oAuth2AuthCode required
12825
- // oauth required
12826
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
12827
-
12828
-
12829
-
12830
- localVarHeaderParameter['Content-Type'] = 'application/json';
12831
-
12832
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12833
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12834
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12835
- localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
12836
-
12837
- return {
12838
- url: toPathString(localVarUrlObj),
12839
- options: localVarRequestOptions,
12840
- };
12841
- },
12842
14763
  /**
12843
14764
  *
12844
14765
  * @summary Remove the specified access from the given Organization Workspace
@@ -13281,18 +15202,6 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
13281
15202
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options);
13282
15203
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13283
15204
  },
13284
- /**
13285
- *
13286
- * @summary Import a workspace
13287
- * @param {string} organizationId the Organization identifier
13288
- * @param {Workspace} workspace the Workspace to import
13289
- * @param {*} [options] Override http request option.
13290
- * @throws {RequiredError}
13291
- */
13292
- async importWorkspace(organizationId: string, workspace: Workspace, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
13293
- const localVarAxiosArgs = await localVarAxiosParamCreator.importWorkspace(organizationId, workspace, options);
13294
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13295
- },
13296
15205
  /**
13297
15206
  *
13298
15207
  * @summary Remove the specified access from the given Organization Workspace
@@ -13532,17 +15441,6 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
13532
15441
  getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<string>> {
13533
15442
  return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(axios, basePath));
13534
15443
  },
13535
- /**
13536
- *
13537
- * @summary Import a workspace
13538
- * @param {string} organizationId the Organization identifier
13539
- * @param {Workspace} workspace the Workspace to import
13540
- * @param {*} [options] Override http request option.
13541
- * @throws {RequiredError}
13542
- */
13543
- importWorkspace(organizationId: string, workspace: Workspace, options?: any): AxiosPromise<Workspace> {
13544
- return localVarFp.importWorkspace(organizationId, workspace, options).then((request) => request(axios, basePath));
13545
- },
13546
15444
  /**
13547
15445
  *
13548
15446
  * @summary Remove the specified access from the given Organization Workspace
@@ -13805,19 +15703,6 @@ export class WorkspaceApi extends BaseAPI {
13805
15703
  return WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
13806
15704
  }
13807
15705
 
13808
- /**
13809
- *
13810
- * @summary Import a workspace
13811
- * @param {string} organizationId the Organization identifier
13812
- * @param {Workspace} workspace the Workspace to import
13813
- * @param {*} [options] Override http request option.
13814
- * @throws {RequiredError}
13815
- * @memberof WorkspaceApi
13816
- */
13817
- public importWorkspace(organizationId: string, workspace: Workspace, options?: AxiosRequestConfig) {
13818
- return WorkspaceApiFp(this.configuration).importWorkspace(organizationId, workspace, options).then((request) => request(this.axios, this.basePath));
13819
- }
13820
-
13821
15706
  /**
13822
15707
  *
13823
15708
  * @summary Remove the specified access from the given Organization Workspace