@cosmotech/api-ts 2.4.5-private → 3.0.6-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +2616 -743
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1448 -388
- package/dist/api.js +2627 -779
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 3.0.6-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -275,6 +275,48 @@ 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
|
+
*
|
|
298
|
+
* @type {DatasetSourceType}
|
|
299
|
+
* @memberof Dataset
|
|
300
|
+
*/
|
|
301
|
+
'sourceType'?: DatasetSourceType;
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @type {SourceInfo}
|
|
305
|
+
* @memberof Dataset
|
|
306
|
+
*/
|
|
307
|
+
'source'?: SourceInfo;
|
|
308
|
+
/**
|
|
309
|
+
* the Dataset status
|
|
310
|
+
* @type {string}
|
|
311
|
+
* @memberof Dataset
|
|
312
|
+
*/
|
|
313
|
+
'status'?: DatasetStatusEnum;
|
|
314
|
+
/**
|
|
315
|
+
* the list of queries
|
|
316
|
+
* @type {Array<string>}
|
|
317
|
+
* @memberof Dataset
|
|
318
|
+
*/
|
|
319
|
+
'queries'?: Array<string>;
|
|
278
320
|
/**
|
|
279
321
|
* the list of tags
|
|
280
322
|
* @type {Array<string>}
|
|
@@ -305,6 +347,41 @@ export interface Dataset {
|
|
|
305
347
|
* @memberof Dataset
|
|
306
348
|
*/
|
|
307
349
|
'compatibility'?: Array<DatasetCompatibility>;
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {DatasetSecurity}
|
|
353
|
+
* @memberof Dataset
|
|
354
|
+
*/
|
|
355
|
+
'security'?: DatasetSecurity;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export const DatasetStatusEnum = {
|
|
359
|
+
Draft: 'DRAFT',
|
|
360
|
+
Pending: 'PENDING',
|
|
361
|
+
Error: 'ERROR',
|
|
362
|
+
Ready: 'READY'
|
|
363
|
+
} as const;
|
|
364
|
+
|
|
365
|
+
export type DatasetStatusEnum = typeof DatasetStatusEnum[keyof typeof DatasetStatusEnum];
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* a Dataset access control item
|
|
369
|
+
* @export
|
|
370
|
+
* @interface DatasetAccessControl
|
|
371
|
+
*/
|
|
372
|
+
export interface DatasetAccessControl {
|
|
373
|
+
/**
|
|
374
|
+
* the identity id
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @memberof DatasetAccessControl
|
|
377
|
+
*/
|
|
378
|
+
'id': string;
|
|
379
|
+
/**
|
|
380
|
+
* a role
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof DatasetAccessControl
|
|
383
|
+
*/
|
|
384
|
+
'role': string;
|
|
308
385
|
}
|
|
309
386
|
/**
|
|
310
387
|
* a Dataset compatibility constraint to a Solution version open range
|
|
@@ -387,6 +464,19 @@ export interface DatasetCopyParameters {
|
|
|
387
464
|
*/
|
|
388
465
|
'options'?: { [key: string]: object; };
|
|
389
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* the Dataset Role
|
|
469
|
+
* @export
|
|
470
|
+
* @interface DatasetRole
|
|
471
|
+
*/
|
|
472
|
+
export interface DatasetRole {
|
|
473
|
+
/**
|
|
474
|
+
* the Dataset Role
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof DatasetRole
|
|
477
|
+
*/
|
|
478
|
+
'role': string;
|
|
479
|
+
}
|
|
390
480
|
/**
|
|
391
481
|
* the search options
|
|
392
482
|
* @export
|
|
@@ -400,6 +490,93 @@ export interface DatasetSearch {
|
|
|
400
490
|
*/
|
|
401
491
|
'datasetTags': Array<string>;
|
|
402
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* the dataset security information
|
|
495
|
+
* @export
|
|
496
|
+
* @interface DatasetSecurity
|
|
497
|
+
*/
|
|
498
|
+
export interface DatasetSecurity {
|
|
499
|
+
/**
|
|
500
|
+
* the role by default
|
|
501
|
+
* @type {string}
|
|
502
|
+
* @memberof DatasetSecurity
|
|
503
|
+
*/
|
|
504
|
+
'default': string;
|
|
505
|
+
/**
|
|
506
|
+
* the list which can access this Dataset with detailed access control information
|
|
507
|
+
* @type {Array<DatasetAccessControl>}
|
|
508
|
+
* @memberof DatasetSecurity
|
|
509
|
+
*/
|
|
510
|
+
'accessControlList': Array<DatasetAccessControl>;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* the Dataset Source Type
|
|
514
|
+
* @export
|
|
515
|
+
* @enum {string}
|
|
516
|
+
*/
|
|
517
|
+
|
|
518
|
+
export const DatasetSourceType = {
|
|
519
|
+
Adt: 'ADT',
|
|
520
|
+
AzureStorage: 'AzureStorage',
|
|
521
|
+
File: 'File',
|
|
522
|
+
None: 'None',
|
|
523
|
+
Twincache: 'Twincache'
|
|
524
|
+
} as const;
|
|
525
|
+
|
|
526
|
+
export type DatasetSourceType = typeof DatasetSourceType[keyof typeof DatasetSourceType];
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* a twin graph hash
|
|
531
|
+
* @export
|
|
532
|
+
* @interface DatasetTwinGraphHash
|
|
533
|
+
*/
|
|
534
|
+
export interface DatasetTwinGraphHash {
|
|
535
|
+
/**
|
|
536
|
+
* the hash of the graph
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof DatasetTwinGraphHash
|
|
539
|
+
*/
|
|
540
|
+
'hash'?: string;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* a twin graph query in cypher language
|
|
544
|
+
* @export
|
|
545
|
+
* @interface DatasetTwinGraphInfo
|
|
546
|
+
*/
|
|
547
|
+
export interface DatasetTwinGraphInfo {
|
|
548
|
+
/**
|
|
549
|
+
* the import job id
|
|
550
|
+
* @type {string}
|
|
551
|
+
* @memberof DatasetTwinGraphInfo
|
|
552
|
+
*/
|
|
553
|
+
'jobId'?: string;
|
|
554
|
+
/**
|
|
555
|
+
* the Dataset id
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof DatasetTwinGraphInfo
|
|
558
|
+
*/
|
|
559
|
+
'datasetId'?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Twingraph status
|
|
562
|
+
* @type {string}
|
|
563
|
+
* @memberof DatasetTwinGraphInfo
|
|
564
|
+
*/
|
|
565
|
+
'status'?: string;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* a twin graph query in cypher language
|
|
569
|
+
* @export
|
|
570
|
+
* @interface DatasetTwinGraphQuery
|
|
571
|
+
*/
|
|
572
|
+
export interface DatasetTwinGraphQuery {
|
|
573
|
+
/**
|
|
574
|
+
* the query in cypher language
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof DatasetTwinGraphQuery
|
|
577
|
+
*/
|
|
578
|
+
'query': string;
|
|
579
|
+
}
|
|
403
580
|
/**
|
|
404
581
|
* Configuration of scenario runs deletion automatic mecanism
|
|
405
582
|
* @export
|
|
@@ -817,6 +994,12 @@ export interface RunTemplate {
|
|
|
817
994
|
* @memberof RunTemplate
|
|
818
995
|
*/
|
|
819
996
|
'runTemplateSourceDir'?: string;
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @type {RunTemplateOrchestrator}
|
|
1000
|
+
* @memberof RunTemplate
|
|
1001
|
+
*/
|
|
1002
|
+
'orchestratorType'?: RunTemplateOrchestrator;
|
|
820
1003
|
/**
|
|
821
1004
|
* an optional duration in seconds in which a workflow is allowed to run
|
|
822
1005
|
* @type {number}
|
|
@@ -848,6 +1031,20 @@ export const RunTemplateHandlerId = {
|
|
|
848
1031
|
export type RunTemplateHandlerId = typeof RunTemplateHandlerId[keyof typeof RunTemplateHandlerId];
|
|
849
1032
|
|
|
850
1033
|
|
|
1034
|
+
/**
|
|
1035
|
+
* the Orchestrator to use for the Run Template
|
|
1036
|
+
* @export
|
|
1037
|
+
* @enum {string}
|
|
1038
|
+
*/
|
|
1039
|
+
|
|
1040
|
+
export const RunTemplateOrchestrator = {
|
|
1041
|
+
ArgoWorkflow: 'argoWorkflow',
|
|
1042
|
+
CsmOrc: 'csmOrc'
|
|
1043
|
+
} as const;
|
|
1044
|
+
|
|
1045
|
+
export type RunTemplateOrchestrator = typeof RunTemplateOrchestrator[keyof typeof RunTemplateOrchestrator];
|
|
1046
|
+
|
|
1047
|
+
|
|
851
1048
|
/**
|
|
852
1049
|
* a Run Template Parameter
|
|
853
1050
|
* @export
|
|
@@ -1447,6 +1644,12 @@ export interface ScenarioRun {
|
|
|
1447
1644
|
* @memberof ScenarioRun
|
|
1448
1645
|
*/
|
|
1449
1646
|
'sdkVersion'?: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* the ScenarioRun creation date
|
|
1649
|
+
* @type {string}
|
|
1650
|
+
* @memberof ScenarioRun
|
|
1651
|
+
*/
|
|
1652
|
+
'createdAt'?: string;
|
|
1450
1653
|
/**
|
|
1451
1654
|
* set to true if the run template does not use any Datawarehouse consumers (AMQP consumers for Azure)
|
|
1452
1655
|
* @type {boolean}
|
|
@@ -1638,6 +1841,44 @@ export interface ScenarioRunLogs {
|
|
|
1638
1841
|
*/
|
|
1639
1842
|
'containers'?: { [key: string]: ScenarioRunContainerLogs; };
|
|
1640
1843
|
}
|
|
1844
|
+
/**
|
|
1845
|
+
* the memory and CPU requested by the pod
|
|
1846
|
+
* @export
|
|
1847
|
+
* @interface ScenarioRunResourceRequested
|
|
1848
|
+
*/
|
|
1849
|
+
export interface ScenarioRunResourceRequested {
|
|
1850
|
+
/**
|
|
1851
|
+
* the cpu requested
|
|
1852
|
+
* @type {number}
|
|
1853
|
+
* @memberof ScenarioRunResourceRequested
|
|
1854
|
+
*/
|
|
1855
|
+
'cpu'?: number;
|
|
1856
|
+
/**
|
|
1857
|
+
* the memory requested
|
|
1858
|
+
* @type {number}
|
|
1859
|
+
* @memberof ScenarioRunResourceRequested
|
|
1860
|
+
*/
|
|
1861
|
+
'memory'?: number;
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* a ScenarioRunProbeResult with all ScenarioRunResult
|
|
1865
|
+
* @export
|
|
1866
|
+
* @interface ScenarioRunResult
|
|
1867
|
+
*/
|
|
1868
|
+
export interface ScenarioRunResult {
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @type {string}
|
|
1872
|
+
* @memberof ScenarioRunResult
|
|
1873
|
+
*/
|
|
1874
|
+
'id'?: string;
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
1878
|
+
* @memberof ScenarioRunResult
|
|
1879
|
+
*/
|
|
1880
|
+
'results'?: Array<{ [key: string]: string; }>;
|
|
1881
|
+
}
|
|
1641
1882
|
/**
|
|
1642
1883
|
* the search options
|
|
1643
1884
|
* @export
|
|
@@ -1867,6 +2108,18 @@ export interface ScenarioRunStatusNode {
|
|
|
1867
2108
|
* @memberof ScenarioRunStatusNode
|
|
1868
2109
|
*/
|
|
1869
2110
|
'containerName'?: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* the list of outbound nodes
|
|
2113
|
+
* @type {Array<string>}
|
|
2114
|
+
* @memberof ScenarioRunStatusNode
|
|
2115
|
+
*/
|
|
2116
|
+
'outboundNodes'?: Array<string>;
|
|
2117
|
+
/**
|
|
2118
|
+
*
|
|
2119
|
+
* @type {ScenarioRunResourceRequested}
|
|
2120
|
+
* @memberof ScenarioRunStatusNode
|
|
2121
|
+
*/
|
|
2122
|
+
'resourcesDuration'?: ScenarioRunResourceRequested;
|
|
1870
2123
|
/**
|
|
1871
2124
|
* estimatedDuration in seconds
|
|
1872
2125
|
* @type {number}
|
|
@@ -2072,6 +2325,63 @@ export interface Solution {
|
|
|
2072
2325
|
* @memberof Solution
|
|
2073
2326
|
*/
|
|
2074
2327
|
'runTemplates'?: Array<RunTemplate>;
|
|
2328
|
+
/**
|
|
2329
|
+
*
|
|
2330
|
+
* @type {SolutionSecurity}
|
|
2331
|
+
* @memberof Solution
|
|
2332
|
+
*/
|
|
2333
|
+
'security'?: SolutionSecurity;
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* a Solution access control item
|
|
2337
|
+
* @export
|
|
2338
|
+
* @interface SolutionAccessControl
|
|
2339
|
+
*/
|
|
2340
|
+
export interface SolutionAccessControl {
|
|
2341
|
+
/**
|
|
2342
|
+
* the identity id
|
|
2343
|
+
* @type {string}
|
|
2344
|
+
* @memberof SolutionAccessControl
|
|
2345
|
+
*/
|
|
2346
|
+
'id': string;
|
|
2347
|
+
/**
|
|
2348
|
+
* a role
|
|
2349
|
+
* @type {string}
|
|
2350
|
+
* @memberof SolutionAccessControl
|
|
2351
|
+
*/
|
|
2352
|
+
'role': string;
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* the Solution Role
|
|
2356
|
+
* @export
|
|
2357
|
+
* @interface SolutionRole
|
|
2358
|
+
*/
|
|
2359
|
+
export interface SolutionRole {
|
|
2360
|
+
/**
|
|
2361
|
+
* the Solution Role
|
|
2362
|
+
* @type {string}
|
|
2363
|
+
* @memberof SolutionRole
|
|
2364
|
+
*/
|
|
2365
|
+
'role': string;
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* the Solution security information
|
|
2369
|
+
* @export
|
|
2370
|
+
* @interface SolutionSecurity
|
|
2371
|
+
*/
|
|
2372
|
+
export interface SolutionSecurity {
|
|
2373
|
+
/**
|
|
2374
|
+
* the role by default
|
|
2375
|
+
* @type {string}
|
|
2376
|
+
* @memberof SolutionSecurity
|
|
2377
|
+
*/
|
|
2378
|
+
'default': string;
|
|
2379
|
+
/**
|
|
2380
|
+
* the list which can access this Solution with detailed access control information
|
|
2381
|
+
* @type {Array<SolutionAccessControl>}
|
|
2382
|
+
* @memberof SolutionSecurity
|
|
2383
|
+
*/
|
|
2384
|
+
'accessControlList': Array<SolutionAccessControl>;
|
|
2075
2385
|
}
|
|
2076
2386
|
/**
|
|
2077
2387
|
* Source job import information
|
|
@@ -2097,21 +2407,38 @@ export interface SourceInfo {
|
|
|
2097
2407
|
* @memberof SourceInfo
|
|
2098
2408
|
*/
|
|
2099
2409
|
'path'?: string;
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
* a twin graph query in cypher language
|
|
2413
|
+
* @export
|
|
2414
|
+
* @interface SubDatasetGraphQuery
|
|
2415
|
+
*/
|
|
2416
|
+
export interface SubDatasetGraphQuery {
|
|
2100
2417
|
/**
|
|
2101
|
-
* the
|
|
2418
|
+
* the name of the subdataset
|
|
2102
2419
|
* @type {string}
|
|
2103
|
-
* @memberof
|
|
2420
|
+
* @memberof SubDatasetGraphQuery
|
|
2421
|
+
*/
|
|
2422
|
+
'name'?: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* the description of the subdataset
|
|
2425
|
+
* @type {string}
|
|
2426
|
+
* @memberof SubDatasetGraphQuery
|
|
2427
|
+
*/
|
|
2428
|
+
'description'?: string;
|
|
2429
|
+
/**
|
|
2430
|
+
* the query in cypher language
|
|
2431
|
+
* @type {Array<string>}
|
|
2432
|
+
* @memberof SubDatasetGraphQuery
|
|
2104
2433
|
*/
|
|
2105
|
-
'
|
|
2434
|
+
'queries'?: Array<string>;
|
|
2435
|
+
/**
|
|
2436
|
+
* is this the main dataset
|
|
2437
|
+
* @type {boolean}
|
|
2438
|
+
* @memberof SubDatasetGraphQuery
|
|
2439
|
+
*/
|
|
2440
|
+
'main'?: boolean;
|
|
2106
2441
|
}
|
|
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
2442
|
/**
|
|
2116
2443
|
* Processing result
|
|
2117
2444
|
* @export
|
|
@@ -2150,50 +2477,6 @@ export interface TwinGraphHash {
|
|
|
2150
2477
|
*/
|
|
2151
2478
|
'hash'?: string;
|
|
2152
2479
|
}
|
|
2153
|
-
/**
|
|
2154
|
-
* a twin graph import info
|
|
2155
|
-
* @export
|
|
2156
|
-
* @interface TwinGraphImport
|
|
2157
|
-
*/
|
|
2158
|
-
export interface TwinGraphImport {
|
|
2159
|
-
/**
|
|
2160
|
-
*
|
|
2161
|
-
* @type {SourceInfo}
|
|
2162
|
-
* @memberof TwinGraphImport
|
|
2163
|
-
*/
|
|
2164
|
-
'source': SourceInfo;
|
|
2165
|
-
/**
|
|
2166
|
-
* the graph id to import to
|
|
2167
|
-
* @type {string}
|
|
2168
|
-
* @memberof TwinGraphImport
|
|
2169
|
-
*/
|
|
2170
|
-
'graphId': string;
|
|
2171
|
-
/**
|
|
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
|
|
2173
|
-
* @type {string}
|
|
2174
|
-
* @memberof TwinGraphImport
|
|
2175
|
-
*/
|
|
2176
|
-
'version'?: string;
|
|
2177
|
-
}
|
|
2178
|
-
/**
|
|
2179
|
-
* a twin graph query in cypher language
|
|
2180
|
-
* @export
|
|
2181
|
-
* @interface TwinGraphImportInfo
|
|
2182
|
-
*/
|
|
2183
|
-
export interface TwinGraphImportInfo {
|
|
2184
|
-
/**
|
|
2185
|
-
* the import job id
|
|
2186
|
-
* @type {string}
|
|
2187
|
-
* @memberof TwinGraphImportInfo
|
|
2188
|
-
*/
|
|
2189
|
-
'jobId'?: string;
|
|
2190
|
-
/**
|
|
2191
|
-
* the twin graph name
|
|
2192
|
-
* @type {string}
|
|
2193
|
-
* @memberof TwinGraphImportInfo
|
|
2194
|
-
*/
|
|
2195
|
-
'graphName'?: string;
|
|
2196
|
-
}
|
|
2197
2480
|
/**
|
|
2198
2481
|
* a twin graph query in cypher language
|
|
2199
2482
|
* @export
|
|
@@ -2659,15 +2942,16 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2659
2942
|
},
|
|
2660
2943
|
/**
|
|
2661
2944
|
*
|
|
2662
|
-
* @summary
|
|
2663
|
-
* @param {
|
|
2945
|
+
* @summary Get the details of a connector
|
|
2946
|
+
* @param {string} connectorName the Connector name
|
|
2664
2947
|
* @param {*} [options] Override http request option.
|
|
2665
2948
|
* @throws {RequiredError}
|
|
2666
2949
|
*/
|
|
2667
|
-
|
|
2668
|
-
// verify required parameter '
|
|
2669
|
-
assertParamExists('
|
|
2670
|
-
const localVarPath = `/connectors/
|
|
2950
|
+
findConnectorByName: async (connectorName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2951
|
+
// verify required parameter 'connectorName' is not null or undefined
|
|
2952
|
+
assertParamExists('findConnectorByName', 'connectorName', connectorName)
|
|
2953
|
+
const localVarPath = `/connectors/name/{connector_name}`
|
|
2954
|
+
.replace(`{${"connector_name"}}`, encodeURIComponent(String(connectorName)));
|
|
2671
2955
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2672
2956
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2673
2957
|
let baseOptions;
|
|
@@ -2675,7 +2959,7 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2675
2959
|
baseOptions = configuration.baseOptions;
|
|
2676
2960
|
}
|
|
2677
2961
|
|
|
2678
|
-
const localVarRequestOptions = { method: '
|
|
2962
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2679
2963
|
const localVarHeaderParameter = {} as any;
|
|
2680
2964
|
const localVarQueryParameter = {} as any;
|
|
2681
2965
|
|
|
@@ -2685,12 +2969,9 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2685
2969
|
|
|
2686
2970
|
|
|
2687
2971
|
|
|
2688
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2689
|
-
|
|
2690
2972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2691
2973
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2692
2974
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2693
|
-
localVarRequestOptions.data = serializeDataIfNeeded(connector, localVarRequestOptions, configuration)
|
|
2694
2975
|
|
|
2695
2976
|
return {
|
|
2696
2977
|
url: toPathString(localVarUrlObj),
|
|
@@ -2810,13 +3091,13 @@ export const ConnectorApiFp = function(configuration?: Configuration) {
|
|
|
2810
3091
|
},
|
|
2811
3092
|
/**
|
|
2812
3093
|
*
|
|
2813
|
-
* @summary
|
|
2814
|
-
* @param {
|
|
3094
|
+
* @summary Get the details of a connector
|
|
3095
|
+
* @param {string} connectorName the Connector name
|
|
2815
3096
|
* @param {*} [options] Override http request option.
|
|
2816
3097
|
* @throws {RequiredError}
|
|
2817
3098
|
*/
|
|
2818
|
-
async
|
|
2819
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3099
|
+
async findConnectorByName(connectorName: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Connector>> {
|
|
3100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findConnectorByName(connectorName, options);
|
|
2820
3101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2821
3102
|
},
|
|
2822
3103
|
/**
|
|
@@ -2874,13 +3155,13 @@ export const ConnectorApiFactory = function (configuration?: Configuration, base
|
|
|
2874
3155
|
},
|
|
2875
3156
|
/**
|
|
2876
3157
|
*
|
|
2877
|
-
* @summary
|
|
2878
|
-
* @param {
|
|
3158
|
+
* @summary Get the details of a connector
|
|
3159
|
+
* @param {string} connectorName the Connector name
|
|
2879
3160
|
* @param {*} [options] Override http request option.
|
|
2880
3161
|
* @throws {RequiredError}
|
|
2881
3162
|
*/
|
|
2882
|
-
|
|
2883
|
-
return localVarFp.
|
|
3163
|
+
findConnectorByName(connectorName: string, options?: any): AxiosPromise<Connector> {
|
|
3164
|
+
return localVarFp.findConnectorByName(connectorName, options).then((request) => request(axios, basePath));
|
|
2884
3165
|
},
|
|
2885
3166
|
/**
|
|
2886
3167
|
*
|
|
@@ -2939,14 +3220,14 @@ export class ConnectorApi extends BaseAPI {
|
|
|
2939
3220
|
|
|
2940
3221
|
/**
|
|
2941
3222
|
*
|
|
2942
|
-
* @summary
|
|
2943
|
-
* @param {
|
|
3223
|
+
* @summary Get the details of a connector
|
|
3224
|
+
* @param {string} connectorName the Connector name
|
|
2944
3225
|
* @param {*} [options] Override http request option.
|
|
2945
3226
|
* @throws {RequiredError}
|
|
2946
3227
|
* @memberof ConnectorApi
|
|
2947
3228
|
*/
|
|
2948
|
-
public
|
|
2949
|
-
return ConnectorApiFp(this.configuration).
|
|
3229
|
+
public findConnectorByName(connectorName: string, options?: AxiosRequestConfig) {
|
|
3230
|
+
return ConnectorApiFp(this.configuration).findConnectorByName(connectorName, options).then((request) => request(this.axios, this.basePath));
|
|
2950
3231
|
}
|
|
2951
3232
|
|
|
2952
3233
|
/**
|
|
@@ -2981,6 +3262,54 @@ export class ConnectorApi extends BaseAPI {
|
|
|
2981
3262
|
*/
|
|
2982
3263
|
export const DatasetApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2983
3264
|
return {
|
|
3265
|
+
/**
|
|
3266
|
+
*
|
|
3267
|
+
* @summary Add a control access to the Dataset
|
|
3268
|
+
* @param {string} organizationId the Organization identifier
|
|
3269
|
+
* @param {string} datasetId the Dataset identifier
|
|
3270
|
+
* @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
|
|
3271
|
+
* @param {*} [options] Override http request option.
|
|
3272
|
+
* @throws {RequiredError}
|
|
3273
|
+
*/
|
|
3274
|
+
addDatasetAccessControl: async (organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3275
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3276
|
+
assertParamExists('addDatasetAccessControl', 'organizationId', organizationId)
|
|
3277
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3278
|
+
assertParamExists('addDatasetAccessControl', 'datasetId', datasetId)
|
|
3279
|
+
// verify required parameter 'datasetAccessControl' is not null or undefined
|
|
3280
|
+
assertParamExists('addDatasetAccessControl', 'datasetAccessControl', datasetAccessControl)
|
|
3281
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access`
|
|
3282
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3283
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
3284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3285
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3286
|
+
let baseOptions;
|
|
3287
|
+
if (configuration) {
|
|
3288
|
+
baseOptions = configuration.baseOptions;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3292
|
+
const localVarHeaderParameter = {} as any;
|
|
3293
|
+
const localVarQueryParameter = {} as any;
|
|
3294
|
+
|
|
3295
|
+
// authentication oAuth2AuthCode required
|
|
3296
|
+
// oauth required
|
|
3297
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3298
|
+
|
|
3299
|
+
|
|
3300
|
+
|
|
3301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3302
|
+
|
|
3303
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3305
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3306
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasetAccessControl, localVarRequestOptions, configuration)
|
|
3307
|
+
|
|
3308
|
+
return {
|
|
3309
|
+
url: toPathString(localVarUrlObj),
|
|
3310
|
+
options: localVarRequestOptions,
|
|
3311
|
+
};
|
|
3312
|
+
},
|
|
2984
3313
|
/**
|
|
2985
3314
|
*
|
|
2986
3315
|
* @summary Add Dataset Compatibility elements.
|
|
@@ -3118,19 +3447,22 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3118
3447
|
};
|
|
3119
3448
|
},
|
|
3120
3449
|
/**
|
|
3121
|
-
*
|
|
3122
|
-
* @summary
|
|
3450
|
+
* Run a query on a dataset
|
|
3451
|
+
* @summary Run a query on a dataset
|
|
3123
3452
|
* @param {string} organizationId the Organization identifier
|
|
3124
3453
|
* @param {string} datasetId the Dataset identifier
|
|
3454
|
+
* @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
|
|
3125
3455
|
* @param {*} [options] Override http request option.
|
|
3126
3456
|
* @throws {RequiredError}
|
|
3127
3457
|
*/
|
|
3128
|
-
|
|
3458
|
+
createSubDataset: async (organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3129
3459
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3130
|
-
assertParamExists('
|
|
3460
|
+
assertParamExists('createSubDataset', 'organizationId', organizationId)
|
|
3131
3461
|
// verify required parameter 'datasetId' is not null or undefined
|
|
3132
|
-
assertParamExists('
|
|
3133
|
-
|
|
3462
|
+
assertParamExists('createSubDataset', 'datasetId', datasetId)
|
|
3463
|
+
// verify required parameter 'subDatasetGraphQuery' is not null or undefined
|
|
3464
|
+
assertParamExists('createSubDataset', 'subDatasetGraphQuery', subDatasetGraphQuery)
|
|
3465
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/subdataset`
|
|
3134
3466
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3135
3467
|
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
3136
3468
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3140,7 +3472,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3140
3472
|
baseOptions = configuration.baseOptions;
|
|
3141
3473
|
}
|
|
3142
3474
|
|
|
3143
|
-
const localVarRequestOptions = { method: '
|
|
3475
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3144
3476
|
const localVarHeaderParameter = {} as any;
|
|
3145
3477
|
const localVarQueryParameter = {} as any;
|
|
3146
3478
|
|
|
@@ -3150,9 +3482,12 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3150
3482
|
|
|
3151
3483
|
|
|
3152
3484
|
|
|
3485
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3486
|
+
|
|
3153
3487
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3154
3488
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3155
3489
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3490
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subDatasetGraphQuery, localVarRequestOptions, configuration)
|
|
3156
3491
|
|
|
3157
3492
|
return {
|
|
3158
3493
|
url: toPathString(localVarUrlObj),
|
|
@@ -3160,19 +3495,28 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3160
3495
|
};
|
|
3161
3496
|
},
|
|
3162
3497
|
/**
|
|
3163
|
-
*
|
|
3164
|
-
* @summary
|
|
3498
|
+
* create new entities in a graph instance
|
|
3499
|
+
* @summary Create new entities in a graph instance
|
|
3165
3500
|
* @param {string} organizationId the Organization identifier
|
|
3166
|
-
* @param {
|
|
3167
|
-
* @param {
|
|
3501
|
+
* @param {string} datasetId the Dataset Identifier
|
|
3502
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
3503
|
+
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
3168
3504
|
* @param {*} [options] Override http request option.
|
|
3169
3505
|
* @throws {RequiredError}
|
|
3170
3506
|
*/
|
|
3171
|
-
|
|
3507
|
+
createTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3172
3508
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3173
|
-
assertParamExists('
|
|
3174
|
-
|
|
3175
|
-
|
|
3509
|
+
assertParamExists('createTwingraphEntities', 'organizationId', organizationId)
|
|
3510
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3511
|
+
assertParamExists('createTwingraphEntities', 'datasetId', datasetId)
|
|
3512
|
+
// verify required parameter 'type' is not null or undefined
|
|
3513
|
+
assertParamExists('createTwingraphEntities', 'type', type)
|
|
3514
|
+
// verify required parameter 'graphProperties' is not null or undefined
|
|
3515
|
+
assertParamExists('createTwingraphEntities', 'graphProperties', graphProperties)
|
|
3516
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
|
|
3517
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3518
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
3519
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
3176
3520
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3177
3521
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3178
3522
|
let baseOptions;
|
|
@@ -3180,7 +3524,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3180
3524
|
baseOptions = configuration.baseOptions;
|
|
3181
3525
|
}
|
|
3182
3526
|
|
|
3183
|
-
const localVarRequestOptions = { method: '
|
|
3527
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3184
3528
|
const localVarHeaderParameter = {} as any;
|
|
3185
3529
|
const localVarQueryParameter = {} as any;
|
|
3186
3530
|
|
|
@@ -3188,19 +3532,14 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3188
3532
|
// oauth required
|
|
3189
3533
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3190
3534
|
|
|
3191
|
-
if (page !== undefined) {
|
|
3192
|
-
localVarQueryParameter['page'] = page;
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
if (size !== undefined) {
|
|
3196
|
-
localVarQueryParameter['size'] = size;
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
3535
|
|
|
3200
3536
|
|
|
3537
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3538
|
+
|
|
3201
3539
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3202
3540
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3203
3541
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3542
|
+
localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
|
|
3204
3543
|
|
|
3205
3544
|
return {
|
|
3206
3545
|
url: toPathString(localVarUrlObj),
|
|
@@ -3209,17 +3548,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3209
3548
|
},
|
|
3210
3549
|
/**
|
|
3211
3550
|
*
|
|
3212
|
-
* @summary
|
|
3551
|
+
* @summary Delete a dataset
|
|
3213
3552
|
* @param {string} organizationId the Organization identifier
|
|
3214
3553
|
* @param {string} datasetId the Dataset identifier
|
|
3215
3554
|
* @param {*} [options] Override http request option.
|
|
3216
3555
|
* @throws {RequiredError}
|
|
3217
3556
|
*/
|
|
3218
|
-
|
|
3557
|
+
deleteDataset: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3219
3558
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3220
|
-
assertParamExists('
|
|
3559
|
+
assertParamExists('deleteDataset', 'organizationId', organizationId)
|
|
3221
3560
|
// verify required parameter 'datasetId' is not null or undefined
|
|
3222
|
-
assertParamExists('
|
|
3561
|
+
assertParamExists('deleteDataset', 'datasetId', datasetId)
|
|
3223
3562
|
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
|
|
3224
3563
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3225
3564
|
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
@@ -3230,7 +3569,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3230
3569
|
baseOptions = configuration.baseOptions;
|
|
3231
3570
|
}
|
|
3232
3571
|
|
|
3233
|
-
const localVarRequestOptions = { method: '
|
|
3572
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3234
3573
|
const localVarHeaderParameter = {} as any;
|
|
3235
3574
|
const localVarQueryParameter = {} as any;
|
|
3236
3575
|
|
|
@@ -3250,20 +3589,28 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3250
3589
|
};
|
|
3251
3590
|
},
|
|
3252
3591
|
/**
|
|
3253
|
-
*
|
|
3254
|
-
* @summary
|
|
3592
|
+
* delete entities in a graph instance
|
|
3593
|
+
* @summary Delete entities in a graph instance
|
|
3255
3594
|
* @param {string} organizationId the Organization identifier
|
|
3256
|
-
* @param {
|
|
3595
|
+
* @param {string} datasetId the Dataset Identifier
|
|
3596
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
3597
|
+
* @param {Array<string>} ids the entities to delete
|
|
3257
3598
|
* @param {*} [options] Override http request option.
|
|
3258
3599
|
* @throws {RequiredError}
|
|
3259
3600
|
*/
|
|
3260
|
-
|
|
3601
|
+
deleteTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3261
3602
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3262
|
-
assertParamExists('
|
|
3263
|
-
// verify required parameter '
|
|
3264
|
-
assertParamExists('
|
|
3265
|
-
|
|
3266
|
-
|
|
3603
|
+
assertParamExists('deleteTwingraphEntities', 'organizationId', organizationId)
|
|
3604
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3605
|
+
assertParamExists('deleteTwingraphEntities', 'datasetId', datasetId)
|
|
3606
|
+
// verify required parameter 'type' is not null or undefined
|
|
3607
|
+
assertParamExists('deleteTwingraphEntities', 'type', type)
|
|
3608
|
+
// verify required parameter 'ids' is not null or undefined
|
|
3609
|
+
assertParamExists('deleteTwingraphEntities', 'ids', ids)
|
|
3610
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
|
|
3611
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3612
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
3613
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
3267
3614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3268
3615
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3269
3616
|
let baseOptions;
|
|
@@ -3271,7 +3618,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3271
3618
|
baseOptions = configuration.baseOptions;
|
|
3272
3619
|
}
|
|
3273
3620
|
|
|
3274
|
-
const localVarRequestOptions = { method: '
|
|
3621
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3275
3622
|
const localVarHeaderParameter = {} as any;
|
|
3276
3623
|
const localVarQueryParameter = {} as any;
|
|
3277
3624
|
|
|
@@ -3279,14 +3626,15 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3279
3626
|
// oauth required
|
|
3280
3627
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3281
3628
|
|
|
3629
|
+
if (ids) {
|
|
3630
|
+
localVarQueryParameter['ids'] = ids;
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3282
3633
|
|
|
3283
3634
|
|
|
3284
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3285
|
-
|
|
3286
3635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3287
3636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3288
3637
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3289
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
|
|
3290
3638
|
|
|
3291
3639
|
return {
|
|
3292
3640
|
url: toPathString(localVarUrlObj),
|
|
@@ -3294,21 +3642,21 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3294
3642
|
};
|
|
3295
3643
|
},
|
|
3296
3644
|
/**
|
|
3297
|
-
*
|
|
3298
|
-
* @summary
|
|
3645
|
+
* Download a graph compressed in a zip file
|
|
3646
|
+
* @summary Download a graph compressed in a zip file
|
|
3299
3647
|
* @param {string} organizationId the Organization identifier
|
|
3300
|
-
* @param {string}
|
|
3648
|
+
* @param {string} hash the Graph download identifier
|
|
3301
3649
|
* @param {*} [options] Override http request option.
|
|
3302
3650
|
* @throws {RequiredError}
|
|
3303
3651
|
*/
|
|
3304
|
-
|
|
3652
|
+
downloadTwingraph: async (organizationId: string, hash: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3305
3653
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3306
|
-
assertParamExists('
|
|
3307
|
-
// verify required parameter '
|
|
3308
|
-
assertParamExists('
|
|
3309
|
-
const localVarPath = `/organizations/{organization_id}/datasets/{
|
|
3654
|
+
assertParamExists('downloadTwingraph', 'organizationId', organizationId)
|
|
3655
|
+
// verify required parameter 'hash' is not null or undefined
|
|
3656
|
+
assertParamExists('downloadTwingraph', 'hash', hash)
|
|
3657
|
+
const localVarPath = `/organizations/{organization_id}/datasets/twingraph/download/{hash}`
|
|
3310
3658
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3311
|
-
.replace(`{${"
|
|
3659
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
3312
3660
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3313
3661
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3314
3662
|
let baseOptions;
|
|
@@ -3316,7 +3664,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3316
3664
|
baseOptions = configuration.baseOptions;
|
|
3317
3665
|
}
|
|
3318
3666
|
|
|
3319
|
-
const localVarRequestOptions = { method: '
|
|
3667
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3320
3668
|
const localVarHeaderParameter = {} as any;
|
|
3321
3669
|
const localVarQueryParameter = {} as any;
|
|
3322
3670
|
|
|
@@ -3337,20 +3685,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3337
3685
|
},
|
|
3338
3686
|
/**
|
|
3339
3687
|
*
|
|
3340
|
-
* @summary
|
|
3688
|
+
* @summary List all Datasets
|
|
3341
3689
|
* @param {string} organizationId the Organization identifier
|
|
3342
|
-
* @param {DatasetSearch} datasetSearch the Dataset search parameters
|
|
3343
3690
|
* @param {number} [page] page number to query
|
|
3344
3691
|
* @param {number} [size] amount of result by page
|
|
3345
3692
|
* @param {*} [options] Override http request option.
|
|
3346
3693
|
* @throws {RequiredError}
|
|
3347
3694
|
*/
|
|
3348
|
-
|
|
3695
|
+
findAllDatasets: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3349
3696
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3350
|
-
assertParamExists('
|
|
3351
|
-
|
|
3352
|
-
assertParamExists('searchDatasets', 'datasetSearch', datasetSearch)
|
|
3353
|
-
const localVarPath = `/organizations/{organization_id}/datasets/search`
|
|
3697
|
+
assertParamExists('findAllDatasets', 'organizationId', organizationId)
|
|
3698
|
+
const localVarPath = `/organizations/{organization_id}/datasets`
|
|
3354
3699
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
3355
3700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3356
3701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3359,7 +3704,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3359
3704
|
baseOptions = configuration.baseOptions;
|
|
3360
3705
|
}
|
|
3361
3706
|
|
|
3362
|
-
const localVarRequestOptions = { method: '
|
|
3707
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3363
3708
|
const localVarHeaderParameter = {} as any;
|
|
3364
3709
|
const localVarQueryParameter = {} as any;
|
|
3365
3710
|
|
|
@@ -3377,12 +3722,9 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3377
3722
|
|
|
3378
3723
|
|
|
3379
3724
|
|
|
3380
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3381
|
-
|
|
3382
3725
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3383
3726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3384
3727
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3385
|
-
localVarRequestOptions.data = serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration)
|
|
3386
3728
|
|
|
3387
3729
|
return {
|
|
3388
3730
|
url: toPathString(localVarUrlObj),
|
|
@@ -3391,20 +3733,17 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3391
3733
|
},
|
|
3392
3734
|
/**
|
|
3393
3735
|
*
|
|
3394
|
-
* @summary
|
|
3736
|
+
* @summary Get the details of a Dataset
|
|
3395
3737
|
* @param {string} organizationId the Organization identifier
|
|
3396
3738
|
* @param {string} datasetId the Dataset identifier
|
|
3397
|
-
* @param {Dataset} dataset the new Dataset details.
|
|
3398
3739
|
* @param {*} [options] Override http request option.
|
|
3399
3740
|
* @throws {RequiredError}
|
|
3400
3741
|
*/
|
|
3401
|
-
|
|
3742
|
+
findDatasetById: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3402
3743
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3403
|
-
assertParamExists('
|
|
3744
|
+
assertParamExists('findDatasetById', 'organizationId', organizationId)
|
|
3404
3745
|
// verify required parameter 'datasetId' is not null or undefined
|
|
3405
|
-
assertParamExists('
|
|
3406
|
-
// verify required parameter 'dataset' is not null or undefined
|
|
3407
|
-
assertParamExists('updateDataset', 'dataset', dataset)
|
|
3746
|
+
assertParamExists('findDatasetById', 'datasetId', datasetId)
|
|
3408
3747
|
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
|
|
3409
3748
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3410
3749
|
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
@@ -3415,7 +3754,7 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3415
3754
|
baseOptions = configuration.baseOptions;
|
|
3416
3755
|
}
|
|
3417
3756
|
|
|
3418
|
-
const localVarRequestOptions = { method: '
|
|
3757
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3419
3758
|
const localVarHeaderParameter = {} as any;
|
|
3420
3759
|
const localVarQueryParameter = {} as any;
|
|
3421
3760
|
|
|
@@ -3425,151 +3764,1082 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3425
3764
|
|
|
3426
3765
|
|
|
3427
3766
|
|
|
3428
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3429
|
-
|
|
3430
3767
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3431
3768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3432
3769
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3433
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
|
|
3434
3770
|
|
|
3435
3771
|
return {
|
|
3436
3772
|
url: toPathString(localVarUrlObj),
|
|
3437
3773
|
options: localVarRequestOptions,
|
|
3438
3774
|
};
|
|
3439
3775
|
},
|
|
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
3776
|
/**
|
|
3451
3777
|
*
|
|
3452
|
-
* @summary
|
|
3778
|
+
* @summary Get a control access for the Dataset
|
|
3453
3779
|
* @param {string} organizationId the Organization identifier
|
|
3454
3780
|
* @param {string} datasetId the Dataset identifier
|
|
3455
|
-
* @param {
|
|
3781
|
+
* @param {string} identityId the User identifier
|
|
3456
3782
|
* @param {*} [options] Override http request option.
|
|
3457
3783
|
* @throws {RequiredError}
|
|
3458
3784
|
*/
|
|
3459
|
-
async
|
|
3460
|
-
|
|
3461
|
-
|
|
3785
|
+
getDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3786
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3787
|
+
assertParamExists('getDatasetAccessControl', 'organizationId', organizationId)
|
|
3788
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3789
|
+
assertParamExists('getDatasetAccessControl', 'datasetId', datasetId)
|
|
3790
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
3791
|
+
assertParamExists('getDatasetAccessControl', 'identityId', identityId)
|
|
3792
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
|
|
3793
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3794
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
3795
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
3796
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3797
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3798
|
+
let baseOptions;
|
|
3799
|
+
if (configuration) {
|
|
3800
|
+
baseOptions = configuration.baseOptions;
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3804
|
+
const localVarHeaderParameter = {} as any;
|
|
3805
|
+
const localVarQueryParameter = {} as any;
|
|
3806
|
+
|
|
3807
|
+
// authentication oAuth2AuthCode required
|
|
3808
|
+
// oauth required
|
|
3809
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3814
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3815
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3816
|
+
|
|
3817
|
+
return {
|
|
3818
|
+
url: toPathString(localVarUrlObj),
|
|
3819
|
+
options: localVarRequestOptions,
|
|
3820
|
+
};
|
|
3462
3821
|
},
|
|
3463
3822
|
/**
|
|
3464
3823
|
*
|
|
3465
|
-
* @summary
|
|
3824
|
+
* @summary Get the Dataset security users list
|
|
3466
3825
|
* @param {string} organizationId the Organization identifier
|
|
3467
|
-
* @param {
|
|
3826
|
+
* @param {string} datasetId the Dataset identifier
|
|
3468
3827
|
* @param {*} [options] Override http request option.
|
|
3469
3828
|
* @throws {RequiredError}
|
|
3470
3829
|
*/
|
|
3471
|
-
async
|
|
3472
|
-
|
|
3473
|
-
|
|
3830
|
+
getDatasetSecurityUsers: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3831
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3832
|
+
assertParamExists('getDatasetSecurityUsers', 'organizationId', organizationId)
|
|
3833
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3834
|
+
assertParamExists('getDatasetSecurityUsers', 'datasetId', datasetId)
|
|
3835
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/users`
|
|
3836
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3837
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
3838
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3839
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3840
|
+
let baseOptions;
|
|
3841
|
+
if (configuration) {
|
|
3842
|
+
baseOptions = configuration.baseOptions;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3846
|
+
const localVarHeaderParameter = {} as any;
|
|
3847
|
+
const localVarQueryParameter = {} as any;
|
|
3848
|
+
|
|
3849
|
+
// authentication oAuth2AuthCode required
|
|
3850
|
+
// oauth required
|
|
3851
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
|
|
3855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3857
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3858
|
+
|
|
3859
|
+
return {
|
|
3860
|
+
url: toPathString(localVarUrlObj),
|
|
3861
|
+
options: localVarRequestOptions,
|
|
3862
|
+
};
|
|
3474
3863
|
},
|
|
3475
3864
|
/**
|
|
3476
|
-
*
|
|
3477
|
-
* @summary
|
|
3865
|
+
* Get the status of a twingraph import
|
|
3866
|
+
* @summary Get the status of twingraph import
|
|
3478
3867
|
* @param {string} organizationId the Organization identifier
|
|
3479
|
-
* @param {
|
|
3868
|
+
* @param {string} datasetId the dataset identifier
|
|
3869
|
+
* @param {string} jobId the job identifier
|
|
3480
3870
|
* @param {*} [options] Override http request option.
|
|
3481
3871
|
* @throws {RequiredError}
|
|
3482
3872
|
*/
|
|
3483
|
-
async
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3873
|
+
getDatasetTwingraphStatus: async (organizationId: string, datasetId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3874
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3875
|
+
assertParamExists('getDatasetTwingraphStatus', 'organizationId', organizationId)
|
|
3876
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3877
|
+
assertParamExists('getDatasetTwingraphStatus', 'datasetId', datasetId)
|
|
3878
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
3879
|
+
assertParamExists('getDatasetTwingraphStatus', 'jobId', jobId)
|
|
3880
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/job/{job_id}/status`
|
|
3881
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3882
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
3883
|
+
.replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
|
|
3884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3885
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3886
|
+
let baseOptions;
|
|
3887
|
+
if (configuration) {
|
|
3888
|
+
baseOptions = configuration.baseOptions;
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3892
|
+
const localVarHeaderParameter = {} as any;
|
|
3893
|
+
const localVarQueryParameter = {} as any;
|
|
3894
|
+
|
|
3895
|
+
// authentication oAuth2AuthCode required
|
|
3896
|
+
// oauth required
|
|
3897
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3902
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3903
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3904
|
+
|
|
3905
|
+
return {
|
|
3906
|
+
url: toPathString(localVarUrlObj),
|
|
3907
|
+
options: localVarRequestOptions,
|
|
3908
|
+
};
|
|
3909
|
+
},
|
|
3910
|
+
/**
|
|
3911
|
+
* get entities in a graph instance
|
|
3912
|
+
* @summary Get entities in a graph instance
|
|
3913
|
+
* @param {string} organizationId the Organization identifier
|
|
3914
|
+
* @param {string} datasetId the Dataset Identifier
|
|
3915
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
3916
|
+
* @param {Array<string>} ids the entities to get
|
|
3917
|
+
* @param {*} [options] Override http request option.
|
|
3918
|
+
* @throws {RequiredError}
|
|
3919
|
+
*/
|
|
3920
|
+
getTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3921
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3922
|
+
assertParamExists('getTwingraphEntities', 'organizationId', organizationId)
|
|
3923
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3924
|
+
assertParamExists('getTwingraphEntities', 'datasetId', datasetId)
|
|
3925
|
+
// verify required parameter 'type' is not null or undefined
|
|
3926
|
+
assertParamExists('getTwingraphEntities', 'type', type)
|
|
3927
|
+
// verify required parameter 'ids' is not null or undefined
|
|
3928
|
+
assertParamExists('getTwingraphEntities', 'ids', ids)
|
|
3929
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
|
|
3930
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3931
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
3932
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
3933
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3934
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3935
|
+
let baseOptions;
|
|
3936
|
+
if (configuration) {
|
|
3937
|
+
baseOptions = configuration.baseOptions;
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3941
|
+
const localVarHeaderParameter = {} as any;
|
|
3942
|
+
const localVarQueryParameter = {} as any;
|
|
3943
|
+
|
|
3944
|
+
// authentication oAuth2AuthCode required
|
|
3945
|
+
// oauth required
|
|
3946
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3947
|
+
|
|
3948
|
+
if (ids) {
|
|
3949
|
+
localVarQueryParameter['ids'] = ids;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3955
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3956
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3957
|
+
|
|
3958
|
+
return {
|
|
3959
|
+
url: toPathString(localVarUrlObj),
|
|
3960
|
+
options: localVarRequestOptions,
|
|
3961
|
+
};
|
|
3962
|
+
},
|
|
3963
|
+
/**
|
|
3964
|
+
* Refresh ADT, Storage dataset
|
|
3965
|
+
* @summary Refresh dataset
|
|
3966
|
+
* @param {string} organizationId the Organization identifier
|
|
3967
|
+
* @param {string} datasetId the Dataset identifier
|
|
3968
|
+
* @param {*} [options] Override http request option.
|
|
3969
|
+
* @throws {RequiredError}
|
|
3970
|
+
*/
|
|
3971
|
+
refreshDataset: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3972
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3973
|
+
assertParamExists('refreshDataset', 'organizationId', organizationId)
|
|
3974
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
3975
|
+
assertParamExists('refreshDataset', 'datasetId', datasetId)
|
|
3976
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/refresh`
|
|
3977
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
3978
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
3979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3981
|
+
let baseOptions;
|
|
3982
|
+
if (configuration) {
|
|
3983
|
+
baseOptions = configuration.baseOptions;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3987
|
+
const localVarHeaderParameter = {} as any;
|
|
3988
|
+
const localVarQueryParameter = {} as any;
|
|
3989
|
+
|
|
3990
|
+
// authentication oAuth2AuthCode required
|
|
3991
|
+
// oauth required
|
|
3992
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3998
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3999
|
+
|
|
4000
|
+
return {
|
|
4001
|
+
url: toPathString(localVarUrlObj),
|
|
4002
|
+
options: localVarRequestOptions,
|
|
4003
|
+
};
|
|
4004
|
+
},
|
|
4005
|
+
/**
|
|
4006
|
+
*
|
|
4007
|
+
* @summary Remove all Dataset Compatibility elements from the Dataset specified
|
|
4008
|
+
* @param {string} organizationId the Organization identifier
|
|
4009
|
+
* @param {string} datasetId the Dataset identifier
|
|
4010
|
+
* @param {*} [options] Override http request option.
|
|
4011
|
+
* @throws {RequiredError}
|
|
4012
|
+
*/
|
|
4013
|
+
removeAllDatasetCompatibilityElements: async (organizationId: string, datasetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4014
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4015
|
+
assertParamExists('removeAllDatasetCompatibilityElements', 'organizationId', organizationId)
|
|
4016
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4017
|
+
assertParamExists('removeAllDatasetCompatibilityElements', 'datasetId', datasetId)
|
|
4018
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/compatibility`
|
|
4019
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4020
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4023
|
+
let baseOptions;
|
|
4024
|
+
if (configuration) {
|
|
4025
|
+
baseOptions = configuration.baseOptions;
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4029
|
+
const localVarHeaderParameter = {} as any;
|
|
4030
|
+
const localVarQueryParameter = {} as any;
|
|
4031
|
+
|
|
4032
|
+
// authentication oAuth2AuthCode required
|
|
4033
|
+
// oauth required
|
|
4034
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4039
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4040
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4041
|
+
|
|
4042
|
+
return {
|
|
4043
|
+
url: toPathString(localVarUrlObj),
|
|
4044
|
+
options: localVarRequestOptions,
|
|
4045
|
+
};
|
|
4046
|
+
},
|
|
4047
|
+
/**
|
|
4048
|
+
*
|
|
4049
|
+
* @summary Remove the specified access from the given Dataset
|
|
4050
|
+
* @param {string} organizationId the Organization identifier
|
|
4051
|
+
* @param {string} datasetId the Dataset identifier
|
|
4052
|
+
* @param {string} identityId the User identifier
|
|
4053
|
+
* @param {*} [options] Override http request option.
|
|
4054
|
+
* @throws {RequiredError}
|
|
4055
|
+
*/
|
|
4056
|
+
removeDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4057
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4058
|
+
assertParamExists('removeDatasetAccessControl', 'organizationId', organizationId)
|
|
4059
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4060
|
+
assertParamExists('removeDatasetAccessControl', 'datasetId', datasetId)
|
|
4061
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
4062
|
+
assertParamExists('removeDatasetAccessControl', 'identityId', identityId)
|
|
4063
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
|
|
4064
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4065
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
4066
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4069
|
+
let baseOptions;
|
|
4070
|
+
if (configuration) {
|
|
4071
|
+
baseOptions = configuration.baseOptions;
|
|
4072
|
+
}
|
|
4073
|
+
|
|
4074
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4075
|
+
const localVarHeaderParameter = {} as any;
|
|
4076
|
+
const localVarQueryParameter = {} as any;
|
|
4077
|
+
|
|
4078
|
+
// authentication oAuth2AuthCode required
|
|
4079
|
+
// oauth required
|
|
4080
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4085
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4086
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4087
|
+
|
|
4088
|
+
return {
|
|
4089
|
+
url: toPathString(localVarUrlObj),
|
|
4090
|
+
options: localVarRequestOptions,
|
|
4091
|
+
};
|
|
4092
|
+
},
|
|
4093
|
+
/**
|
|
4094
|
+
*
|
|
4095
|
+
* @summary Search Datasets
|
|
4096
|
+
* @param {string} organizationId the Organization identifier
|
|
4097
|
+
* @param {DatasetSearch} datasetSearch the Dataset search parameters
|
|
4098
|
+
* @param {number} [page] page number to query
|
|
4099
|
+
* @param {number} [size] amount of result by page
|
|
4100
|
+
* @param {*} [options] Override http request option.
|
|
4101
|
+
* @throws {RequiredError}
|
|
4102
|
+
*/
|
|
4103
|
+
searchDatasets: async (organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4104
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4105
|
+
assertParamExists('searchDatasets', 'organizationId', organizationId)
|
|
4106
|
+
// verify required parameter 'datasetSearch' is not null or undefined
|
|
4107
|
+
assertParamExists('searchDatasets', 'datasetSearch', datasetSearch)
|
|
4108
|
+
const localVarPath = `/organizations/{organization_id}/datasets/search`
|
|
4109
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
4110
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4111
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4112
|
+
let baseOptions;
|
|
4113
|
+
if (configuration) {
|
|
4114
|
+
baseOptions = configuration.baseOptions;
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4118
|
+
const localVarHeaderParameter = {} as any;
|
|
4119
|
+
const localVarQueryParameter = {} as any;
|
|
4120
|
+
|
|
4121
|
+
// authentication oAuth2AuthCode required
|
|
4122
|
+
// oauth required
|
|
4123
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4124
|
+
|
|
4125
|
+
if (page !== undefined) {
|
|
4126
|
+
localVarQueryParameter['page'] = page;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
if (size !== undefined) {
|
|
4130
|
+
localVarQueryParameter['size'] = size;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4136
|
+
|
|
4137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration)
|
|
4141
|
+
|
|
4142
|
+
return {
|
|
4143
|
+
url: toPathString(localVarUrlObj),
|
|
4144
|
+
options: localVarRequestOptions,
|
|
4145
|
+
};
|
|
4146
|
+
},
|
|
4147
|
+
/**
|
|
4148
|
+
* Run a query on a graph instance and return the result as a zip file in async mode
|
|
4149
|
+
* @summary Run a query on a graph instance and return the result as a zip file in async mode
|
|
4150
|
+
* @param {string} organizationId the Organization identifier
|
|
4151
|
+
* @param {string} datasetId the Graph Identifier
|
|
4152
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
4153
|
+
* @param {*} [options] Override http request option.
|
|
4154
|
+
* @throws {RequiredError}
|
|
4155
|
+
*/
|
|
4156
|
+
twingraphBatchQuery: async (organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4157
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4158
|
+
assertParamExists('twingraphBatchQuery', 'organizationId', organizationId)
|
|
4159
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4160
|
+
assertParamExists('twingraphBatchQuery', 'datasetId', datasetId)
|
|
4161
|
+
// verify required parameter 'datasetTwinGraphQuery' is not null or undefined
|
|
4162
|
+
assertParamExists('twingraphBatchQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery)
|
|
4163
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/batch-query`
|
|
4164
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4165
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4168
|
+
let baseOptions;
|
|
4169
|
+
if (configuration) {
|
|
4170
|
+
baseOptions = configuration.baseOptions;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4174
|
+
const localVarHeaderParameter = {} as any;
|
|
4175
|
+
const localVarQueryParameter = {} as any;
|
|
4176
|
+
|
|
4177
|
+
// authentication oAuth2AuthCode required
|
|
4178
|
+
// oauth required
|
|
4179
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4184
|
+
|
|
4185
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4187
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4188
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration)
|
|
4189
|
+
|
|
4190
|
+
return {
|
|
4191
|
+
url: toPathString(localVarUrlObj),
|
|
4192
|
+
options: localVarRequestOptions,
|
|
4193
|
+
};
|
|
4194
|
+
},
|
|
4195
|
+
/**
|
|
4196
|
+
* Async batch update by loading a CSV file on a graph instance
|
|
4197
|
+
* @summary Async batch update by loading a CSV file on a graph instance
|
|
4198
|
+
* @param {string} organizationId the Organization identifier
|
|
4199
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4200
|
+
* @param {DatasetTwinGraphQuery} twinGraphQuery
|
|
4201
|
+
* @param {any} body
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
*/
|
|
4205
|
+
twingraphBatchUpdate: async (organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4206
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4207
|
+
assertParamExists('twingraphBatchUpdate', 'organizationId', organizationId)
|
|
4208
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4209
|
+
assertParamExists('twingraphBatchUpdate', 'datasetId', datasetId)
|
|
4210
|
+
// verify required parameter 'twinGraphQuery' is not null or undefined
|
|
4211
|
+
assertParamExists('twingraphBatchUpdate', 'twinGraphQuery', twinGraphQuery)
|
|
4212
|
+
// verify required parameter 'body' is not null or undefined
|
|
4213
|
+
assertParamExists('twingraphBatchUpdate', 'body', body)
|
|
4214
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/batch`
|
|
4215
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4216
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4219
|
+
let baseOptions;
|
|
4220
|
+
if (configuration) {
|
|
4221
|
+
baseOptions = configuration.baseOptions;
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4225
|
+
const localVarHeaderParameter = {} as any;
|
|
4226
|
+
const localVarQueryParameter = {} as any;
|
|
4227
|
+
|
|
4228
|
+
// authentication oAuth2AuthCode required
|
|
4229
|
+
// oauth required
|
|
4230
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4231
|
+
|
|
4232
|
+
if (twinGraphQuery !== undefined) {
|
|
4233
|
+
localVarQueryParameter['twinGraphQuery'] = twinGraphQuery;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
localVarHeaderParameter['Content-Type'] = 'text/csv';
|
|
4239
|
+
|
|
4240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4243
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
4244
|
+
|
|
4245
|
+
return {
|
|
4246
|
+
url: toPathString(localVarUrlObj),
|
|
4247
|
+
options: localVarRequestOptions,
|
|
4248
|
+
};
|
|
4249
|
+
},
|
|
4250
|
+
/**
|
|
4251
|
+
* Run a query on a graph instance and return the result as a json
|
|
4252
|
+
* @summary Run a query on a graph instance and return the result as a json
|
|
4253
|
+
* @param {string} organizationId the Organization identifier
|
|
4254
|
+
* @param {string} datasetId the Dataset identifier
|
|
4255
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
4256
|
+
* @param {*} [options] Override http request option.
|
|
4257
|
+
* @throws {RequiredError}
|
|
4258
|
+
*/
|
|
4259
|
+
twingraphQuery: async (organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4260
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4261
|
+
assertParamExists('twingraphQuery', 'organizationId', organizationId)
|
|
4262
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4263
|
+
assertParamExists('twingraphQuery', 'datasetId', datasetId)
|
|
4264
|
+
// verify required parameter 'datasetTwinGraphQuery' is not null or undefined
|
|
4265
|
+
assertParamExists('twingraphQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery)
|
|
4266
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph`
|
|
4267
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4268
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4271
|
+
let baseOptions;
|
|
4272
|
+
if (configuration) {
|
|
4273
|
+
baseOptions = configuration.baseOptions;
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4277
|
+
const localVarHeaderParameter = {} as any;
|
|
4278
|
+
const localVarQueryParameter = {} as any;
|
|
4279
|
+
|
|
4280
|
+
// authentication oAuth2AuthCode required
|
|
4281
|
+
// oauth required
|
|
4282
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4283
|
+
|
|
4284
|
+
|
|
4285
|
+
|
|
4286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4287
|
+
|
|
4288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration)
|
|
4292
|
+
|
|
4293
|
+
return {
|
|
4294
|
+
url: toPathString(localVarUrlObj),
|
|
4295
|
+
options: localVarRequestOptions,
|
|
4296
|
+
};
|
|
4297
|
+
},
|
|
4298
|
+
/**
|
|
4299
|
+
*
|
|
4300
|
+
* @summary Update a dataset
|
|
4301
|
+
* @param {string} organizationId the Organization identifier
|
|
4302
|
+
* @param {string} datasetId the Dataset identifier
|
|
4303
|
+
* @param {Dataset} dataset the new Dataset details.
|
|
4304
|
+
* @param {*} [options] Override http request option.
|
|
4305
|
+
* @throws {RequiredError}
|
|
4306
|
+
*/
|
|
4307
|
+
updateDataset: async (organizationId: string, datasetId: string, dataset: Dataset, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4308
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4309
|
+
assertParamExists('updateDataset', 'organizationId', organizationId)
|
|
4310
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4311
|
+
assertParamExists('updateDataset', 'datasetId', datasetId)
|
|
4312
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
4313
|
+
assertParamExists('updateDataset', 'dataset', dataset)
|
|
4314
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
|
|
4315
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4316
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4319
|
+
let baseOptions;
|
|
4320
|
+
if (configuration) {
|
|
4321
|
+
baseOptions = configuration.baseOptions;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4325
|
+
const localVarHeaderParameter = {} as any;
|
|
4326
|
+
const localVarQueryParameter = {} as any;
|
|
4327
|
+
|
|
4328
|
+
// authentication oAuth2AuthCode required
|
|
4329
|
+
// oauth required
|
|
4330
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4335
|
+
|
|
4336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4339
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
|
|
4340
|
+
|
|
4341
|
+
return {
|
|
4342
|
+
url: toPathString(localVarUrlObj),
|
|
4343
|
+
options: localVarRequestOptions,
|
|
4344
|
+
};
|
|
4345
|
+
},
|
|
4346
|
+
/**
|
|
4347
|
+
*
|
|
4348
|
+
* @summary Update the specified access to User for a Dataset
|
|
4349
|
+
* @param {string} organizationId the Organization identifier
|
|
4350
|
+
* @param {string} datasetId the Dataset identifier
|
|
4351
|
+
* @param {string} identityId the User identifier
|
|
4352
|
+
* @param {DatasetRole} datasetRole The new Dataset Access Control
|
|
4353
|
+
* @param {*} [options] Override http request option.
|
|
4354
|
+
* @throws {RequiredError}
|
|
4355
|
+
*/
|
|
4356
|
+
updateDatasetAccessControl: async (organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4357
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4358
|
+
assertParamExists('updateDatasetAccessControl', 'organizationId', organizationId)
|
|
4359
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4360
|
+
assertParamExists('updateDatasetAccessControl', 'datasetId', datasetId)
|
|
4361
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
4362
|
+
assertParamExists('updateDatasetAccessControl', 'identityId', identityId)
|
|
4363
|
+
// verify required parameter 'datasetRole' is not null or undefined
|
|
4364
|
+
assertParamExists('updateDatasetAccessControl', 'datasetRole', datasetRole)
|
|
4365
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}`
|
|
4366
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4367
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
4368
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
4369
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4370
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4371
|
+
let baseOptions;
|
|
4372
|
+
if (configuration) {
|
|
4373
|
+
baseOptions = configuration.baseOptions;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4377
|
+
const localVarHeaderParameter = {} as any;
|
|
4378
|
+
const localVarQueryParameter = {} as any;
|
|
4379
|
+
|
|
4380
|
+
// authentication oAuth2AuthCode required
|
|
4381
|
+
// oauth required
|
|
4382
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
|
|
4386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4387
|
+
|
|
4388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4390
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4391
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasetRole, localVarRequestOptions, configuration)
|
|
4392
|
+
|
|
4393
|
+
return {
|
|
4394
|
+
url: toPathString(localVarUrlObj),
|
|
4395
|
+
options: localVarRequestOptions,
|
|
4396
|
+
};
|
|
4397
|
+
},
|
|
4398
|
+
/**
|
|
4399
|
+
* update entities in a graph instance
|
|
4400
|
+
* @summary Update entities in a graph instance
|
|
4401
|
+
* @param {string} organizationId the Organization identifier
|
|
4402
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4403
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4404
|
+
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
4405
|
+
* @param {*} [options] Override http request option.
|
|
4406
|
+
* @throws {RequiredError}
|
|
4407
|
+
*/
|
|
4408
|
+
updateTwingraphEntities: async (organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4409
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4410
|
+
assertParamExists('updateTwingraphEntities', 'organizationId', organizationId)
|
|
4411
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4412
|
+
assertParamExists('updateTwingraphEntities', 'datasetId', datasetId)
|
|
4413
|
+
// verify required parameter 'type' is not null or undefined
|
|
4414
|
+
assertParamExists('updateTwingraphEntities', 'type', type)
|
|
4415
|
+
// verify required parameter 'graphProperties' is not null or undefined
|
|
4416
|
+
assertParamExists('updateTwingraphEntities', 'graphProperties', graphProperties)
|
|
4417
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}`
|
|
4418
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4419
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)))
|
|
4420
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
4421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4423
|
+
let baseOptions;
|
|
4424
|
+
if (configuration) {
|
|
4425
|
+
baseOptions = configuration.baseOptions;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4429
|
+
const localVarHeaderParameter = {} as any;
|
|
4430
|
+
const localVarQueryParameter = {} as any;
|
|
4431
|
+
|
|
4432
|
+
// authentication oAuth2AuthCode required
|
|
4433
|
+
// oauth required
|
|
4434
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4435
|
+
|
|
4436
|
+
|
|
4437
|
+
|
|
4438
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4439
|
+
|
|
4440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4442
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4443
|
+
localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
|
|
4444
|
+
|
|
4445
|
+
return {
|
|
4446
|
+
url: toPathString(localVarUrlObj),
|
|
4447
|
+
options: localVarRequestOptions,
|
|
4448
|
+
};
|
|
4449
|
+
},
|
|
4450
|
+
/**
|
|
4451
|
+
* Upload Twingraph ZIP
|
|
4452
|
+
* @summary Upload Twingraph with ZIP File
|
|
4453
|
+
* @param {string} organizationId the Organization identifier
|
|
4454
|
+
* @param {string} datasetId the Dataset identifier
|
|
4455
|
+
* @param {any} body
|
|
4456
|
+
* @param {*} [options] Override http request option.
|
|
4457
|
+
* @throws {RequiredError}
|
|
4458
|
+
*/
|
|
4459
|
+
uploadTwingraph: async (organizationId: string, datasetId: string, body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4460
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4461
|
+
assertParamExists('uploadTwingraph', 'organizationId', organizationId)
|
|
4462
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
4463
|
+
assertParamExists('uploadTwingraph', 'datasetId', datasetId)
|
|
4464
|
+
// verify required parameter 'body' is not null or undefined
|
|
4465
|
+
assertParamExists('uploadTwingraph', 'body', body)
|
|
4466
|
+
const localVarPath = `/organizations/{organization_id}/datasets/{dataset_id}`
|
|
4467
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
4468
|
+
.replace(`{${"dataset_id"}}`, encodeURIComponent(String(datasetId)));
|
|
4469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4471
|
+
let baseOptions;
|
|
4472
|
+
if (configuration) {
|
|
4473
|
+
baseOptions = configuration.baseOptions;
|
|
4474
|
+
}
|
|
4475
|
+
|
|
4476
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4477
|
+
const localVarHeaderParameter = {} as any;
|
|
4478
|
+
const localVarQueryParameter = {} as any;
|
|
4479
|
+
|
|
4480
|
+
// authentication oAuth2AuthCode required
|
|
4481
|
+
// oauth required
|
|
4482
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
4487
|
+
|
|
4488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4490
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4491
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
4492
|
+
|
|
4493
|
+
return {
|
|
4494
|
+
url: toPathString(localVarUrlObj),
|
|
4495
|
+
options: localVarRequestOptions,
|
|
4496
|
+
};
|
|
4497
|
+
},
|
|
4498
|
+
}
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* DatasetApi - functional programming interface
|
|
4503
|
+
* @export
|
|
4504
|
+
*/
|
|
4505
|
+
export const DatasetApiFp = function(configuration?: Configuration) {
|
|
4506
|
+
const localVarAxiosParamCreator = DatasetApiAxiosParamCreator(configuration)
|
|
4507
|
+
return {
|
|
4508
|
+
/**
|
|
4509
|
+
*
|
|
4510
|
+
* @summary Add a control access to the Dataset
|
|
4511
|
+
* @param {string} organizationId the Organization identifier
|
|
4512
|
+
* @param {string} datasetId the Dataset identifier
|
|
4513
|
+
* @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
|
|
4514
|
+
* @param {*} [options] Override http request option.
|
|
4515
|
+
* @throws {RequiredError}
|
|
4516
|
+
*/
|
|
4517
|
+
async addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
|
|
4518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options);
|
|
4519
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4520
|
+
},
|
|
4521
|
+
/**
|
|
4522
|
+
*
|
|
4523
|
+
* @summary Add Dataset Compatibility elements.
|
|
4524
|
+
* @param {string} organizationId the Organization identifier
|
|
4525
|
+
* @param {string} datasetId the Dataset identifier
|
|
4526
|
+
* @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
|
|
4527
|
+
* @param {*} [options] Override http request option.
|
|
4528
|
+
* @throws {RequiredError}
|
|
4529
|
+
*/
|
|
4530
|
+
async addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DatasetCompatibility>>> {
|
|
4531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options);
|
|
4532
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4533
|
+
},
|
|
4534
|
+
/**
|
|
4535
|
+
*
|
|
4536
|
+
* @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
|
|
4537
|
+
* @param {string} organizationId the Organization identifier
|
|
4538
|
+
* @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
|
|
4539
|
+
* @param {*} [options] Override http request option.
|
|
4540
|
+
* @throws {RequiredError}
|
|
4541
|
+
*/
|
|
4542
|
+
async copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetCopyParameters>> {
|
|
4543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.copyDataset(organizationId, datasetCopyParameters, options);
|
|
4544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4545
|
+
},
|
|
4546
|
+
/**
|
|
4547
|
+
*
|
|
4548
|
+
* @summary Create a new Dataset
|
|
4549
|
+
* @param {string} organizationId the Organization identifier
|
|
4550
|
+
* @param {Dataset} dataset the Dataset to create
|
|
4551
|
+
* @param {*} [options] Override http request option.
|
|
4552
|
+
* @throws {RequiredError}
|
|
4553
|
+
*/
|
|
4554
|
+
async createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
|
|
4555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDataset(organizationId, dataset, options);
|
|
4556
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4557
|
+
},
|
|
4558
|
+
/**
|
|
4559
|
+
* Run a query on a dataset
|
|
4560
|
+
* @summary Run a query on a dataset
|
|
4561
|
+
* @param {string} organizationId the Organization identifier
|
|
4562
|
+
* @param {string} datasetId the Dataset identifier
|
|
4563
|
+
* @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
|
|
4564
|
+
* @param {*} [options] Override http request option.
|
|
4565
|
+
* @throws {RequiredError}
|
|
4566
|
+
*/
|
|
4567
|
+
async createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
|
|
4568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options);
|
|
4569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4570
|
+
},
|
|
4571
|
+
/**
|
|
4572
|
+
* create new entities in a graph instance
|
|
4573
|
+
* @summary Create new entities in a graph instance
|
|
4574
|
+
* @param {string} organizationId the Organization identifier
|
|
4575
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4576
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4577
|
+
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
4578
|
+
* @param {*} [options] Override http request option.
|
|
4579
|
+
* @throws {RequiredError}
|
|
4580
|
+
*/
|
|
4581
|
+
async createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
4582
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options);
|
|
4583
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4584
|
+
},
|
|
4585
|
+
/**
|
|
4586
|
+
*
|
|
4587
|
+
* @summary Delete a dataset
|
|
4588
|
+
* @param {string} organizationId the Organization identifier
|
|
4589
|
+
* @param {string} datasetId the Dataset identifier
|
|
4590
|
+
* @param {*} [options] Override http request option.
|
|
4591
|
+
* @throws {RequiredError}
|
|
4592
|
+
*/
|
|
4593
|
+
async deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDataset(organizationId, datasetId, options);
|
|
4595
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4596
|
+
},
|
|
4597
|
+
/**
|
|
4598
|
+
* delete entities in a graph instance
|
|
4599
|
+
* @summary Delete entities in a graph instance
|
|
4600
|
+
* @param {string} organizationId the Organization identifier
|
|
4601
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4602
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4603
|
+
* @param {Array<string>} ids the entities to delete
|
|
4604
|
+
* @param {*} [options] Override http request option.
|
|
4605
|
+
* @throws {RequiredError}
|
|
4606
|
+
*/
|
|
4607
|
+
async deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4608
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTwingraphEntities(organizationId, datasetId, type, ids, options);
|
|
4609
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4610
|
+
},
|
|
4611
|
+
/**
|
|
4612
|
+
* Download a graph compressed in a zip file
|
|
4613
|
+
* @summary Download a graph compressed in a zip file
|
|
4614
|
+
* @param {string} organizationId the Organization identifier
|
|
4615
|
+
* @param {string} hash the Graph download identifier
|
|
4616
|
+
* @param {*} [options] Override http request option.
|
|
4617
|
+
* @throws {RequiredError}
|
|
4618
|
+
*/
|
|
4619
|
+
async downloadTwingraph(organizationId: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
4620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadTwingraph(organizationId, hash, options);
|
|
4621
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4622
|
+
},
|
|
4623
|
+
/**
|
|
4624
|
+
*
|
|
4625
|
+
* @summary List all Datasets
|
|
4626
|
+
* @param {string} organizationId the Organization identifier
|
|
4627
|
+
* @param {number} [page] page number to query
|
|
4628
|
+
* @param {number} [size] amount of result by page
|
|
4629
|
+
* @param {*} [options] Override http request option.
|
|
4630
|
+
* @throws {RequiredError}
|
|
4631
|
+
*/
|
|
4632
|
+
async findAllDatasets(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
|
|
4633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options);
|
|
4634
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4635
|
+
},
|
|
4636
|
+
/**
|
|
4637
|
+
*
|
|
4638
|
+
* @summary Get the details of a Dataset
|
|
4639
|
+
* @param {string} organizationId the Organization identifier
|
|
4640
|
+
* @param {string} datasetId the Dataset identifier
|
|
4641
|
+
* @param {*} [options] Override http request option.
|
|
4642
|
+
* @throws {RequiredError}
|
|
4643
|
+
*/
|
|
4644
|
+
async findDatasetById(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
|
|
4645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options);
|
|
4646
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4647
|
+
},
|
|
4648
|
+
/**
|
|
4649
|
+
*
|
|
4650
|
+
* @summary Get a control access for the Dataset
|
|
4651
|
+
* @param {string} organizationId the Organization identifier
|
|
4652
|
+
* @param {string} datasetId the Dataset identifier
|
|
4653
|
+
* @param {string} identityId the User identifier
|
|
4654
|
+
* @param {*} [options] Override http request option.
|
|
4655
|
+
* @throws {RequiredError}
|
|
4656
|
+
*/
|
|
4657
|
+
async getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
|
|
4658
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetAccessControl(organizationId, datasetId, identityId, options);
|
|
4659
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4660
|
+
},
|
|
4661
|
+
/**
|
|
4662
|
+
*
|
|
4663
|
+
* @summary Get the Dataset security users list
|
|
4664
|
+
* @param {string} organizationId the Organization identifier
|
|
4665
|
+
* @param {string} datasetId the Dataset identifier
|
|
4666
|
+
* @param {*} [options] Override http request option.
|
|
4667
|
+
* @throws {RequiredError}
|
|
4668
|
+
*/
|
|
4669
|
+
async getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetSecurityUsers(organizationId, datasetId, options);
|
|
4671
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4672
|
+
},
|
|
4673
|
+
/**
|
|
4674
|
+
* Get the status of a twingraph import
|
|
4675
|
+
* @summary Get the status of twingraph import
|
|
4676
|
+
* @param {string} organizationId the Organization identifier
|
|
4677
|
+
* @param {string} datasetId the dataset identifier
|
|
4678
|
+
* @param {string} jobId the job identifier
|
|
4679
|
+
* @param {*} [options] Override http request option.
|
|
4680
|
+
* @throws {RequiredError}
|
|
4681
|
+
*/
|
|
4682
|
+
async getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
4683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options);
|
|
4684
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4685
|
+
},
|
|
4686
|
+
/**
|
|
4687
|
+
* get entities in a graph instance
|
|
4688
|
+
* @summary Get entities in a graph instance
|
|
4689
|
+
* @param {string} organizationId the Organization identifier
|
|
4690
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4691
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4692
|
+
* @param {Array<string>} ids the entities to get
|
|
4693
|
+
* @param {*} [options] Override http request option.
|
|
4694
|
+
* @throws {RequiredError}
|
|
4695
|
+
*/
|
|
4696
|
+
async getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
4697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTwingraphEntities(organizationId, datasetId, type, ids, options);
|
|
4698
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4699
|
+
},
|
|
4700
|
+
/**
|
|
4701
|
+
* Refresh ADT, Storage dataset
|
|
4702
|
+
* @summary Refresh dataset
|
|
4703
|
+
* @param {string} organizationId the Organization identifier
|
|
4704
|
+
* @param {string} datasetId the Dataset identifier
|
|
4705
|
+
* @param {*} [options] Override http request option.
|
|
4706
|
+
* @throws {RequiredError}
|
|
4707
|
+
*/
|
|
4708
|
+
async refreshDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetTwinGraphInfo>> {
|
|
4709
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshDataset(organizationId, datasetId, options);
|
|
4710
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4711
|
+
},
|
|
4712
|
+
/**
|
|
4713
|
+
*
|
|
4714
|
+
* @summary Remove all Dataset Compatibility elements from the Dataset specified
|
|
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 removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4721
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllDatasetCompatibilityElements(organizationId, datasetId, options);
|
|
4722
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4723
|
+
},
|
|
4724
|
+
/**
|
|
4725
|
+
*
|
|
4726
|
+
* @summary Remove the specified access from the given Dataset
|
|
3490
4727
|
* @param {string} organizationId the Organization identifier
|
|
3491
4728
|
* @param {string} datasetId the Dataset identifier
|
|
4729
|
+
* @param {string} identityId the User identifier
|
|
3492
4730
|
* @param {*} [options] Override http request option.
|
|
3493
4731
|
* @throws {RequiredError}
|
|
3494
4732
|
*/
|
|
3495
|
-
async
|
|
3496
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4733
|
+
async removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4734
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeDatasetAccessControl(organizationId, datasetId, identityId, options);
|
|
3497
4735
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3498
4736
|
},
|
|
3499
4737
|
/**
|
|
3500
4738
|
*
|
|
3501
|
-
* @summary
|
|
4739
|
+
* @summary Search Datasets
|
|
3502
4740
|
* @param {string} organizationId the Organization identifier
|
|
4741
|
+
* @param {DatasetSearch} datasetSearch the Dataset search parameters
|
|
3503
4742
|
* @param {number} [page] page number to query
|
|
3504
4743
|
* @param {number} [size] amount of result by page
|
|
3505
4744
|
* @param {*} [options] Override http request option.
|
|
3506
4745
|
* @throws {RequiredError}
|
|
3507
4746
|
*/
|
|
3508
|
-
async
|
|
3509
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4747
|
+
async searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
|
|
4748
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options);
|
|
3510
4749
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3511
4750
|
},
|
|
3512
4751
|
/**
|
|
3513
|
-
*
|
|
3514
|
-
* @summary
|
|
4752
|
+
* Run a query on a graph instance and return the result as a zip file in async mode
|
|
4753
|
+
* @summary Run a query on a graph instance and return the result as a zip file in async mode
|
|
4754
|
+
* @param {string} organizationId the Organization identifier
|
|
4755
|
+
* @param {string} datasetId the Graph Identifier
|
|
4756
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
4757
|
+
* @param {*} [options] Override http request option.
|
|
4758
|
+
* @throws {RequiredError}
|
|
4759
|
+
*/
|
|
4760
|
+
async twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetTwinGraphHash>> {
|
|
4761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options);
|
|
4762
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4763
|
+
},
|
|
4764
|
+
/**
|
|
4765
|
+
* Async batch update by loading a CSV file on a graph instance
|
|
4766
|
+
* @summary Async batch update by loading a CSV file on a graph instance
|
|
4767
|
+
* @param {string} organizationId the Organization identifier
|
|
4768
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4769
|
+
* @param {DatasetTwinGraphQuery} twinGraphQuery
|
|
4770
|
+
* @param {any} body
|
|
4771
|
+
* @param {*} [options] Override http request option.
|
|
4772
|
+
* @throws {RequiredError}
|
|
4773
|
+
*/
|
|
4774
|
+
async twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphBatchResult>> {
|
|
4775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options);
|
|
4776
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4777
|
+
},
|
|
4778
|
+
/**
|
|
4779
|
+
* Run a query on a graph instance and return the result as a json
|
|
4780
|
+
* @summary Run a query on a graph instance and return the result as a json
|
|
3515
4781
|
* @param {string} organizationId the Organization identifier
|
|
3516
4782
|
* @param {string} datasetId the Dataset identifier
|
|
4783
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
3517
4784
|
* @param {*} [options] Override http request option.
|
|
3518
4785
|
* @throws {RequiredError}
|
|
3519
4786
|
*/
|
|
3520
|
-
async
|
|
3521
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4787
|
+
async twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
4788
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options);
|
|
3522
4789
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3523
4790
|
},
|
|
3524
4791
|
/**
|
|
3525
4792
|
*
|
|
3526
|
-
* @summary
|
|
4793
|
+
* @summary Update a dataset
|
|
3527
4794
|
* @param {string} organizationId the Organization identifier
|
|
3528
|
-
* @param {
|
|
4795
|
+
* @param {string} datasetId the Dataset identifier
|
|
4796
|
+
* @param {Dataset} dataset the new Dataset details.
|
|
3529
4797
|
* @param {*} [options] Override http request option.
|
|
3530
4798
|
* @throws {RequiredError}
|
|
3531
4799
|
*/
|
|
3532
|
-
async
|
|
3533
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4800
|
+
async updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
|
|
4801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDataset(organizationId, datasetId, dataset, options);
|
|
3534
4802
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3535
4803
|
},
|
|
3536
4804
|
/**
|
|
3537
4805
|
*
|
|
3538
|
-
* @summary
|
|
4806
|
+
* @summary Update the specified access to User for a Dataset
|
|
3539
4807
|
* @param {string} organizationId the Organization identifier
|
|
3540
4808
|
* @param {string} datasetId the Dataset identifier
|
|
4809
|
+
* @param {string} identityId the User identifier
|
|
4810
|
+
* @param {DatasetRole} datasetRole The new Dataset Access Control
|
|
3541
4811
|
* @param {*} [options] Override http request option.
|
|
3542
4812
|
* @throws {RequiredError}
|
|
3543
4813
|
*/
|
|
3544
|
-
async
|
|
3545
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4814
|
+
async updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DatasetAccessControl>> {
|
|
4815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options);
|
|
3546
4816
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3547
4817
|
},
|
|
3548
4818
|
/**
|
|
3549
|
-
*
|
|
3550
|
-
* @summary
|
|
4819
|
+
* update entities in a graph instance
|
|
4820
|
+
* @summary Update entities in a graph instance
|
|
3551
4821
|
* @param {string} organizationId the Organization identifier
|
|
3552
|
-
* @param {
|
|
3553
|
-
* @param {
|
|
3554
|
-
* @param {
|
|
4822
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4823
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4824
|
+
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
3555
4825
|
* @param {*} [options] Override http request option.
|
|
3556
4826
|
* @throws {RequiredError}
|
|
3557
4827
|
*/
|
|
3558
|
-
async
|
|
3559
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4828
|
+
async updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
4829
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options);
|
|
3560
4830
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3561
4831
|
},
|
|
3562
4832
|
/**
|
|
3563
|
-
*
|
|
3564
|
-
* @summary
|
|
4833
|
+
* Upload Twingraph ZIP
|
|
4834
|
+
* @summary Upload Twingraph with ZIP File
|
|
3565
4835
|
* @param {string} organizationId the Organization identifier
|
|
3566
4836
|
* @param {string} datasetId the Dataset identifier
|
|
3567
|
-
* @param {
|
|
4837
|
+
* @param {any} body
|
|
3568
4838
|
* @param {*} [options] Override http request option.
|
|
3569
4839
|
* @throws {RequiredError}
|
|
3570
4840
|
*/
|
|
3571
|
-
async
|
|
3572
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4841
|
+
async uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadTwingraph(organizationId, datasetId, body, options);
|
|
3573
4843
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3574
4844
|
},
|
|
3575
4845
|
}
|
|
@@ -3582,6 +4852,18 @@ export const DatasetApiFp = function(configuration?: Configuration) {
|
|
|
3582
4852
|
export const DatasetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3583
4853
|
const localVarFp = DatasetApiFp(configuration)
|
|
3584
4854
|
return {
|
|
4855
|
+
/**
|
|
4856
|
+
*
|
|
4857
|
+
* @summary Add a control access to the Dataset
|
|
4858
|
+
* @param {string} organizationId the Organization identifier
|
|
4859
|
+
* @param {string} datasetId the Dataset identifier
|
|
4860
|
+
* @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
|
|
4861
|
+
* @param {*} [options] Override http request option.
|
|
4862
|
+
* @throws {RequiredError}
|
|
4863
|
+
*/
|
|
4864
|
+
addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: any): AxiosPromise<DatasetAccessControl> {
|
|
4865
|
+
return localVarFp.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then((request) => request(axios, basePath));
|
|
4866
|
+
},
|
|
3585
4867
|
/**
|
|
3586
4868
|
*
|
|
3587
4869
|
* @summary Add Dataset Compatibility elements.
|
|
@@ -3616,6 +4898,31 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3616
4898
|
createDataset(organizationId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
|
|
3617
4899
|
return localVarFp.createDataset(organizationId, dataset, options).then((request) => request(axios, basePath));
|
|
3618
4900
|
},
|
|
4901
|
+
/**
|
|
4902
|
+
* Run a query on a dataset
|
|
4903
|
+
* @summary Run a query on a dataset
|
|
4904
|
+
* @param {string} organizationId the Organization identifier
|
|
4905
|
+
* @param {string} datasetId the Dataset identifier
|
|
4906
|
+
* @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
|
|
4907
|
+
* @param {*} [options] Override http request option.
|
|
4908
|
+
* @throws {RequiredError}
|
|
4909
|
+
*/
|
|
4910
|
+
createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: any): AxiosPromise<Dataset> {
|
|
4911
|
+
return localVarFp.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then((request) => request(axios, basePath));
|
|
4912
|
+
},
|
|
4913
|
+
/**
|
|
4914
|
+
* create new entities in a graph instance
|
|
4915
|
+
* @summary Create new entities in a graph instance
|
|
4916
|
+
* @param {string} organizationId the Organization identifier
|
|
4917
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4918
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4919
|
+
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
4920
|
+
* @param {*} [options] Override http request option.
|
|
4921
|
+
* @throws {RequiredError}
|
|
4922
|
+
*/
|
|
4923
|
+
createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
|
|
4924
|
+
return localVarFp.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(axios, basePath));
|
|
4925
|
+
},
|
|
3619
4926
|
/**
|
|
3620
4927
|
*
|
|
3621
4928
|
* @summary Delete a dataset
|
|
@@ -3627,6 +4934,30 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3627
4934
|
deleteDataset(organizationId: string, datasetId: string, options?: any): AxiosPromise<void> {
|
|
3628
4935
|
return localVarFp.deleteDataset(organizationId, datasetId, options).then((request) => request(axios, basePath));
|
|
3629
4936
|
},
|
|
4937
|
+
/**
|
|
4938
|
+
* delete entities in a graph instance
|
|
4939
|
+
* @summary Delete entities in a graph instance
|
|
4940
|
+
* @param {string} organizationId the Organization identifier
|
|
4941
|
+
* @param {string} datasetId the Dataset Identifier
|
|
4942
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
4943
|
+
* @param {Array<string>} ids the entities to delete
|
|
4944
|
+
* @param {*} [options] Override http request option.
|
|
4945
|
+
* @throws {RequiredError}
|
|
4946
|
+
*/
|
|
4947
|
+
deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<void> {
|
|
4948
|
+
return localVarFp.deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(axios, basePath));
|
|
4949
|
+
},
|
|
4950
|
+
/**
|
|
4951
|
+
* Download a graph compressed in a zip file
|
|
4952
|
+
* @summary Download a graph compressed in a zip file
|
|
4953
|
+
* @param {string} organizationId the Organization identifier
|
|
4954
|
+
* @param {string} hash the Graph download identifier
|
|
4955
|
+
* @param {*} [options] Override http request option.
|
|
4956
|
+
* @throws {RequiredError}
|
|
4957
|
+
*/
|
|
4958
|
+
downloadTwingraph(organizationId: string, hash: string, options?: any): AxiosPromise<any> {
|
|
4959
|
+
return localVarFp.downloadTwingraph(organizationId, hash, options).then((request) => request(axios, basePath));
|
|
4960
|
+
},
|
|
3630
4961
|
/**
|
|
3631
4962
|
*
|
|
3632
4963
|
* @summary List all Datasets
|
|
@@ -3652,14 +4983,62 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3652
4983
|
},
|
|
3653
4984
|
/**
|
|
3654
4985
|
*
|
|
3655
|
-
* @summary
|
|
4986
|
+
* @summary Get a control access for the Dataset
|
|
4987
|
+
* @param {string} organizationId the Organization identifier
|
|
4988
|
+
* @param {string} datasetId the Dataset identifier
|
|
4989
|
+
* @param {string} identityId the User identifier
|
|
4990
|
+
* @param {*} [options] Override http request option.
|
|
4991
|
+
* @throws {RequiredError}
|
|
4992
|
+
*/
|
|
4993
|
+
getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<DatasetAccessControl> {
|
|
4994
|
+
return localVarFp.getDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(axios, basePath));
|
|
4995
|
+
},
|
|
4996
|
+
/**
|
|
4997
|
+
*
|
|
4998
|
+
* @summary Get the Dataset security users list
|
|
4999
|
+
* @param {string} organizationId the Organization identifier
|
|
5000
|
+
* @param {string} datasetId the Dataset identifier
|
|
5001
|
+
* @param {*} [options] Override http request option.
|
|
5002
|
+
* @throws {RequiredError}
|
|
5003
|
+
*/
|
|
5004
|
+
getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: any): AxiosPromise<Array<string>> {
|
|
5005
|
+
return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then((request) => request(axios, basePath));
|
|
5006
|
+
},
|
|
5007
|
+
/**
|
|
5008
|
+
* Get the status of a twingraph import
|
|
5009
|
+
* @summary Get the status of twingraph import
|
|
5010
|
+
* @param {string} organizationId the Organization identifier
|
|
5011
|
+
* @param {string} datasetId the dataset identifier
|
|
5012
|
+
* @param {string} jobId the job identifier
|
|
5013
|
+
* @param {*} [options] Override http request option.
|
|
5014
|
+
* @throws {RequiredError}
|
|
5015
|
+
*/
|
|
5016
|
+
getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: any): AxiosPromise<string> {
|
|
5017
|
+
return localVarFp.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then((request) => request(axios, basePath));
|
|
5018
|
+
},
|
|
5019
|
+
/**
|
|
5020
|
+
* get entities in a graph instance
|
|
5021
|
+
* @summary Get entities in a graph instance
|
|
3656
5022
|
* @param {string} organizationId the Organization identifier
|
|
3657
|
-
* @param {
|
|
5023
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5024
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5025
|
+
* @param {Array<string>} ids the entities to get
|
|
5026
|
+
* @param {*} [options] Override http request option.
|
|
5027
|
+
* @throws {RequiredError}
|
|
5028
|
+
*/
|
|
5029
|
+
getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<string> {
|
|
5030
|
+
return localVarFp.getTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(axios, basePath));
|
|
5031
|
+
},
|
|
5032
|
+
/**
|
|
5033
|
+
* Refresh ADT, Storage dataset
|
|
5034
|
+
* @summary Refresh dataset
|
|
5035
|
+
* @param {string} organizationId the Organization identifier
|
|
5036
|
+
* @param {string} datasetId the Dataset identifier
|
|
3658
5037
|
* @param {*} [options] Override http request option.
|
|
3659
5038
|
* @throws {RequiredError}
|
|
3660
5039
|
*/
|
|
3661
|
-
|
|
3662
|
-
return localVarFp.
|
|
5040
|
+
refreshDataset(organizationId: string, datasetId: string, options?: any): AxiosPromise<DatasetTwinGraphInfo> {
|
|
5041
|
+
return localVarFp.refreshDataset(organizationId, datasetId, options).then((request) => request(axios, basePath));
|
|
3663
5042
|
},
|
|
3664
5043
|
/**
|
|
3665
5044
|
*
|
|
@@ -3672,6 +5051,18 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3672
5051
|
removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: any): AxiosPromise<void> {
|
|
3673
5052
|
return localVarFp.removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(axios, basePath));
|
|
3674
5053
|
},
|
|
5054
|
+
/**
|
|
5055
|
+
*
|
|
5056
|
+
* @summary Remove the specified access from the given Dataset
|
|
5057
|
+
* @param {string} organizationId the Organization identifier
|
|
5058
|
+
* @param {string} datasetId the Dataset identifier
|
|
5059
|
+
* @param {string} identityId the User identifier
|
|
5060
|
+
* @param {*} [options] Override http request option.
|
|
5061
|
+
* @throws {RequiredError}
|
|
5062
|
+
*/
|
|
5063
|
+
removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
5064
|
+
return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(axios, basePath));
|
|
5065
|
+
},
|
|
3675
5066
|
/**
|
|
3676
5067
|
*
|
|
3677
5068
|
* @summary Search Datasets
|
|
@@ -3685,6 +5076,43 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3685
5076
|
searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: any): AxiosPromise<Array<Dataset>> {
|
|
3686
5077
|
return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(axios, basePath));
|
|
3687
5078
|
},
|
|
5079
|
+
/**
|
|
5080
|
+
* Run a query on a graph instance and return the result as a zip file in async mode
|
|
5081
|
+
* @summary Run a query on a graph instance and return the result as a zip file in async mode
|
|
5082
|
+
* @param {string} organizationId the Organization identifier
|
|
5083
|
+
* @param {string} datasetId the Graph Identifier
|
|
5084
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
5085
|
+
* @param {*} [options] Override http request option.
|
|
5086
|
+
* @throws {RequiredError}
|
|
5087
|
+
*/
|
|
5088
|
+
twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: any): AxiosPromise<DatasetTwinGraphHash> {
|
|
5089
|
+
return localVarFp.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(axios, basePath));
|
|
5090
|
+
},
|
|
5091
|
+
/**
|
|
5092
|
+
* Async batch update by loading a CSV file on a graph instance
|
|
5093
|
+
* @summary Async batch update by loading a CSV file on a graph instance
|
|
5094
|
+
* @param {string} organizationId the Organization identifier
|
|
5095
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5096
|
+
* @param {DatasetTwinGraphQuery} twinGraphQuery
|
|
5097
|
+
* @param {any} body
|
|
5098
|
+
* @param {*} [options] Override http request option.
|
|
5099
|
+
* @throws {RequiredError}
|
|
5100
|
+
*/
|
|
5101
|
+
twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: any): AxiosPromise<TwinGraphBatchResult> {
|
|
5102
|
+
return localVarFp.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then((request) => request(axios, basePath));
|
|
5103
|
+
},
|
|
5104
|
+
/**
|
|
5105
|
+
* Run a query on a graph instance and return the result as a json
|
|
5106
|
+
* @summary Run a query on a graph instance and return the result as a json
|
|
5107
|
+
* @param {string} organizationId the Organization identifier
|
|
5108
|
+
* @param {string} datasetId the Dataset identifier
|
|
5109
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
5110
|
+
* @param {*} [options] Override http request option.
|
|
5111
|
+
* @throws {RequiredError}
|
|
5112
|
+
*/
|
|
5113
|
+
twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: any): AxiosPromise<string> {
|
|
5114
|
+
return localVarFp.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(axios, basePath));
|
|
5115
|
+
},
|
|
3688
5116
|
/**
|
|
3689
5117
|
*
|
|
3690
5118
|
* @summary Update a dataset
|
|
@@ -3697,6 +5125,44 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3697
5125
|
updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
|
|
3698
5126
|
return localVarFp.updateDataset(organizationId, datasetId, dataset, options).then((request) => request(axios, basePath));
|
|
3699
5127
|
},
|
|
5128
|
+
/**
|
|
5129
|
+
*
|
|
5130
|
+
* @summary Update the specified access to User for a Dataset
|
|
5131
|
+
* @param {string} organizationId the Organization identifier
|
|
5132
|
+
* @param {string} datasetId the Dataset identifier
|
|
5133
|
+
* @param {string} identityId the User identifier
|
|
5134
|
+
* @param {DatasetRole} datasetRole The new Dataset Access Control
|
|
5135
|
+
* @param {*} [options] Override http request option.
|
|
5136
|
+
* @throws {RequiredError}
|
|
5137
|
+
*/
|
|
5138
|
+
updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: any): AxiosPromise<DatasetAccessControl> {
|
|
5139
|
+
return localVarFp.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then((request) => request(axios, basePath));
|
|
5140
|
+
},
|
|
5141
|
+
/**
|
|
5142
|
+
* update entities in a graph instance
|
|
5143
|
+
* @summary Update entities in a graph instance
|
|
5144
|
+
* @param {string} organizationId the Organization identifier
|
|
5145
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5146
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5147
|
+
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
5148
|
+
* @param {*} [options] Override http request option.
|
|
5149
|
+
* @throws {RequiredError}
|
|
5150
|
+
*/
|
|
5151
|
+
updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
|
|
5152
|
+
return localVarFp.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(axios, basePath));
|
|
5153
|
+
},
|
|
5154
|
+
/**
|
|
5155
|
+
* Upload Twingraph ZIP
|
|
5156
|
+
* @summary Upload Twingraph with ZIP File
|
|
5157
|
+
* @param {string} organizationId the Organization identifier
|
|
5158
|
+
* @param {string} datasetId the Dataset identifier
|
|
5159
|
+
* @param {any} body
|
|
5160
|
+
* @param {*} [options] Override http request option.
|
|
5161
|
+
* @throws {RequiredError}
|
|
5162
|
+
*/
|
|
5163
|
+
uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: any): AxiosPromise<void> {
|
|
5164
|
+
return localVarFp.uploadTwingraph(organizationId, datasetId, body, options).then((request) => request(axios, basePath));
|
|
5165
|
+
},
|
|
3700
5166
|
};
|
|
3701
5167
|
};
|
|
3702
5168
|
|
|
@@ -3707,6 +5173,20 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
|
|
|
3707
5173
|
* @extends {BaseAPI}
|
|
3708
5174
|
*/
|
|
3709
5175
|
export class DatasetApi extends BaseAPI {
|
|
5176
|
+
/**
|
|
5177
|
+
*
|
|
5178
|
+
* @summary Add a control access to the Dataset
|
|
5179
|
+
* @param {string} organizationId the Organization identifier
|
|
5180
|
+
* @param {string} datasetId the Dataset identifier
|
|
5181
|
+
* @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
|
|
5182
|
+
* @param {*} [options] Override http request option.
|
|
5183
|
+
* @throws {RequiredError}
|
|
5184
|
+
* @memberof DatasetApi
|
|
5185
|
+
*/
|
|
5186
|
+
public addDatasetAccessControl(organizationId: string, datasetId: string, datasetAccessControl: DatasetAccessControl, options?: AxiosRequestConfig) {
|
|
5187
|
+
return DatasetApiFp(this.configuration).addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
5188
|
+
}
|
|
5189
|
+
|
|
3710
5190
|
/**
|
|
3711
5191
|
*
|
|
3712
5192
|
* @summary Add Dataset Compatibility elements.
|
|
@@ -3717,47 +5197,104 @@ export class DatasetApi extends BaseAPI {
|
|
|
3717
5197
|
* @throws {RequiredError}
|
|
3718
5198
|
* @memberof DatasetApi
|
|
3719
5199
|
*/
|
|
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));
|
|
5200
|
+
public addOrReplaceDatasetCompatibilityElements(organizationId: string, datasetId: string, datasetCompatibility: Array<DatasetCompatibility>, options?: AxiosRequestConfig) {
|
|
5201
|
+
return DatasetApiFp(this.configuration).addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options).then((request) => request(this.axios, this.basePath));
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
/**
|
|
5205
|
+
*
|
|
5206
|
+
* @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
|
|
5207
|
+
* @param {string} organizationId the Organization identifier
|
|
5208
|
+
* @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
|
|
5209
|
+
* @param {*} [options] Override http request option.
|
|
5210
|
+
* @throws {RequiredError}
|
|
5211
|
+
* @memberof DatasetApi
|
|
5212
|
+
*/
|
|
5213
|
+
public copyDataset(organizationId: string, datasetCopyParameters: DatasetCopyParameters, options?: AxiosRequestConfig) {
|
|
5214
|
+
return DatasetApiFp(this.configuration).copyDataset(organizationId, datasetCopyParameters, options).then((request) => request(this.axios, this.basePath));
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
/**
|
|
5218
|
+
*
|
|
5219
|
+
* @summary Create a new Dataset
|
|
5220
|
+
* @param {string} organizationId the Organization identifier
|
|
5221
|
+
* @param {Dataset} dataset the Dataset to create
|
|
5222
|
+
* @param {*} [options] Override http request option.
|
|
5223
|
+
* @throws {RequiredError}
|
|
5224
|
+
* @memberof DatasetApi
|
|
5225
|
+
*/
|
|
5226
|
+
public createDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig) {
|
|
5227
|
+
return DatasetApiFp(this.configuration).createDataset(organizationId, dataset, options).then((request) => request(this.axios, this.basePath));
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
/**
|
|
5231
|
+
* Run a query on a dataset
|
|
5232
|
+
* @summary Run a query on a dataset
|
|
5233
|
+
* @param {string} organizationId the Organization identifier
|
|
5234
|
+
* @param {string} datasetId the Dataset identifier
|
|
5235
|
+
* @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
|
|
5236
|
+
* @param {*} [options] Override http request option.
|
|
5237
|
+
* @throws {RequiredError}
|
|
5238
|
+
* @memberof DatasetApi
|
|
5239
|
+
*/
|
|
5240
|
+
public createSubDataset(organizationId: string, datasetId: string, subDatasetGraphQuery: SubDatasetGraphQuery, options?: AxiosRequestConfig) {
|
|
5241
|
+
return DatasetApiFp(this.configuration).createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then((request) => request(this.axios, this.basePath));
|
|
5242
|
+
}
|
|
5243
|
+
|
|
5244
|
+
/**
|
|
5245
|
+
* create new entities in a graph instance
|
|
5246
|
+
* @summary Create new entities in a graph instance
|
|
5247
|
+
* @param {string} organizationId the Organization identifier
|
|
5248
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5249
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5250
|
+
* @param {Array<GraphProperties>} graphProperties the entities to create
|
|
5251
|
+
* @param {*} [options] Override http request option.
|
|
5252
|
+
* @throws {RequiredError}
|
|
5253
|
+
* @memberof DatasetApi
|
|
5254
|
+
*/
|
|
5255
|
+
public createTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
|
|
5256
|
+
return DatasetApiFp(this.configuration).createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
|
|
3722
5257
|
}
|
|
3723
5258
|
|
|
3724
5259
|
/**
|
|
3725
5260
|
*
|
|
3726
|
-
* @summary
|
|
5261
|
+
* @summary Delete a dataset
|
|
3727
5262
|
* @param {string} organizationId the Organization identifier
|
|
3728
|
-
* @param {
|
|
5263
|
+
* @param {string} datasetId the Dataset identifier
|
|
3729
5264
|
* @param {*} [options] Override http request option.
|
|
3730
5265
|
* @throws {RequiredError}
|
|
3731
5266
|
* @memberof DatasetApi
|
|
3732
5267
|
*/
|
|
3733
|
-
public
|
|
3734
|
-
return DatasetApiFp(this.configuration).
|
|
5268
|
+
public deleteDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
|
|
5269
|
+
return DatasetApiFp(this.configuration).deleteDataset(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
|
|
3735
5270
|
}
|
|
3736
5271
|
|
|
3737
5272
|
/**
|
|
3738
|
-
*
|
|
3739
|
-
* @summary
|
|
5273
|
+
* delete entities in a graph instance
|
|
5274
|
+
* @summary Delete entities in a graph instance
|
|
3740
5275
|
* @param {string} organizationId the Organization identifier
|
|
3741
|
-
* @param {
|
|
5276
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5277
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5278
|
+
* @param {Array<string>} ids the entities to delete
|
|
3742
5279
|
* @param {*} [options] Override http request option.
|
|
3743
5280
|
* @throws {RequiredError}
|
|
3744
5281
|
* @memberof DatasetApi
|
|
3745
5282
|
*/
|
|
3746
|
-
public
|
|
3747
|
-
return DatasetApiFp(this.configuration).
|
|
5283
|
+
public deleteTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
|
|
5284
|
+
return DatasetApiFp(this.configuration).deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(this.axios, this.basePath));
|
|
3748
5285
|
}
|
|
3749
5286
|
|
|
3750
5287
|
/**
|
|
3751
|
-
*
|
|
3752
|
-
* @summary
|
|
5288
|
+
* Download a graph compressed in a zip file
|
|
5289
|
+
* @summary Download a graph compressed in a zip file
|
|
3753
5290
|
* @param {string} organizationId the Organization identifier
|
|
3754
|
-
* @param {string}
|
|
5291
|
+
* @param {string} hash the Graph download identifier
|
|
3755
5292
|
* @param {*} [options] Override http request option.
|
|
3756
5293
|
* @throws {RequiredError}
|
|
3757
5294
|
* @memberof DatasetApi
|
|
3758
5295
|
*/
|
|
3759
|
-
public
|
|
3760
|
-
return DatasetApiFp(this.configuration).
|
|
5296
|
+
public downloadTwingraph(organizationId: string, hash: string, options?: AxiosRequestConfig) {
|
|
5297
|
+
return DatasetApiFp(this.configuration).downloadTwingraph(organizationId, hash, options).then((request) => request(this.axios, this.basePath));
|
|
3761
5298
|
}
|
|
3762
5299
|
|
|
3763
5300
|
/**
|
|
@@ -3789,15 +5326,71 @@ export class DatasetApi extends BaseAPI {
|
|
|
3789
5326
|
|
|
3790
5327
|
/**
|
|
3791
5328
|
*
|
|
3792
|
-
* @summary
|
|
5329
|
+
* @summary Get a control access for the Dataset
|
|
5330
|
+
* @param {string} organizationId the Organization identifier
|
|
5331
|
+
* @param {string} datasetId the Dataset identifier
|
|
5332
|
+
* @param {string} identityId the User identifier
|
|
5333
|
+
* @param {*} [options] Override http request option.
|
|
5334
|
+
* @throws {RequiredError}
|
|
5335
|
+
* @memberof DatasetApi
|
|
5336
|
+
*/
|
|
5337
|
+
public getDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
5338
|
+
return DatasetApiFp(this.configuration).getDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
/**
|
|
5342
|
+
*
|
|
5343
|
+
* @summary Get the Dataset security users list
|
|
5344
|
+
* @param {string} organizationId the Organization identifier
|
|
5345
|
+
* @param {string} datasetId the Dataset identifier
|
|
5346
|
+
* @param {*} [options] Override http request option.
|
|
5347
|
+
* @throws {RequiredError}
|
|
5348
|
+
* @memberof DatasetApi
|
|
5349
|
+
*/
|
|
5350
|
+
public getDatasetSecurityUsers(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
|
|
5351
|
+
return DatasetApiFp(this.configuration).getDatasetSecurityUsers(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
/**
|
|
5355
|
+
* Get the status of a twingraph import
|
|
5356
|
+
* @summary Get the status of twingraph import
|
|
5357
|
+
* @param {string} organizationId the Organization identifier
|
|
5358
|
+
* @param {string} datasetId the dataset identifier
|
|
5359
|
+
* @param {string} jobId the job identifier
|
|
5360
|
+
* @param {*} [options] Override http request option.
|
|
5361
|
+
* @throws {RequiredError}
|
|
5362
|
+
* @memberof DatasetApi
|
|
5363
|
+
*/
|
|
5364
|
+
public getDatasetTwingraphStatus(organizationId: string, datasetId: string, jobId: string, options?: AxiosRequestConfig) {
|
|
5365
|
+
return DatasetApiFp(this.configuration).getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then((request) => request(this.axios, this.basePath));
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
/**
|
|
5369
|
+
* get entities in a graph instance
|
|
5370
|
+
* @summary Get entities in a graph instance
|
|
5371
|
+
* @param {string} organizationId the Organization identifier
|
|
5372
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5373
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5374
|
+
* @param {Array<string>} ids the entities to get
|
|
5375
|
+
* @param {*} [options] Override http request option.
|
|
5376
|
+
* @throws {RequiredError}
|
|
5377
|
+
* @memberof DatasetApi
|
|
5378
|
+
*/
|
|
5379
|
+
public getTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
|
|
5380
|
+
return DatasetApiFp(this.configuration).getTwingraphEntities(organizationId, datasetId, type, ids, options).then((request) => request(this.axios, this.basePath));
|
|
5381
|
+
}
|
|
5382
|
+
|
|
5383
|
+
/**
|
|
5384
|
+
* Refresh ADT, Storage dataset
|
|
5385
|
+
* @summary Refresh dataset
|
|
3793
5386
|
* @param {string} organizationId the Organization identifier
|
|
3794
|
-
* @param {
|
|
5387
|
+
* @param {string} datasetId the Dataset identifier
|
|
3795
5388
|
* @param {*} [options] Override http request option.
|
|
3796
5389
|
* @throws {RequiredError}
|
|
3797
5390
|
* @memberof DatasetApi
|
|
3798
5391
|
*/
|
|
3799
|
-
public
|
|
3800
|
-
return DatasetApiFp(this.configuration).
|
|
5392
|
+
public refreshDataset(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
|
|
5393
|
+
return DatasetApiFp(this.configuration).refreshDataset(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
|
|
3801
5394
|
}
|
|
3802
5395
|
|
|
3803
5396
|
/**
|
|
@@ -3813,6 +5406,20 @@ export class DatasetApi extends BaseAPI {
|
|
|
3813
5406
|
return DatasetApiFp(this.configuration).removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
|
|
3814
5407
|
}
|
|
3815
5408
|
|
|
5409
|
+
/**
|
|
5410
|
+
*
|
|
5411
|
+
* @summary Remove the specified access from the given Dataset
|
|
5412
|
+
* @param {string} organizationId the Organization identifier
|
|
5413
|
+
* @param {string} datasetId the Dataset identifier
|
|
5414
|
+
* @param {string} identityId the User identifier
|
|
5415
|
+
* @param {*} [options] Override http request option.
|
|
5416
|
+
* @throws {RequiredError}
|
|
5417
|
+
* @memberof DatasetApi
|
|
5418
|
+
*/
|
|
5419
|
+
public removeDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
5420
|
+
return DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
5421
|
+
}
|
|
5422
|
+
|
|
3816
5423
|
/**
|
|
3817
5424
|
*
|
|
3818
5425
|
* @summary Search Datasets
|
|
@@ -3828,6 +5435,49 @@ export class DatasetApi extends BaseAPI {
|
|
|
3828
5435
|
return DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
3829
5436
|
}
|
|
3830
5437
|
|
|
5438
|
+
/**
|
|
5439
|
+
* Run a query on a graph instance and return the result as a zip file in async mode
|
|
5440
|
+
* @summary Run a query on a graph instance and return the result as a zip file in async mode
|
|
5441
|
+
* @param {string} organizationId the Organization identifier
|
|
5442
|
+
* @param {string} datasetId the Graph Identifier
|
|
5443
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
5444
|
+
* @param {*} [options] Override http request option.
|
|
5445
|
+
* @throws {RequiredError}
|
|
5446
|
+
* @memberof DatasetApi
|
|
5447
|
+
*/
|
|
5448
|
+
public twingraphBatchQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig) {
|
|
5449
|
+
return DatasetApiFp(this.configuration).twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(this.axios, this.basePath));
|
|
5450
|
+
}
|
|
5451
|
+
|
|
5452
|
+
/**
|
|
5453
|
+
* Async batch update by loading a CSV file on a graph instance
|
|
5454
|
+
* @summary Async batch update by loading a CSV file on a graph instance
|
|
5455
|
+
* @param {string} organizationId the Organization identifier
|
|
5456
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5457
|
+
* @param {DatasetTwinGraphQuery} twinGraphQuery
|
|
5458
|
+
* @param {any} body
|
|
5459
|
+
* @param {*} [options] Override http request option.
|
|
5460
|
+
* @throws {RequiredError}
|
|
5461
|
+
* @memberof DatasetApi
|
|
5462
|
+
*/
|
|
5463
|
+
public twingraphBatchUpdate(organizationId: string, datasetId: string, twinGraphQuery: DatasetTwinGraphQuery, body: any, options?: AxiosRequestConfig) {
|
|
5464
|
+
return DatasetApiFp(this.configuration).twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then((request) => request(this.axios, this.basePath));
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
/**
|
|
5468
|
+
* Run a query on a graph instance and return the result as a json
|
|
5469
|
+
* @summary Run a query on a graph instance and return the result as a json
|
|
5470
|
+
* @param {string} organizationId the Organization identifier
|
|
5471
|
+
* @param {string} datasetId the Dataset identifier
|
|
5472
|
+
* @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
|
|
5473
|
+
* @param {*} [options] Override http request option.
|
|
5474
|
+
* @throws {RequiredError}
|
|
5475
|
+
* @memberof DatasetApi
|
|
5476
|
+
*/
|
|
5477
|
+
public twingraphQuery(organizationId: string, datasetId: string, datasetTwinGraphQuery: DatasetTwinGraphQuery, options?: AxiosRequestConfig) {
|
|
5478
|
+
return DatasetApiFp(this.configuration).twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then((request) => request(this.axios, this.basePath));
|
|
5479
|
+
}
|
|
5480
|
+
|
|
3831
5481
|
/**
|
|
3832
5482
|
*
|
|
3833
5483
|
* @summary Update a dataset
|
|
@@ -3841,6 +5491,50 @@ export class DatasetApi extends BaseAPI {
|
|
|
3841
5491
|
public updateDataset(organizationId: string, datasetId: string, dataset: Dataset, options?: AxiosRequestConfig) {
|
|
3842
5492
|
return DatasetApiFp(this.configuration).updateDataset(organizationId, datasetId, dataset, options).then((request) => request(this.axios, this.basePath));
|
|
3843
5493
|
}
|
|
5494
|
+
|
|
5495
|
+
/**
|
|
5496
|
+
*
|
|
5497
|
+
* @summary Update the specified access to User for a Dataset
|
|
5498
|
+
* @param {string} organizationId the Organization identifier
|
|
5499
|
+
* @param {string} datasetId the Dataset identifier
|
|
5500
|
+
* @param {string} identityId the User identifier
|
|
5501
|
+
* @param {DatasetRole} datasetRole The new Dataset Access Control
|
|
5502
|
+
* @param {*} [options] Override http request option.
|
|
5503
|
+
* @throws {RequiredError}
|
|
5504
|
+
* @memberof DatasetApi
|
|
5505
|
+
*/
|
|
5506
|
+
public updateDatasetAccessControl(organizationId: string, datasetId: string, identityId: string, datasetRole: DatasetRole, options?: AxiosRequestConfig) {
|
|
5507
|
+
return DatasetApiFp(this.configuration).updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then((request) => request(this.axios, this.basePath));
|
|
5508
|
+
}
|
|
5509
|
+
|
|
5510
|
+
/**
|
|
5511
|
+
* update entities in a graph instance
|
|
5512
|
+
* @summary Update entities in a graph instance
|
|
5513
|
+
* @param {string} organizationId the Organization identifier
|
|
5514
|
+
* @param {string} datasetId the Dataset Identifier
|
|
5515
|
+
* @param {'node' | 'relationship'} type the entity model type
|
|
5516
|
+
* @param {Array<GraphProperties>} graphProperties the entities to update
|
|
5517
|
+
* @param {*} [options] Override http request option.
|
|
5518
|
+
* @throws {RequiredError}
|
|
5519
|
+
* @memberof DatasetApi
|
|
5520
|
+
*/
|
|
5521
|
+
public updateTwingraphEntities(organizationId: string, datasetId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
|
|
5522
|
+
return DatasetApiFp(this.configuration).updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
|
|
5523
|
+
}
|
|
5524
|
+
|
|
5525
|
+
/**
|
|
5526
|
+
* Upload Twingraph ZIP
|
|
5527
|
+
* @summary Upload Twingraph with ZIP File
|
|
5528
|
+
* @param {string} organizationId the Organization identifier
|
|
5529
|
+
* @param {string} datasetId the Dataset identifier
|
|
5530
|
+
* @param {any} body
|
|
5531
|
+
* @param {*} [options] Override http request option.
|
|
5532
|
+
* @throws {RequiredError}
|
|
5533
|
+
* @memberof DatasetApi
|
|
5534
|
+
*/
|
|
5535
|
+
public uploadTwingraph(organizationId: string, datasetId: string, body: any, options?: AxiosRequestConfig) {
|
|
5536
|
+
return DatasetApiFp(this.configuration).uploadTwingraph(organizationId, datasetId, body, options).then((request) => request(this.axios, this.basePath));
|
|
5537
|
+
}
|
|
3844
5538
|
}
|
|
3845
5539
|
|
|
3846
5540
|
|
|
@@ -4170,46 +5864,6 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
|
|
|
4170
5864
|
options: localVarRequestOptions,
|
|
4171
5865
|
};
|
|
4172
5866
|
},
|
|
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
5867
|
/**
|
|
4214
5868
|
*
|
|
4215
5869
|
* @summary Register a new organization
|
|
@@ -4699,17 +6353,6 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
|
|
|
4699
6353
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options);
|
|
4700
6354
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4701
6355
|
},
|
|
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
6356
|
/**
|
|
4714
6357
|
*
|
|
4715
6358
|
* @summary Register a new organization
|
|
@@ -4910,16 +6553,6 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
|
|
|
4910
6553
|
getOrganizationSecurityUsers(organizationId: string, options?: any): AxiosPromise<Array<string>> {
|
|
4911
6554
|
return localVarFp.getOrganizationSecurityUsers(organizationId, options).then((request) => request(axios, basePath));
|
|
4912
6555
|
},
|
|
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
6556
|
/**
|
|
4924
6557
|
*
|
|
4925
6558
|
* @summary Register a new organization
|
|
@@ -5127,18 +6760,6 @@ export class OrganizationApi extends BaseAPI {
|
|
|
5127
6760
|
return OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
5128
6761
|
}
|
|
5129
6762
|
|
|
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
6763
|
/**
|
|
5143
6764
|
*
|
|
5144
6765
|
* @summary Register a new organization
|
|
@@ -5513,11 +7134,10 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5513
7134
|
* @param {string} organizationId the Organization identifier
|
|
5514
7135
|
* @param {string} workspaceId the Workspace identifier
|
|
5515
7136
|
* @param {string} scenarioId the Scenario identifier
|
|
5516
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
5517
7137
|
* @param {*} [options] Override http request option.
|
|
5518
7138
|
* @throws {RequiredError}
|
|
5519
7139
|
*/
|
|
5520
|
-
deleteScenario: async (organizationId: string, workspaceId: string, scenarioId: string,
|
|
7140
|
+
deleteScenario: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5521
7141
|
// verify required parameter 'organizationId' is not null or undefined
|
|
5522
7142
|
assertParamExists('deleteScenario', 'organizationId', organizationId)
|
|
5523
7143
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
@@ -5543,10 +7163,6 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5543
7163
|
// oauth required
|
|
5544
7164
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
5545
7165
|
|
|
5546
|
-
if (waitRelationshipPropagation !== undefined) {
|
|
5547
|
-
localVarQueryParameter['wait_relationship_propagation'] = waitRelationshipPropagation;
|
|
5548
|
-
}
|
|
5549
|
-
|
|
5550
7166
|
|
|
5551
7167
|
|
|
5552
7168
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5863,20 +7479,24 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5863
7479
|
* @summary Get the Scenario permission by given role
|
|
5864
7480
|
* @param {string} organizationId the Organization identifier
|
|
5865
7481
|
* @param {string} workspaceId the Workspace identifier
|
|
7482
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5866
7483
|
* @param {string} role the Role
|
|
5867
7484
|
* @param {*} [options] Override http request option.
|
|
5868
7485
|
* @throws {RequiredError}
|
|
5869
7486
|
*/
|
|
5870
|
-
getScenarioPermissions: async (organizationId: string, workspaceId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7487
|
+
getScenarioPermissions: async (organizationId: string, workspaceId: string, scenarioId: string, role: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5871
7488
|
// verify required parameter 'organizationId' is not null or undefined
|
|
5872
7489
|
assertParamExists('getScenarioPermissions', 'organizationId', organizationId)
|
|
5873
7490
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
5874
7491
|
assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId)
|
|
7492
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
7493
|
+
assertParamExists('getScenarioPermissions', 'scenarioId', scenarioId)
|
|
5875
7494
|
// verify required parameter 'role' is not null or undefined
|
|
5876
7495
|
assertParamExists('getScenarioPermissions', 'role', role)
|
|
5877
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}`
|
|
7496
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/permissions/{role}`
|
|
5878
7497
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
5879
7498
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
7499
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
5880
7500
|
.replace(`{${"role"}}`, encodeURIComponent(String(role)));
|
|
5881
7501
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5882
7502
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6084,54 +7704,6 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6084
7704
|
options: localVarRequestOptions,
|
|
6085
7705
|
};
|
|
6086
7706
|
},
|
|
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
7707
|
/**
|
|
6136
7708
|
*
|
|
6137
7709
|
* @summary Remove all Parameter Values from the Scenario specified
|
|
@@ -6471,12 +8043,11 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
6471
8043
|
* @param {string} organizationId the Organization identifier
|
|
6472
8044
|
* @param {string} workspaceId the Workspace identifier
|
|
6473
8045
|
* @param {string} scenarioId the Scenario identifier
|
|
6474
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
6475
8046
|
* @param {*} [options] Override http request option.
|
|
6476
8047
|
* @throws {RequiredError}
|
|
6477
8048
|
*/
|
|
6478
|
-
async deleteScenario(organizationId: string, workspaceId: string, scenarioId: string,
|
|
6479
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId,
|
|
8049
|
+
async deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, options);
|
|
6480
8051
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6481
8052
|
},
|
|
6482
8053
|
/**
|
|
@@ -6567,12 +8138,13 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
6567
8138
|
* @summary Get the Scenario permission by given role
|
|
6568
8139
|
* @param {string} organizationId the Organization identifier
|
|
6569
8140
|
* @param {string} workspaceId the Workspace identifier
|
|
8141
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6570
8142
|
* @param {string} role the Role
|
|
6571
8143
|
* @param {*} [options] Override http request option.
|
|
6572
8144
|
* @throws {RequiredError}
|
|
6573
8145
|
*/
|
|
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);
|
|
8146
|
+
async getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
8147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options);
|
|
6576
8148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6577
8149
|
},
|
|
6578
8150
|
/**
|
|
@@ -6626,19 +8198,6 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
|
|
|
6626
8198
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenariosTree(organizationId, workspaceId, options);
|
|
6627
8199
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6628
8200
|
},
|
|
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
8201
|
/**
|
|
6643
8202
|
*
|
|
6644
8203
|
* @summary Remove all Parameter Values from the Scenario specified
|
|
@@ -6787,12 +8346,11 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
6787
8346
|
* @param {string} organizationId the Organization identifier
|
|
6788
8347
|
* @param {string} workspaceId the Workspace identifier
|
|
6789
8348
|
* @param {string} scenarioId the Scenario identifier
|
|
6790
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
6791
8349
|
* @param {*} [options] Override http request option.
|
|
6792
8350
|
* @throws {RequiredError}
|
|
6793
8351
|
*/
|
|
6794
|
-
deleteScenario(organizationId: string, workspaceId: string, scenarioId: string,
|
|
6795
|
-
return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId,
|
|
8352
|
+
deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<void> {
|
|
8353
|
+
return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
|
|
6796
8354
|
},
|
|
6797
8355
|
/**
|
|
6798
8356
|
*
|
|
@@ -6876,12 +8434,13 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
6876
8434
|
* @summary Get the Scenario permission by given role
|
|
6877
8435
|
* @param {string} organizationId the Organization identifier
|
|
6878
8436
|
* @param {string} workspaceId the Workspace identifier
|
|
8437
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6879
8438
|
* @param {string} role the Role
|
|
6880
8439
|
* @param {*} [options] Override http request option.
|
|
6881
8440
|
* @throws {RequiredError}
|
|
6882
8441
|
*/
|
|
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));
|
|
8442
|
+
getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: any): AxiosPromise<Array<string>> {
|
|
8443
|
+
return localVarFp.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then((request) => request(axios, basePath));
|
|
6885
8444
|
},
|
|
6886
8445
|
/**
|
|
6887
8446
|
*
|
|
@@ -6930,18 +8489,6 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
|
|
|
6930
8489
|
getScenariosTree(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<Scenario>> {
|
|
6931
8490
|
return localVarFp.getScenariosTree(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
6932
8491
|
},
|
|
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
8492
|
/**
|
|
6946
8493
|
*
|
|
6947
8494
|
* @summary Remove all Parameter Values from the Scenario specified
|
|
@@ -7095,13 +8642,12 @@ export class ScenarioApi extends BaseAPI {
|
|
|
7095
8642
|
* @param {string} organizationId the Organization identifier
|
|
7096
8643
|
* @param {string} workspaceId the Workspace identifier
|
|
7097
8644
|
* @param {string} scenarioId the Scenario identifier
|
|
7098
|
-
* @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
|
|
7099
8645
|
* @param {*} [options] Override http request option.
|
|
7100
8646
|
* @throws {RequiredError}
|
|
7101
8647
|
* @memberof ScenarioApi
|
|
7102
8648
|
*/
|
|
7103
|
-
public deleteScenario(organizationId: string, workspaceId: string, scenarioId: string,
|
|
7104
|
-
return ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId,
|
|
8649
|
+
public deleteScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
8650
|
+
return ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
7105
8651
|
}
|
|
7106
8652
|
|
|
7107
8653
|
/**
|
|
@@ -7198,13 +8744,14 @@ export class ScenarioApi extends BaseAPI {
|
|
|
7198
8744
|
* @summary Get the Scenario permission by given role
|
|
7199
8745
|
* @param {string} organizationId the Organization identifier
|
|
7200
8746
|
* @param {string} workspaceId the Workspace identifier
|
|
8747
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7201
8748
|
* @param {string} role the Role
|
|
7202
8749
|
* @param {*} [options] Override http request option.
|
|
7203
8750
|
* @throws {RequiredError}
|
|
7204
8751
|
* @memberof ScenarioApi
|
|
7205
8752
|
*/
|
|
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));
|
|
8753
|
+
public getScenarioPermissions(organizationId: string, workspaceId: string, scenarioId: string, role: string, options?: AxiosRequestConfig) {
|
|
8754
|
+
return ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then((request) => request(this.axios, this.basePath));
|
|
7208
8755
|
}
|
|
7209
8756
|
|
|
7210
8757
|
/**
|
|
@@ -7262,20 +8809,6 @@ export class ScenarioApi extends BaseAPI {
|
|
|
7262
8809
|
return ScenarioApiFp(this.configuration).getScenariosTree(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
7263
8810
|
}
|
|
7264
8811
|
|
|
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
8812
|
/**
|
|
7280
8813
|
*
|
|
7281
8814
|
* @summary Remove all Parameter Values from the Scenario specified
|
|
@@ -7818,58 +9351,6 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
7818
9351
|
options: localVarRequestOptions,
|
|
7819
9352
|
};
|
|
7820
9353
|
},
|
|
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
9354
|
/**
|
|
7874
9355
|
*
|
|
7875
9356
|
* @summary run a ScenarioRun for the Scenario
|
|
@@ -8194,20 +9675,6 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
8194
9675
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options);
|
|
8195
9676
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8196
9677
|
},
|
|
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
9678
|
/**
|
|
8212
9679
|
*
|
|
8213
9680
|
* @summary run a ScenarioRun for the Scenario
|
|
@@ -8387,19 +9854,6 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
8387
9854
|
getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<ScenarioRun>> {
|
|
8388
9855
|
return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then((request) => request(axios, basePath));
|
|
8389
9856
|
},
|
|
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
9857
|
/**
|
|
8404
9858
|
*
|
|
8405
9859
|
* @summary run a ScenarioRun for the Scenario
|
|
@@ -8597,72 +10051,302 @@ export class ScenariorunApi extends BaseAPI {
|
|
|
8597
10051
|
|
|
8598
10052
|
/**
|
|
8599
10053
|
*
|
|
8600
|
-
* @summary
|
|
10054
|
+
* @summary run a ScenarioRun for the Scenario
|
|
10055
|
+
* @param {string} organizationId the Organization identifier
|
|
10056
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10057
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10058
|
+
* @param {*} [options] Override http request option.
|
|
10059
|
+
* @throws {RequiredError}
|
|
10060
|
+
* @memberof ScenariorunApi
|
|
10061
|
+
*/
|
|
10062
|
+
public runScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
|
|
10063
|
+
return ScenariorunApiFp(this.configuration).runScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
|
|
10064
|
+
}
|
|
10065
|
+
|
|
10066
|
+
/**
|
|
10067
|
+
*
|
|
10068
|
+
* @summary Search ScenarioRuns
|
|
10069
|
+
* @param {string} organizationId the Organization identifier
|
|
10070
|
+
* @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
|
|
10071
|
+
* @param {number} [page] page number to query
|
|
10072
|
+
* @param {number} [size] amount of result by page
|
|
10073
|
+
* @param {*} [options] Override http request option.
|
|
10074
|
+
* @throws {RequiredError}
|
|
10075
|
+
* @memberof ScenariorunApi
|
|
10076
|
+
*/
|
|
10077
|
+
public searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: AxiosRequestConfig) {
|
|
10078
|
+
return ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
10079
|
+
}
|
|
10080
|
+
|
|
10081
|
+
/**
|
|
10082
|
+
*
|
|
10083
|
+
* @summary Start a new scenariorun with raw containers definition
|
|
10084
|
+
* @param {string} organizationId the Organization identifier
|
|
10085
|
+
* @param {ScenarioRunStartContainers} scenarioRunStartContainers the raw containers definition
|
|
10086
|
+
* @param {*} [options] Override http request option.
|
|
10087
|
+
* @throws {RequiredError}
|
|
10088
|
+
* @memberof ScenariorunApi
|
|
10089
|
+
*/
|
|
10090
|
+
public startScenarioRunContainers(organizationId: string, scenarioRunStartContainers: ScenarioRunStartContainers, options?: AxiosRequestConfig) {
|
|
10091
|
+
return ScenariorunApiFp(this.configuration).startScenarioRunContainers(organizationId, scenarioRunStartContainers, options).then((request) => request(this.axios, this.basePath));
|
|
10092
|
+
}
|
|
10093
|
+
|
|
10094
|
+
/**
|
|
10095
|
+
*
|
|
10096
|
+
* @summary stop a ScenarioRun for the Scenario
|
|
10097
|
+
* @param {string} organizationId the Organization identifier
|
|
10098
|
+
* @param {string} scenariorunId the scenariorun identifier
|
|
10099
|
+
* @param {*} [options] Override http request option.
|
|
10100
|
+
* @throws {RequiredError}
|
|
10101
|
+
* @memberof ScenariorunApi
|
|
10102
|
+
*/
|
|
10103
|
+
public stopScenarioRun(organizationId: string, scenariorunId: string, options?: AxiosRequestConfig) {
|
|
10104
|
+
return ScenariorunApiFp(this.configuration).stopScenarioRun(organizationId, scenariorunId, options).then((request) => request(this.axios, this.basePath));
|
|
10105
|
+
}
|
|
10106
|
+
}
|
|
10107
|
+
|
|
10108
|
+
|
|
10109
|
+
/**
|
|
10110
|
+
* ScenariorunresultApi - axios parameter creator
|
|
10111
|
+
* @export
|
|
10112
|
+
*/
|
|
10113
|
+
export const ScenariorunresultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10114
|
+
return {
|
|
10115
|
+
/**
|
|
10116
|
+
*
|
|
10117
|
+
* @summary Get a ScenarioRunResult in the Organization
|
|
10118
|
+
* @param {string} organizationId the Organization identifier
|
|
10119
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10120
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10121
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10122
|
+
* @param {string} probeId the Probe identifier
|
|
10123
|
+
* @param {*} [options] Override http request option.
|
|
10124
|
+
* @throws {RequiredError}
|
|
10125
|
+
*/
|
|
10126
|
+
getScenarioRunResult: async (organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10127
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10128
|
+
assertParamExists('getScenarioRunResult', 'organizationId', organizationId)
|
|
10129
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10130
|
+
assertParamExists('getScenarioRunResult', 'workspaceId', workspaceId)
|
|
10131
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
10132
|
+
assertParamExists('getScenarioRunResult', 'scenarioId', scenarioId)
|
|
10133
|
+
// verify required parameter 'scenariorunId' is not null or undefined
|
|
10134
|
+
assertParamExists('getScenarioRunResult', 'scenariorunId', scenariorunId)
|
|
10135
|
+
// verify required parameter 'probeId' is not null or undefined
|
|
10136
|
+
assertParamExists('getScenarioRunResult', 'probeId', probeId)
|
|
10137
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}`
|
|
10138
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10139
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10140
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
10141
|
+
.replace(`{${"scenariorun_id"}}`, encodeURIComponent(String(scenariorunId)))
|
|
10142
|
+
.replace(`{${"probe_id"}}`, encodeURIComponent(String(probeId)));
|
|
10143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10144
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10145
|
+
let baseOptions;
|
|
10146
|
+
if (configuration) {
|
|
10147
|
+
baseOptions = configuration.baseOptions;
|
|
10148
|
+
}
|
|
10149
|
+
|
|
10150
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10151
|
+
const localVarHeaderParameter = {} as any;
|
|
10152
|
+
const localVarQueryParameter = {} as any;
|
|
10153
|
+
|
|
10154
|
+
// authentication oAuth2AuthCode required
|
|
10155
|
+
// oauth required
|
|
10156
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10157
|
+
|
|
10158
|
+
|
|
10159
|
+
|
|
10160
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10161
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10162
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10163
|
+
|
|
10164
|
+
return {
|
|
10165
|
+
url: toPathString(localVarUrlObj),
|
|
10166
|
+
options: localVarRequestOptions,
|
|
10167
|
+
};
|
|
10168
|
+
},
|
|
10169
|
+
/**
|
|
10170
|
+
*
|
|
10171
|
+
* @summary Create a new ScenarioRunResult in the Organization
|
|
10172
|
+
* @param {string} organizationId the Organization identifier
|
|
10173
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10174
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10175
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10176
|
+
* @param {string} probeId the Probe identifier
|
|
10177
|
+
* @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
|
|
10178
|
+
* @param {*} [options] Override http request option.
|
|
10179
|
+
* @throws {RequiredError}
|
|
10180
|
+
*/
|
|
10181
|
+
sendScenarioRunResult: async (organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10182
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10183
|
+
assertParamExists('sendScenarioRunResult', 'organizationId', organizationId)
|
|
10184
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10185
|
+
assertParamExists('sendScenarioRunResult', 'workspaceId', workspaceId)
|
|
10186
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
10187
|
+
assertParamExists('sendScenarioRunResult', 'scenarioId', scenarioId)
|
|
10188
|
+
// verify required parameter 'scenariorunId' is not null or undefined
|
|
10189
|
+
assertParamExists('sendScenarioRunResult', 'scenariorunId', scenariorunId)
|
|
10190
|
+
// verify required parameter 'probeId' is not null or undefined
|
|
10191
|
+
assertParamExists('sendScenarioRunResult', 'probeId', probeId)
|
|
10192
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
10193
|
+
assertParamExists('sendScenarioRunResult', 'requestBody', requestBody)
|
|
10194
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}`
|
|
10195
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10196
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
10197
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
10198
|
+
.replace(`{${"scenariorun_id"}}`, encodeURIComponent(String(scenariorunId)))
|
|
10199
|
+
.replace(`{${"probe_id"}}`, encodeURIComponent(String(probeId)));
|
|
10200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10202
|
+
let baseOptions;
|
|
10203
|
+
if (configuration) {
|
|
10204
|
+
baseOptions = configuration.baseOptions;
|
|
10205
|
+
}
|
|
10206
|
+
|
|
10207
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10208
|
+
const localVarHeaderParameter = {} as any;
|
|
10209
|
+
const localVarQueryParameter = {} as any;
|
|
10210
|
+
|
|
10211
|
+
// authentication oAuth2AuthCode required
|
|
10212
|
+
// oauth required
|
|
10213
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10214
|
+
|
|
10215
|
+
|
|
10216
|
+
|
|
10217
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10218
|
+
|
|
10219
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10221
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10222
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
10223
|
+
|
|
10224
|
+
return {
|
|
10225
|
+
url: toPathString(localVarUrlObj),
|
|
10226
|
+
options: localVarRequestOptions,
|
|
10227
|
+
};
|
|
10228
|
+
},
|
|
10229
|
+
}
|
|
10230
|
+
};
|
|
10231
|
+
|
|
10232
|
+
/**
|
|
10233
|
+
* ScenariorunresultApi - functional programming interface
|
|
10234
|
+
* @export
|
|
10235
|
+
*/
|
|
10236
|
+
export const ScenariorunresultApiFp = function(configuration?: Configuration) {
|
|
10237
|
+
const localVarAxiosParamCreator = ScenariorunresultApiAxiosParamCreator(configuration)
|
|
10238
|
+
return {
|
|
10239
|
+
/**
|
|
10240
|
+
*
|
|
10241
|
+
* @summary Get a ScenarioRunResult in the Organization
|
|
10242
|
+
* @param {string} organizationId the Organization identifier
|
|
10243
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10244
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10245
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10246
|
+
* @param {string} probeId the Probe identifier
|
|
10247
|
+
* @param {*} [options] Override http request option.
|
|
10248
|
+
* @throws {RequiredError}
|
|
10249
|
+
*/
|
|
10250
|
+
async getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioRunResult>> {
|
|
10251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options);
|
|
10252
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10253
|
+
},
|
|
10254
|
+
/**
|
|
10255
|
+
*
|
|
10256
|
+
* @summary Create a new ScenarioRunResult in the Organization
|
|
10257
|
+
* @param {string} organizationId the Organization identifier
|
|
10258
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10259
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10260
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10261
|
+
* @param {string} probeId the Probe identifier
|
|
10262
|
+
* @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
|
|
10263
|
+
* @param {*} [options] Override http request option.
|
|
10264
|
+
* @throws {RequiredError}
|
|
10265
|
+
*/
|
|
10266
|
+
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>> {
|
|
10267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options);
|
|
10268
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10269
|
+
},
|
|
10270
|
+
}
|
|
10271
|
+
};
|
|
10272
|
+
|
|
10273
|
+
/**
|
|
10274
|
+
* ScenariorunresultApi - factory interface
|
|
10275
|
+
* @export
|
|
10276
|
+
*/
|
|
10277
|
+
export const ScenariorunresultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10278
|
+
const localVarFp = ScenariorunresultApiFp(configuration)
|
|
10279
|
+
return {
|
|
10280
|
+
/**
|
|
10281
|
+
*
|
|
10282
|
+
* @summary Get a ScenarioRunResult in the Organization
|
|
10283
|
+
* @param {string} organizationId the Organization identifier
|
|
10284
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10285
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10286
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10287
|
+
* @param {string} probeId the Probe identifier
|
|
10288
|
+
* @param {*} [options] Override http request option.
|
|
10289
|
+
* @throws {RequiredError}
|
|
10290
|
+
*/
|
|
10291
|
+
getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: any): AxiosPromise<ScenarioRunResult> {
|
|
10292
|
+
return localVarFp.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then((request) => request(axios, basePath));
|
|
10293
|
+
},
|
|
10294
|
+
/**
|
|
10295
|
+
*
|
|
10296
|
+
* @summary Create a new ScenarioRunResult in the Organization
|
|
10297
|
+
* @param {string} organizationId the Organization identifier
|
|
10298
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10299
|
+
* @param {string} scenarioId the Scenario identifier
|
|
10300
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10301
|
+
* @param {string} probeId the Probe identifier
|
|
10302
|
+
* @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
|
|
10303
|
+
* @param {*} [options] Override http request option.
|
|
10304
|
+
* @throws {RequiredError}
|
|
10305
|
+
*/
|
|
10306
|
+
sendScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options?: any): AxiosPromise<ScenarioRunResult> {
|
|
10307
|
+
return localVarFp.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then((request) => request(axios, basePath));
|
|
10308
|
+
},
|
|
10309
|
+
};
|
|
10310
|
+
};
|
|
10311
|
+
|
|
10312
|
+
/**
|
|
10313
|
+
* ScenariorunresultApi - object-oriented interface
|
|
10314
|
+
* @export
|
|
10315
|
+
* @class ScenariorunresultApi
|
|
10316
|
+
* @extends {BaseAPI}
|
|
10317
|
+
*/
|
|
10318
|
+
export class ScenariorunresultApi extends BaseAPI {
|
|
10319
|
+
/**
|
|
10320
|
+
*
|
|
10321
|
+
* @summary Get a ScenarioRunResult in the Organization
|
|
8601
10322
|
* @param {string} organizationId the Organization identifier
|
|
8602
10323
|
* @param {string} workspaceId the Workspace identifier
|
|
8603
10324
|
* @param {string} scenarioId the Scenario identifier
|
|
8604
|
-
* @param {
|
|
10325
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10326
|
+
* @param {string} probeId the Probe identifier
|
|
8605
10327
|
* @param {*} [options] Override http request option.
|
|
8606
10328
|
* @throws {RequiredError}
|
|
8607
|
-
* @memberof
|
|
10329
|
+
* @memberof ScenariorunresultApi
|
|
8608
10330
|
*/
|
|
8609
|
-
public
|
|
8610
|
-
return
|
|
10331
|
+
public getScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, options?: AxiosRequestConfig) {
|
|
10332
|
+
return ScenariorunresultApiFp(this.configuration).getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then((request) => request(this.axios, this.basePath));
|
|
8611
10333
|
}
|
|
8612
10334
|
|
|
8613
10335
|
/**
|
|
8614
10336
|
*
|
|
8615
|
-
* @summary
|
|
10337
|
+
* @summary Create a new ScenarioRunResult in the Organization
|
|
8616
10338
|
* @param {string} organizationId the Organization identifier
|
|
8617
10339
|
* @param {string} workspaceId the Workspace identifier
|
|
8618
10340
|
* @param {string} scenarioId the Scenario identifier
|
|
10341
|
+
* @param {string} scenariorunId the ScenarioRun identifier
|
|
10342
|
+
* @param {string} probeId the Probe identifier
|
|
10343
|
+
* @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
|
|
8619
10344
|
* @param {*} [options] Override http request option.
|
|
8620
10345
|
* @throws {RequiredError}
|
|
8621
|
-
* @memberof
|
|
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
|
|
10346
|
+
* @memberof ScenariorunresultApi
|
|
8663
10347
|
*/
|
|
8664
|
-
public
|
|
8665
|
-
return
|
|
10348
|
+
public sendScenarioRunResult(organizationId: string, workspaceId: string, scenarioId: string, scenariorunId: string, probeId: string, requestBody: { [key: string]: string; }, options?: AxiosRequestConfig) {
|
|
10349
|
+
return ScenariorunresultApiFp(this.configuration).sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8666
10350
|
}
|
|
8667
10351
|
}
|
|
8668
10352
|
|
|
@@ -8817,6 +10501,54 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8817
10501
|
options: localVarRequestOptions,
|
|
8818
10502
|
};
|
|
8819
10503
|
},
|
|
10504
|
+
/**
|
|
10505
|
+
*
|
|
10506
|
+
* @summary Add a control access to the Solution
|
|
10507
|
+
* @param {string} organizationId the Organization identifier
|
|
10508
|
+
* @param {string} solutionId the Solution identifier
|
|
10509
|
+
* @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
|
|
10510
|
+
* @param {*} [options] Override http request option.
|
|
10511
|
+
* @throws {RequiredError}
|
|
10512
|
+
*/
|
|
10513
|
+
addSolutionAccessControl: async (organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10514
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10515
|
+
assertParamExists('addSolutionAccessControl', 'organizationId', organizationId)
|
|
10516
|
+
// verify required parameter 'solutionId' is not null or undefined
|
|
10517
|
+
assertParamExists('addSolutionAccessControl', 'solutionId', solutionId)
|
|
10518
|
+
// verify required parameter 'solutionAccessControl' is not null or undefined
|
|
10519
|
+
assertParamExists('addSolutionAccessControl', 'solutionAccessControl', solutionAccessControl)
|
|
10520
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access`
|
|
10521
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10522
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
|
|
10523
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10524
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10525
|
+
let baseOptions;
|
|
10526
|
+
if (configuration) {
|
|
10527
|
+
baseOptions = configuration.baseOptions;
|
|
10528
|
+
}
|
|
10529
|
+
|
|
10530
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10531
|
+
const localVarHeaderParameter = {} as any;
|
|
10532
|
+
const localVarQueryParameter = {} as any;
|
|
10533
|
+
|
|
10534
|
+
// authentication oAuth2AuthCode required
|
|
10535
|
+
// oauth required
|
|
10536
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10537
|
+
|
|
10538
|
+
|
|
10539
|
+
|
|
10540
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10541
|
+
|
|
10542
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10544
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10545
|
+
localVarRequestOptions.data = serializeDataIfNeeded(solutionAccessControl, localVarRequestOptions, configuration)
|
|
10546
|
+
|
|
10547
|
+
return {
|
|
10548
|
+
url: toPathString(localVarUrlObj),
|
|
10549
|
+
options: localVarRequestOptions,
|
|
10550
|
+
};
|
|
10551
|
+
},
|
|
8820
10552
|
/**
|
|
8821
10553
|
*
|
|
8822
10554
|
* @summary Register a new solution
|
|
@@ -9091,19 +10823,24 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9091
10823
|
},
|
|
9092
10824
|
/**
|
|
9093
10825
|
*
|
|
9094
|
-
* @summary
|
|
10826
|
+
* @summary Get a control access for the Solution
|
|
9095
10827
|
* @param {string} organizationId the Organization identifier
|
|
9096
|
-
* @param {
|
|
10828
|
+
* @param {string} solutionId the Solution identifier
|
|
10829
|
+
* @param {string} identityId the User identifier
|
|
9097
10830
|
* @param {*} [options] Override http request option.
|
|
9098
10831
|
* @throws {RequiredError}
|
|
9099
10832
|
*/
|
|
9100
|
-
|
|
10833
|
+
getSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9101
10834
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9102
|
-
assertParamExists('
|
|
9103
|
-
// verify required parameter '
|
|
9104
|
-
assertParamExists('
|
|
9105
|
-
|
|
9106
|
-
|
|
10835
|
+
assertParamExists('getSolutionAccessControl', 'organizationId', organizationId)
|
|
10836
|
+
// verify required parameter 'solutionId' is not null or undefined
|
|
10837
|
+
assertParamExists('getSolutionAccessControl', 'solutionId', solutionId)
|
|
10838
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
10839
|
+
assertParamExists('getSolutionAccessControl', 'identityId', identityId)
|
|
10840
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
|
|
10841
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10842
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
|
|
10843
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9107
10844
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9108
10845
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9109
10846
|
let baseOptions;
|
|
@@ -9111,7 +10848,7 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9111
10848
|
baseOptions = configuration.baseOptions;
|
|
9112
10849
|
}
|
|
9113
10850
|
|
|
9114
|
-
const localVarRequestOptions = { method: '
|
|
10851
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9115
10852
|
const localVarHeaderParameter = {} as any;
|
|
9116
10853
|
const localVarQueryParameter = {} as any;
|
|
9117
10854
|
|
|
@@ -9121,12 +10858,51 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9121
10858
|
|
|
9122
10859
|
|
|
9123
10860
|
|
|
9124
|
-
|
|
10861
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10863
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10864
|
+
|
|
10865
|
+
return {
|
|
10866
|
+
url: toPathString(localVarUrlObj),
|
|
10867
|
+
options: localVarRequestOptions,
|
|
10868
|
+
};
|
|
10869
|
+
},
|
|
10870
|
+
/**
|
|
10871
|
+
*
|
|
10872
|
+
* @summary Get the Solution security users list
|
|
10873
|
+
* @param {string} organizationId the Organization identifier
|
|
10874
|
+
* @param {string} solutionId the Solution identifier
|
|
10875
|
+
* @param {*} [options] Override http request option.
|
|
10876
|
+
* @throws {RequiredError}
|
|
10877
|
+
*/
|
|
10878
|
+
getSolutionSecurityUsers: async (organizationId: string, solutionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10879
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10880
|
+
assertParamExists('getSolutionSecurityUsers', 'organizationId', organizationId)
|
|
10881
|
+
// verify required parameter 'solutionId' is not null or undefined
|
|
10882
|
+
assertParamExists('getSolutionSecurityUsers', 'solutionId', solutionId)
|
|
10883
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/users`
|
|
10884
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10885
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
|
|
10886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10887
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10888
|
+
let baseOptions;
|
|
10889
|
+
if (configuration) {
|
|
10890
|
+
baseOptions = configuration.baseOptions;
|
|
10891
|
+
}
|
|
10892
|
+
|
|
10893
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10894
|
+
const localVarHeaderParameter = {} as any;
|
|
10895
|
+
const localVarQueryParameter = {} as any;
|
|
10896
|
+
|
|
10897
|
+
// authentication oAuth2AuthCode required
|
|
10898
|
+
// oauth required
|
|
10899
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10900
|
+
|
|
9125
10901
|
|
|
10902
|
+
|
|
9126
10903
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9127
10904
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9128
10905
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9129
|
-
localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
|
|
9130
10906
|
|
|
9131
10907
|
return {
|
|
9132
10908
|
url: toPathString(localVarUrlObj),
|
|
@@ -9261,23 +11037,121 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9261
11037
|
},
|
|
9262
11038
|
/**
|
|
9263
11039
|
*
|
|
9264
|
-
* @summary
|
|
11040
|
+
* @summary Remove the specified access from the given Organization Solution
|
|
11041
|
+
* @param {string} organizationId the Organization identifier
|
|
11042
|
+
* @param {string} solutionId the Solution identifier
|
|
11043
|
+
* @param {string} identityId the User identifier
|
|
11044
|
+
* @param {*} [options] Override http request option.
|
|
11045
|
+
* @throws {RequiredError}
|
|
11046
|
+
*/
|
|
11047
|
+
removeSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11048
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
11049
|
+
assertParamExists('removeSolutionAccessControl', 'organizationId', organizationId)
|
|
11050
|
+
// verify required parameter 'solutionId' is not null or undefined
|
|
11051
|
+
assertParamExists('removeSolutionAccessControl', 'solutionId', solutionId)
|
|
11052
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
11053
|
+
assertParamExists('removeSolutionAccessControl', 'identityId', identityId)
|
|
11054
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
|
|
11055
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
11056
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
|
|
11057
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
11058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11060
|
+
let baseOptions;
|
|
11061
|
+
if (configuration) {
|
|
11062
|
+
baseOptions = configuration.baseOptions;
|
|
11063
|
+
}
|
|
11064
|
+
|
|
11065
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
11066
|
+
const localVarHeaderParameter = {} as any;
|
|
11067
|
+
const localVarQueryParameter = {} as any;
|
|
11068
|
+
|
|
11069
|
+
// authentication oAuth2AuthCode required
|
|
11070
|
+
// oauth required
|
|
11071
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
11072
|
+
|
|
11073
|
+
|
|
11074
|
+
|
|
11075
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11077
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11078
|
+
|
|
11079
|
+
return {
|
|
11080
|
+
url: toPathString(localVarUrlObj),
|
|
11081
|
+
options: localVarRequestOptions,
|
|
11082
|
+
};
|
|
11083
|
+
},
|
|
11084
|
+
/**
|
|
11085
|
+
*
|
|
11086
|
+
* @summary Update a solution
|
|
11087
|
+
* @param {string} organizationId the Organization identifier
|
|
11088
|
+
* @param {string} solutionId the Solution identifier
|
|
11089
|
+
* @param {Solution} solution the new Solution details.
|
|
11090
|
+
* @param {*} [options] Override http request option.
|
|
11091
|
+
* @throws {RequiredError}
|
|
11092
|
+
*/
|
|
11093
|
+
updateSolution: async (organizationId: string, solutionId: string, solution: Solution, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11094
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
11095
|
+
assertParamExists('updateSolution', 'organizationId', organizationId)
|
|
11096
|
+
// verify required parameter 'solutionId' is not null or undefined
|
|
11097
|
+
assertParamExists('updateSolution', 'solutionId', solutionId)
|
|
11098
|
+
// verify required parameter 'solution' is not null or undefined
|
|
11099
|
+
assertParamExists('updateSolution', 'solution', solution)
|
|
11100
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}`
|
|
11101
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
11102
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
|
|
11103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11105
|
+
let baseOptions;
|
|
11106
|
+
if (configuration) {
|
|
11107
|
+
baseOptions = configuration.baseOptions;
|
|
11108
|
+
}
|
|
11109
|
+
|
|
11110
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11111
|
+
const localVarHeaderParameter = {} as any;
|
|
11112
|
+
const localVarQueryParameter = {} as any;
|
|
11113
|
+
|
|
11114
|
+
// authentication oAuth2AuthCode required
|
|
11115
|
+
// oauth required
|
|
11116
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
11117
|
+
|
|
11118
|
+
|
|
11119
|
+
|
|
11120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11121
|
+
|
|
11122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11124
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
|
|
11126
|
+
|
|
11127
|
+
return {
|
|
11128
|
+
url: toPathString(localVarUrlObj),
|
|
11129
|
+
options: localVarRequestOptions,
|
|
11130
|
+
};
|
|
11131
|
+
},
|
|
11132
|
+
/**
|
|
11133
|
+
*
|
|
11134
|
+
* @summary Update the specified access to User for a Solution
|
|
9265
11135
|
* @param {string} organizationId the Organization identifier
|
|
9266
11136
|
* @param {string} solutionId the Solution identifier
|
|
9267
|
-
* @param {
|
|
11137
|
+
* @param {string} identityId the User identifier
|
|
11138
|
+
* @param {SolutionRole} solutionRole The new Solution Access Control
|
|
9268
11139
|
* @param {*} [options] Override http request option.
|
|
9269
11140
|
* @throws {RequiredError}
|
|
9270
11141
|
*/
|
|
9271
|
-
|
|
11142
|
+
updateSolutionAccessControl: async (organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9272
11143
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9273
|
-
assertParamExists('
|
|
11144
|
+
assertParamExists('updateSolutionAccessControl', 'organizationId', organizationId)
|
|
9274
11145
|
// verify required parameter 'solutionId' is not null or undefined
|
|
9275
|
-
assertParamExists('
|
|
9276
|
-
// verify required parameter '
|
|
9277
|
-
assertParamExists('
|
|
9278
|
-
|
|
11146
|
+
assertParamExists('updateSolutionAccessControl', 'solutionId', solutionId)
|
|
11147
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
11148
|
+
assertParamExists('updateSolutionAccessControl', 'identityId', identityId)
|
|
11149
|
+
// verify required parameter 'solutionRole' is not null or undefined
|
|
11150
|
+
assertParamExists('updateSolutionAccessControl', 'solutionRole', solutionRole)
|
|
11151
|
+
const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}`
|
|
9279
11152
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9280
|
-
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
|
|
11153
|
+
.replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)))
|
|
11154
|
+
.replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
|
|
9281
11155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9282
11156
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9283
11157
|
let baseOptions;
|
|
@@ -9300,7 +11174,7 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9300
11174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9301
11175
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9302
11176
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9303
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
11177
|
+
localVarRequestOptions.data = serializeDataIfNeeded(solutionRole, localVarRequestOptions, configuration)
|
|
9304
11178
|
|
|
9305
11179
|
return {
|
|
9306
11180
|
url: toPathString(localVarUrlObj),
|
|
@@ -9469,6 +11343,19 @@ export const SolutionApiFp = function(configuration?: Configuration) {
|
|
|
9469
11343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options);
|
|
9470
11344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9471
11345
|
},
|
|
11346
|
+
/**
|
|
11347
|
+
*
|
|
11348
|
+
* @summary Add a control access to the Solution
|
|
11349
|
+
* @param {string} organizationId the Organization identifier
|
|
11350
|
+
* @param {string} solutionId the Solution identifier
|
|
11351
|
+
* @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
|
|
11352
|
+
* @param {*} [options] Override http request option.
|
|
11353
|
+
* @throws {RequiredError}
|
|
11354
|
+
*/
|
|
11355
|
+
async addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
|
|
11356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options);
|
|
11357
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11358
|
+
},
|
|
9472
11359
|
/**
|
|
9473
11360
|
*
|
|
9474
11361
|
* @summary Register a new solution
|
|
@@ -9547,14 +11434,27 @@ export const SolutionApiFp = function(configuration?: Configuration) {
|
|
|
9547
11434
|
},
|
|
9548
11435
|
/**
|
|
9549
11436
|
*
|
|
9550
|
-
* @summary
|
|
11437
|
+
* @summary Get a control access for the Solution
|
|
11438
|
+
* @param {string} organizationId the Organization identifier
|
|
11439
|
+
* @param {string} solutionId the Solution identifier
|
|
11440
|
+
* @param {string} identityId the User identifier
|
|
11441
|
+
* @param {*} [options] Override http request option.
|
|
11442
|
+
* @throws {RequiredError}
|
|
11443
|
+
*/
|
|
11444
|
+
async getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
|
|
11445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSolutionAccessControl(organizationId, solutionId, identityId, options);
|
|
11446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11447
|
+
},
|
|
11448
|
+
/**
|
|
11449
|
+
*
|
|
11450
|
+
* @summary Get the Solution security users list
|
|
9551
11451
|
* @param {string} organizationId the Organization identifier
|
|
9552
|
-
* @param {
|
|
11452
|
+
* @param {string} solutionId the Solution identifier
|
|
9553
11453
|
* @param {*} [options] Override http request option.
|
|
9554
11454
|
* @throws {RequiredError}
|
|
9555
11455
|
*/
|
|
9556
|
-
async
|
|
9557
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
11456
|
+
async getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
11457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSolutionSecurityUsers(organizationId, solutionId, options);
|
|
9558
11458
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9559
11459
|
},
|
|
9560
11460
|
/**
|
|
@@ -9593,6 +11493,19 @@ export const SolutionApiFp = function(configuration?: Configuration) {
|
|
|
9593
11493
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllSolutionParameters(organizationId, solutionId, options);
|
|
9594
11494
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9595
11495
|
},
|
|
11496
|
+
/**
|
|
11497
|
+
*
|
|
11498
|
+
* @summary Remove the specified access from the given Organization Solution
|
|
11499
|
+
* @param {string} organizationId the Organization identifier
|
|
11500
|
+
* @param {string} solutionId the Solution identifier
|
|
11501
|
+
* @param {string} identityId the User identifier
|
|
11502
|
+
* @param {*} [options] Override http request option.
|
|
11503
|
+
* @throws {RequiredError}
|
|
11504
|
+
*/
|
|
11505
|
+
async removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
11506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeSolutionAccessControl(organizationId, solutionId, identityId, options);
|
|
11507
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11508
|
+
},
|
|
9596
11509
|
/**
|
|
9597
11510
|
*
|
|
9598
11511
|
* @summary Update a solution
|
|
@@ -9606,6 +11519,20 @@ export const SolutionApiFp = function(configuration?: Configuration) {
|
|
|
9606
11519
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSolution(organizationId, solutionId, solution, options);
|
|
9607
11520
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9608
11521
|
},
|
|
11522
|
+
/**
|
|
11523
|
+
*
|
|
11524
|
+
* @summary Update the specified access to User for a Solution
|
|
11525
|
+
* @param {string} organizationId the Organization identifier
|
|
11526
|
+
* @param {string} solutionId the Solution identifier
|
|
11527
|
+
* @param {string} identityId the User identifier
|
|
11528
|
+
* @param {SolutionRole} solutionRole The new Solution Access Control
|
|
11529
|
+
* @param {*} [options] Override http request option.
|
|
11530
|
+
* @throws {RequiredError}
|
|
11531
|
+
*/
|
|
11532
|
+
async updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SolutionAccessControl>> {
|
|
11533
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options);
|
|
11534
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11535
|
+
},
|
|
9609
11536
|
/**
|
|
9610
11537
|
*
|
|
9611
11538
|
* @summary Update the specified Solution Run Template
|
|
@@ -9682,6 +11609,18 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
|
|
|
9682
11609
|
addOrReplaceRunTemplates(organizationId: string, solutionId: string, runTemplate: Array<RunTemplate>, options?: any): AxiosPromise<Array<RunTemplate>> {
|
|
9683
11610
|
return localVarFp.addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then((request) => request(axios, basePath));
|
|
9684
11611
|
},
|
|
11612
|
+
/**
|
|
11613
|
+
*
|
|
11614
|
+
* @summary Add a control access to the Solution
|
|
11615
|
+
* @param {string} organizationId the Organization identifier
|
|
11616
|
+
* @param {string} solutionId the Solution identifier
|
|
11617
|
+
* @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
|
|
11618
|
+
* @param {*} [options] Override http request option.
|
|
11619
|
+
* @throws {RequiredError}
|
|
11620
|
+
*/
|
|
11621
|
+
addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: any): AxiosPromise<SolutionAccessControl> {
|
|
11622
|
+
return localVarFp.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then((request) => request(axios, basePath));
|
|
11623
|
+
},
|
|
9685
11624
|
/**
|
|
9686
11625
|
*
|
|
9687
11626
|
* @summary Register a new solution
|
|
@@ -9754,14 +11693,26 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
|
|
|
9754
11693
|
},
|
|
9755
11694
|
/**
|
|
9756
11695
|
*
|
|
9757
|
-
* @summary
|
|
11696
|
+
* @summary Get a control access for the Solution
|
|
11697
|
+
* @param {string} organizationId the Organization identifier
|
|
11698
|
+
* @param {string} solutionId the Solution identifier
|
|
11699
|
+
* @param {string} identityId the User identifier
|
|
11700
|
+
* @param {*} [options] Override http request option.
|
|
11701
|
+
* @throws {RequiredError}
|
|
11702
|
+
*/
|
|
11703
|
+
getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: any): AxiosPromise<SolutionAccessControl> {
|
|
11704
|
+
return localVarFp.getSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(axios, basePath));
|
|
11705
|
+
},
|
|
11706
|
+
/**
|
|
11707
|
+
*
|
|
11708
|
+
* @summary Get the Solution security users list
|
|
9758
11709
|
* @param {string} organizationId the Organization identifier
|
|
9759
|
-
* @param {
|
|
11710
|
+
* @param {string} solutionId the Solution identifier
|
|
9760
11711
|
* @param {*} [options] Override http request option.
|
|
9761
11712
|
* @throws {RequiredError}
|
|
9762
11713
|
*/
|
|
9763
|
-
|
|
9764
|
-
return localVarFp.
|
|
11714
|
+
getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: any): AxiosPromise<Array<string>> {
|
|
11715
|
+
return localVarFp.getSolutionSecurityUsers(organizationId, solutionId, options).then((request) => request(axios, basePath));
|
|
9765
11716
|
},
|
|
9766
11717
|
/**
|
|
9767
11718
|
*
|
|
@@ -9796,6 +11747,18 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
|
|
|
9796
11747
|
removeAllSolutionParameters(organizationId: string, solutionId: string, options?: any): AxiosPromise<void> {
|
|
9797
11748
|
return localVarFp.removeAllSolutionParameters(organizationId, solutionId, options).then((request) => request(axios, basePath));
|
|
9798
11749
|
},
|
|
11750
|
+
/**
|
|
11751
|
+
*
|
|
11752
|
+
* @summary Remove the specified access from the given Organization Solution
|
|
11753
|
+
* @param {string} organizationId the Organization identifier
|
|
11754
|
+
* @param {string} solutionId the Solution identifier
|
|
11755
|
+
* @param {string} identityId the User identifier
|
|
11756
|
+
* @param {*} [options] Override http request option.
|
|
11757
|
+
* @throws {RequiredError}
|
|
11758
|
+
*/
|
|
11759
|
+
removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: any): AxiosPromise<void> {
|
|
11760
|
+
return localVarFp.removeSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(axios, basePath));
|
|
11761
|
+
},
|
|
9799
11762
|
/**
|
|
9800
11763
|
*
|
|
9801
11764
|
* @summary Update a solution
|
|
@@ -9808,6 +11771,19 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
|
|
|
9808
11771
|
updateSolution(organizationId: string, solutionId: string, solution: Solution, options?: any): AxiosPromise<Solution> {
|
|
9809
11772
|
return localVarFp.updateSolution(organizationId, solutionId, solution, options).then((request) => request(axios, basePath));
|
|
9810
11773
|
},
|
|
11774
|
+
/**
|
|
11775
|
+
*
|
|
11776
|
+
* @summary Update the specified access to User for a Solution
|
|
11777
|
+
* @param {string} organizationId the Organization identifier
|
|
11778
|
+
* @param {string} solutionId the Solution identifier
|
|
11779
|
+
* @param {string} identityId the User identifier
|
|
11780
|
+
* @param {SolutionRole} solutionRole The new Solution Access Control
|
|
11781
|
+
* @param {*} [options] Override http request option.
|
|
11782
|
+
* @throws {RequiredError}
|
|
11783
|
+
*/
|
|
11784
|
+
updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: any): AxiosPromise<SolutionAccessControl> {
|
|
11785
|
+
return localVarFp.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then((request) => request(axios, basePath));
|
|
11786
|
+
},
|
|
9811
11787
|
/**
|
|
9812
11788
|
*
|
|
9813
11789
|
* @summary Update the specified Solution Run Template
|
|
@@ -9888,6 +11864,20 @@ export class SolutionApi extends BaseAPI {
|
|
|
9888
11864
|
return SolutionApiFp(this.configuration).addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then((request) => request(this.axios, this.basePath));
|
|
9889
11865
|
}
|
|
9890
11866
|
|
|
11867
|
+
/**
|
|
11868
|
+
*
|
|
11869
|
+
* @summary Add a control access to the Solution
|
|
11870
|
+
* @param {string} organizationId the Organization identifier
|
|
11871
|
+
* @param {string} solutionId the Solution identifier
|
|
11872
|
+
* @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
|
|
11873
|
+
* @param {*} [options] Override http request option.
|
|
11874
|
+
* @throws {RequiredError}
|
|
11875
|
+
* @memberof SolutionApi
|
|
11876
|
+
*/
|
|
11877
|
+
public addSolutionAccessControl(organizationId: string, solutionId: string, solutionAccessControl: SolutionAccessControl, options?: AxiosRequestConfig) {
|
|
11878
|
+
return SolutionApiFp(this.configuration).addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
11879
|
+
}
|
|
11880
|
+
|
|
9891
11881
|
/**
|
|
9892
11882
|
*
|
|
9893
11883
|
* @summary Register a new solution
|
|
@@ -9972,15 +11962,29 @@ export class SolutionApi extends BaseAPI {
|
|
|
9972
11962
|
|
|
9973
11963
|
/**
|
|
9974
11964
|
*
|
|
9975
|
-
* @summary
|
|
11965
|
+
* @summary Get a control access for the Solution
|
|
11966
|
+
* @param {string} organizationId the Organization identifier
|
|
11967
|
+
* @param {string} solutionId the Solution identifier
|
|
11968
|
+
* @param {string} identityId the User identifier
|
|
11969
|
+
* @param {*} [options] Override http request option.
|
|
11970
|
+
* @throws {RequiredError}
|
|
11971
|
+
* @memberof SolutionApi
|
|
11972
|
+
*/
|
|
11973
|
+
public getSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
11974
|
+
return SolutionApiFp(this.configuration).getSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
11975
|
+
}
|
|
11976
|
+
|
|
11977
|
+
/**
|
|
11978
|
+
*
|
|
11979
|
+
* @summary Get the Solution security users list
|
|
9976
11980
|
* @param {string} organizationId the Organization identifier
|
|
9977
|
-
* @param {
|
|
11981
|
+
* @param {string} solutionId the Solution identifier
|
|
9978
11982
|
* @param {*} [options] Override http request option.
|
|
9979
11983
|
* @throws {RequiredError}
|
|
9980
11984
|
* @memberof SolutionApi
|
|
9981
11985
|
*/
|
|
9982
|
-
public
|
|
9983
|
-
return SolutionApiFp(this.configuration).
|
|
11986
|
+
public getSolutionSecurityUsers(organizationId: string, solutionId: string, options?: AxiosRequestConfig) {
|
|
11987
|
+
return SolutionApiFp(this.configuration).getSolutionSecurityUsers(organizationId, solutionId, options).then((request) => request(this.axios, this.basePath));
|
|
9984
11988
|
}
|
|
9985
11989
|
|
|
9986
11990
|
/**
|
|
@@ -10022,6 +12026,20 @@ export class SolutionApi extends BaseAPI {
|
|
|
10022
12026
|
return SolutionApiFp(this.configuration).removeAllSolutionParameters(organizationId, solutionId, options).then((request) => request(this.axios, this.basePath));
|
|
10023
12027
|
}
|
|
10024
12028
|
|
|
12029
|
+
/**
|
|
12030
|
+
*
|
|
12031
|
+
* @summary Remove the specified access from the given Organization Solution
|
|
12032
|
+
* @param {string} organizationId the Organization identifier
|
|
12033
|
+
* @param {string} solutionId the Solution identifier
|
|
12034
|
+
* @param {string} identityId the User identifier
|
|
12035
|
+
* @param {*} [options] Override http request option.
|
|
12036
|
+
* @throws {RequiredError}
|
|
12037
|
+
* @memberof SolutionApi
|
|
12038
|
+
*/
|
|
12039
|
+
public removeSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, options?: AxiosRequestConfig) {
|
|
12040
|
+
return SolutionApiFp(this.configuration).removeSolutionAccessControl(organizationId, solutionId, identityId, options).then((request) => request(this.axios, this.basePath));
|
|
12041
|
+
}
|
|
12042
|
+
|
|
10025
12043
|
/**
|
|
10026
12044
|
*
|
|
10027
12045
|
* @summary Update a solution
|
|
@@ -10036,6 +12054,21 @@ export class SolutionApi extends BaseAPI {
|
|
|
10036
12054
|
return SolutionApiFp(this.configuration).updateSolution(organizationId, solutionId, solution, options).then((request) => request(this.axios, this.basePath));
|
|
10037
12055
|
}
|
|
10038
12056
|
|
|
12057
|
+
/**
|
|
12058
|
+
*
|
|
12059
|
+
* @summary Update the specified access to User for a Solution
|
|
12060
|
+
* @param {string} organizationId the Organization identifier
|
|
12061
|
+
* @param {string} solutionId the Solution identifier
|
|
12062
|
+
* @param {string} identityId the User identifier
|
|
12063
|
+
* @param {SolutionRole} solutionRole The new Solution Access Control
|
|
12064
|
+
* @param {*} [options] Override http request option.
|
|
12065
|
+
* @throws {RequiredError}
|
|
12066
|
+
* @memberof SolutionApi
|
|
12067
|
+
*/
|
|
12068
|
+
public updateSolutionAccessControl(organizationId: string, solutionId: string, identityId: string, solutionRole: SolutionRole, options?: AxiosRequestConfig) {
|
|
12069
|
+
return SolutionApiFp(this.configuration).updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then((request) => request(this.axios, this.basePath));
|
|
12070
|
+
}
|
|
12071
|
+
|
|
10039
12072
|
/**
|
|
10040
12073
|
*
|
|
10041
12074
|
* @summary Update the specified Solution Run Template
|
|
@@ -10274,7 +12307,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10274
12307
|
};
|
|
10275
12308
|
},
|
|
10276
12309
|
/**
|
|
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 = \'
|
|
12310
|
+
* 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
12311
|
* @summary Create a new graph
|
|
10279
12312
|
* @param {string} organizationId the Organization identifier
|
|
10280
12313
|
* @param {string} graphId the Graph Identifier
|
|
@@ -10547,50 +12580,6 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10547
12580
|
options: localVarRequestOptions,
|
|
10548
12581
|
};
|
|
10549
12582
|
},
|
|
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
12583
|
/**
|
|
10595
12584
|
* Get the status of a job
|
|
10596
12585
|
* @summary Get the status of a job
|
|
@@ -10845,7 +12834,7 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10845
12834
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10846
12835
|
},
|
|
10847
12836
|
/**
|
|
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 = \'
|
|
12837
|
+
* 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
12838
|
* @summary Create a new graph
|
|
10850
12839
|
* @param {string} organizationId the Organization identifier
|
|
10851
12840
|
* @param {string} graphId the Graph Identifier
|
|
@@ -10920,18 +12909,6 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
|
10920
12909
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
|
|
10921
12910
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10922
12911
|
},
|
|
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
12912
|
/**
|
|
10936
12913
|
* Get the status of a job
|
|
10937
12914
|
* @summary Get the status of a job
|
|
@@ -11044,7 +13021,7 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11044
13021
|
return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
|
|
11045
13022
|
},
|
|
11046
13023
|
/**
|
|
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 = \'
|
|
13024
|
+
* 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
13025
|
* @summary Create a new graph
|
|
11049
13026
|
* @param {string} organizationId the Organization identifier
|
|
11050
13027
|
* @param {string} graphId the Graph Identifier
|
|
@@ -11113,17 +13090,6 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
|
|
|
11113
13090
|
getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
|
|
11114
13091
|
return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
|
|
11115
13092
|
},
|
|
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
13093
|
/**
|
|
11128
13094
|
* Get the status of a job
|
|
11129
13095
|
* @summary Get the status of a job
|
|
@@ -11240,7 +13206,7 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11240
13206
|
}
|
|
11241
13207
|
|
|
11242
13208
|
/**
|
|
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 = \'
|
|
13209
|
+
* 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
13210
|
* @summary Create a new graph
|
|
11245
13211
|
* @param {string} organizationId the Organization identifier
|
|
11246
13212
|
* @param {string} graphId the Graph Identifier
|
|
@@ -11321,19 +13287,6 @@ export class TwingraphApi extends BaseAPI {
|
|
|
11321
13287
|
return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
|
|
11322
13288
|
}
|
|
11323
13289
|
|
|
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
13290
|
/**
|
|
11338
13291
|
* Get the status of a job
|
|
11339
13292
|
* @summary Get the status of a job
|
|
@@ -12795,50 +14748,6 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12795
14748
|
options: localVarRequestOptions,
|
|
12796
14749
|
};
|
|
12797
14750
|
},
|
|
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
14751
|
/**
|
|
12843
14752
|
*
|
|
12844
14753
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -13281,18 +15190,6 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
13281
15190
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options);
|
|
13282
15191
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13283
15192
|
},
|
|
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
15193
|
/**
|
|
13297
15194
|
*
|
|
13298
15195
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -13532,17 +15429,6 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
13532
15429
|
getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<string>> {
|
|
13533
15430
|
return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
13534
15431
|
},
|
|
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
15432
|
/**
|
|
13547
15433
|
*
|
|
13548
15434
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -13805,19 +15691,6 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
13805
15691
|
return WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
13806
15692
|
}
|
|
13807
15693
|
|
|
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
15694
|
/**
|
|
13822
15695
|
*
|
|
13823
15696
|
* @summary Remove the specified access from the given Organization Workspace
|