@hpcc-js/comms 2.102.1 → 2.102.2

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.
Files changed (95) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +50 -50
  3. package/dist/index.es6.js.map +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.node.js.map +1 -1
  7. package/dist/index.node.min.js.map +1 -1
  8. package/package.json +5 -5
  9. package/src/__package__.ts +3 -3
  10. package/src/__tests__/dfuXRef.ts +22 -22
  11. package/src/__tests__/https.ts +69 -69
  12. package/src/__tests__/workunit.ts +35 -35
  13. package/src/clienttools/eclMeta.ts +506 -506
  14. package/src/clienttools/eclcc.ts +628 -628
  15. package/src/connection.ts +295 -295
  16. package/src/ecl/activity.ts +82 -82
  17. package/src/ecl/dfuWorkunit.ts +363 -363
  18. package/src/ecl/graph.ts +196 -196
  19. package/src/ecl/logicalFile.ts +195 -195
  20. package/src/ecl/machine.ts +63 -63
  21. package/src/ecl/query.ts +252 -252
  22. package/src/ecl/queryGraph.ts +813 -813
  23. package/src/ecl/resource.ts +39 -39
  24. package/src/ecl/result.ts +236 -236
  25. package/src/ecl/scope.ts +192 -192
  26. package/src/ecl/sourceFile.ts +34 -34
  27. package/src/ecl/store.ts +154 -154
  28. package/src/ecl/targetCluster.ts +149 -149
  29. package/src/ecl/timer.ts +42 -42
  30. package/src/ecl/topology.ts +131 -131
  31. package/src/ecl/workunit.ts +1314 -1314
  32. package/src/ecl/xsdParser.ts +268 -268
  33. package/src/espConnection.ts +172 -172
  34. package/src/index-common.ts +41 -41
  35. package/src/index.node.ts +68 -68
  36. package/src/index.ts +3 -3
  37. package/src/pem/trustwave.ts +909 -909
  38. package/src/services/fileSpray.ts +48 -48
  39. package/src/services/wsAccess.ts +8 -8
  40. package/src/services/wsAccount.ts +27 -27
  41. package/src/services/wsCloud.ts +73 -73
  42. package/src/services/wsCodesign.ts +94 -94
  43. package/src/services/wsDFU.ts +34 -34
  44. package/src/services/wsDFUXRef.ts +308 -308
  45. package/src/services/wsDali.ts +40 -40
  46. package/src/services/wsEcl.ts +123 -123
  47. package/src/services/wsElk.ts +8 -8
  48. package/src/services/wsLogaccess.ts +263 -263
  49. package/src/services/wsMachine.ts +89 -89
  50. package/src/services/wsPackageProcess.ts +8 -8
  51. package/src/services/wsResources.ts +8 -8
  52. package/src/services/wsSMC.ts +24 -24
  53. package/src/services/wsSasha.ts +7 -7
  54. package/src/services/wsStore.ts +230 -230
  55. package/src/services/wsTopology.ts +45 -45
  56. package/src/services/wsWorkunits.ts +160 -160
  57. package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +1008 -1008
  58. package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -1040
  59. package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +929 -929
  60. package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
  61. package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
  62. package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
  63. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
  64. package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
  65. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
  66. package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
  67. package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +107 -107
  68. package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
  69. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
  70. package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
  71. package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -670
  72. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
  73. package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +885 -885
  74. package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
  75. package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
  76. package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
  77. package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
  78. package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
  79. package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
  80. package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
  81. package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3157 -3157
  82. package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
  83. package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
  84. package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
  85. package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
  86. package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +100 -100
  87. package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
  88. package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
  89. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
  90. package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
  91. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
  92. package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
  93. package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
  94. package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
  95. package/src/services/wsdl/wsstore/v1.02/wsstore.ts +250 -250
@@ -1,929 +1,929 @@
1
- import { IConnection, IOptions } from "../../../../connection";
2
- import { Service } from "../../../../espConnection";
3
-
4
- export namespace FileSpray {
5
-
6
- export type int = number;
7
- export type double = number;
8
- export type base64Binary = string;
9
- export type long = number;
10
- export type dateTime = string;
11
-
12
- export enum DFUWUActions {
13
- Delete = "Delete",
14
- Protect = "Protect",
15
- Unprotect = "Unprotect",
16
- Restore = "Restore",
17
- SetToFailed = "SetToFailed",
18
- Archive = "Archive"
19
- }
20
-
21
- export interface AbortDFUWorkunit {
22
- wuid: string;
23
- }
24
-
25
- export interface Exception {
26
- Code: string;
27
- Audience: string;
28
- Source: string;
29
- Message: string;
30
- }
31
-
32
- export interface Exceptions {
33
- Source: string;
34
- Exception: Exception[];
35
- }
36
-
37
- export interface AbortDFUWorkunitResponse {
38
- Exceptions: Exceptions;
39
- }
40
-
41
- export interface Copy {
42
- sourceLogicalName: string;
43
- destGroup: string;
44
- destGroupRoxie: string;
45
- destLogicalName: string;
46
- sourceDali: string;
47
- srcusername: string;
48
- srcpassword: string;
49
- overwrite: boolean;
50
- ensure: boolean;
51
- replicate: boolean;
52
- ReplicateOffset: int;
53
- maxConnections: int;
54
- throttle: int;
55
- transferBufferSize: int;
56
- nosplit: boolean;
57
- norecover: boolean;
58
- compress: boolean;
59
- Wrap: boolean;
60
- Multicopy: boolean;
61
- SourceDiffKeyName: string;
62
- DestDiffKeyName: string;
63
- superCopy: boolean;
64
- push: boolean;
65
- pull: boolean;
66
- ifnewer: boolean;
67
- noCommon: boolean;
68
- encrypt: string;
69
- decrypt: string;
70
- preserveCompression: boolean;
71
- DFUServerQueue: string;
72
- ExpireDays: int;
73
- }
74
-
75
- export interface CopyResponse {
76
- Exceptions: Exceptions;
77
- result: string;
78
- }
79
-
80
- export interface CreateDFUPublisherWorkunit {
81
- DFUServerQueue: string;
82
- }
83
-
84
- export interface result {
85
- ID: string;
86
- DFUServerName: string;
87
- ClusterName: string;
88
- JobName: string;
89
- Queue: string;
90
- User: string;
91
- isProtected: boolean;
92
- Command: int;
93
- CommandMessage: string;
94
- PercentDone: int;
95
- SecsLeft: int;
96
- ProgressMessage: string;
97
- SummaryMessage: string;
98
- State: int;
99
- SourceLogicalName: string;
100
- SourceIP: string;
101
- SourceFilePath: string;
102
- SourceDali: string;
103
- SourceRecordSize: int;
104
- SourceFormat: int;
105
- RowTag: string;
106
- SourceNumParts: int;
107
- SourceDirectory: string;
108
- DestLogicalName: string;
109
- DestGroupName: string;
110
- DestDirectory: string;
111
- DestIP: string;
112
- DestFilePath: string;
113
- DestFormat: int;
114
- DestNumParts: int;
115
- DestRecordSize: int;
116
- Replicate: boolean;
117
- Overwrite: boolean;
118
- Compress: boolean;
119
- SourceCsvSeparate: string;
120
- SourceCsvQuote: string;
121
- SourceCsvTerminate: string;
122
- SourceCsvEscape: string;
123
- TimeStarted: string;
124
- TimeStopped: string;
125
- StateMessage: string;
126
- MonitorEventName: string;
127
- MonitorSub: boolean;
128
- MonitorShotLimit: int;
129
- SourceDiffKeyName: string;
130
- DestDiffKeyName: string;
131
- Archived: boolean;
132
- encrypt: string;
133
- decrypt: string;
134
- failIfNoSourceFile: boolean;
135
- recordStructurePresent: boolean;
136
- quotedTerminator: boolean;
137
- preserveCompression: boolean;
138
- expireDays: int;
139
- PreserveFileParts: boolean;
140
- FileAccessCost: double;
141
- KbPerSecAve: int;
142
- KbPerSec: int;
143
- }
144
-
145
- export interface CreateDFUPublisherWorkunitResponse {
146
- Exceptions: Exceptions;
147
- result: result;
148
- }
149
-
150
- export interface CreateDFUWorkunit {
151
- DFUServerQueue: string;
152
- }
153
-
154
- export interface CreateDFUWorkunitResponse {
155
- Exceptions: Exceptions;
156
- result: result;
157
- }
158
-
159
- export interface DFUWUFileRequest {
160
- Wuid?: string;
161
- Type?: string;
162
- PlainText?: string;
163
- }
164
-
165
- export interface DFUWUFileResponse {
166
- Exceptions: Exceptions;
167
- file: string;
168
- }
169
-
170
- export interface DFUWUSearchRequest {
171
-
172
- }
173
-
174
- export interface ClusterNames {
175
- ClusterName: string[];
176
- }
177
-
178
- export interface DFUWUSearchResponse {
179
- Exceptions: Exceptions;
180
- ClusterNames: ClusterNames;
181
- }
182
-
183
- export interface wuids {
184
- Item: string[];
185
- }
186
-
187
- export interface DFUWorkunitsActionRequest {
188
- wuids?: wuids;
189
- Type?: DFUWUActions;
190
- }
191
-
192
- export interface DFUActionResult {
193
- ID: string;
194
- Action: string;
195
- Result: string;
196
- }
197
-
198
- export interface DFUActionResults {
199
- DFUActionResult: DFUActionResult[];
200
- }
201
-
202
- export interface DFUWorkunitsActionResponse {
203
- Exceptions: Exceptions;
204
- FirstColumn: string;
205
- DFUActionResults: DFUActionResults;
206
- }
207
-
208
- export interface DeleteDFUWorkunit {
209
- wuid: string;
210
- }
211
-
212
- export interface DeleteDFUWorkunitResponse {
213
- Exceptions: Exceptions;
214
- result: boolean;
215
- }
216
-
217
- export interface DeleteDFUWorkunits {
218
- wuids: wuids;
219
- }
220
-
221
- export interface DeleteDFUWorkunitsResponse {
222
- Exceptions: Exceptions;
223
- }
224
-
225
- export interface Names {
226
- Item: string[];
227
- }
228
-
229
- export interface DeleteDropZoneFilesRequest {
230
- DropZoneName?: string;
231
- NetAddress?: string;
232
- Path?: string;
233
- OS?: string;
234
- Names?: Names;
235
- }
236
-
237
- export interface Despray {
238
- destGroup: string;
239
- sourceLogicalName: string;
240
- destIP: string;
241
- destPath: string;
242
- destPlane: string;
243
- dstxml: base64Binary;
244
- overwrite: boolean;
245
- maxConnections: int;
246
- throttle: int;
247
- transferBufferSize: int;
248
- splitprefix: string;
249
- norecover: boolean;
250
- wrap: boolean;
251
- multiCopy: boolean;
252
- SingleConnection: boolean;
253
- DFUServerQueue: string;
254
- compress: boolean;
255
- encrypt: string;
256
- decrypt: string;
257
- }
258
-
259
- export interface DesprayResponse {
260
- Exceptions: Exceptions;
261
- wuid: string;
262
- }
263
-
264
- export interface DfuMonitorRequest {
265
- EventName?: string;
266
- LogicalName?: string;
267
- Ip?: string;
268
- Filename?: string;
269
- Sub?: boolean;
270
- ShotLimit?: int;
271
- }
272
-
273
- export interface DfuMonitorResponse {
274
- Exceptions: Exceptions;
275
- wuid: string;
276
- }
277
-
278
- export interface DropZoneFileSearchRequest {
279
- DropZoneName?: string;
280
- Server?: string;
281
- ECLWatchVisibleOnly?: boolean;
282
- NameFilter?: string;
283
- }
284
-
285
- export interface PhysicalFileStruct {
286
- name: string;
287
- Server: string;
288
- isDir: boolean;
289
- filesize: long;
290
- modifiedtime: string;
291
- Path: string;
292
- Files: Files;
293
- }
294
-
295
- export interface Files {
296
- PhysicalFileStruct: PhysicalFileStruct[];
297
- }
298
-
299
- export interface DropZoneFileSearchResponse {
300
- Exceptions: Exceptions;
301
- Files: Files;
302
- Warning: string;
303
- }
304
-
305
- export interface DropZoneFilesRequest {
306
- DropZoneName?: string;
307
- NetAddress?: string;
308
- Path?: string;
309
- OS?: string;
310
- Subfolder?: string;
311
- ECLWatchVisibleOnly?: boolean;
312
- DirectoryOnly?: boolean;
313
- }
314
-
315
- export interface DropZone {
316
- Name: string;
317
- NetAddress: string;
318
- Path: string;
319
- Computer: string;
320
- Linux: string;
321
- }
322
-
323
- export interface DropZones {
324
- DropZone: DropZone[];
325
- }
326
-
327
- export interface DropZoneFilesResponse {
328
- Exceptions: Exceptions;
329
- DropZoneName: string;
330
- NetAddress: string;
331
- Path: string;
332
- OS: int;
333
- ECLWatchVisibleOnly: boolean;
334
- DropZones: DropZones;
335
- Files: Files;
336
- }
337
-
338
- export interface EchoDateTime {
339
- dt: dateTime;
340
- }
341
-
342
- export interface EchoDateTimeResponse {
343
- result: dateTime;
344
- }
345
-
346
- export interface FileListRequest {
347
- DropZoneName?: string;
348
- Netaddr?: string;
349
- Path?: string;
350
- Mask?: string;
351
- OS?: string;
352
- DirectoryOnly?: boolean;
353
- }
354
-
355
- export interface files {
356
- PhysicalFileStruct: PhysicalFileStruct[];
357
- }
358
-
359
- export interface FileListResponse {
360
- Exceptions: Exceptions;
361
- Netaddr: string;
362
- Path: string;
363
- Mask: string;
364
- OS: int;
365
- DirectoryOnly: boolean;
366
- AcceptLanguage: string;
367
- files: files;
368
- }
369
-
370
- export interface GetDFUExceptions {
371
- wuid: string;
372
- }
373
-
374
- export interface DFUException {
375
- Code: int;
376
- Message: string;
377
- }
378
-
379
- export interface result2 {
380
- DFUException: DFUException[];
381
- }
382
-
383
- export interface GetDFUExceptionsResponse {
384
- Exceptions: Exceptions;
385
- result: result2;
386
- }
387
-
388
- export interface ProgressRequest {
389
- wuid?: string;
390
- }
391
-
392
- export interface ProgressResponse {
393
- Exceptions: Exceptions;
394
- wuid: string;
395
- PercentDone: int;
396
- SecsLeft: int;
397
- KbPerSecAve: int;
398
- KbPerSec: int;
399
- SlavesDone: int;
400
- TimeTaken: string;
401
- ProgressMessage: string;
402
- SummaryMessage: string;
403
- State: string;
404
- }
405
-
406
- export interface GetDFUServerQueuesRequest {
407
- DFUServerName?: string;
408
- }
409
-
410
- export interface GetDFUServerQueuesResponse {
411
- Exceptions: Exceptions;
412
- Names: Names;
413
- }
414
-
415
- export interface GetDFUWorkunit {
416
- wuid: string;
417
- }
418
-
419
- export interface GetDFUWorkunitResponse {
420
- Exceptions: Exceptions;
421
- result: result;
422
- AutoRefresh: int;
423
- }
424
-
425
- export interface GetDFUWorkunits {
426
- Wuid: string;
427
- Owner: string;
428
- Cluster: string;
429
- StateReq: string;
430
- Type: string;
431
- Jobname: string;
432
- PageSize: long;
433
- CurrentPage: int;
434
- PageStartFrom: long;
435
- Sortby: string;
436
- Descending: boolean;
437
- CacheHint: long;
438
- ParentWuid: string;
439
- PublisherWuid: string;
440
- includeProgressMessages: boolean;
441
- includeTimings: boolean;
442
- includeTransferRate: boolean;
443
- }
444
-
445
- export interface DFUWorkunit {
446
- ID: string;
447
- DFUServerName: string;
448
- ClusterName: string;
449
- JobName: string;
450
- Queue: string;
451
- User: string;
452
- isProtected: boolean;
453
- Command: int;
454
- CommandMessage: string;
455
- PercentDone: int;
456
- SecsLeft: int;
457
- ProgressMessage: string;
458
- SummaryMessage: string;
459
- State: int;
460
- SourceLogicalName: string;
461
- SourceIP: string;
462
- SourceFilePath: string;
463
- SourceDali: string;
464
- SourceRecordSize: int;
465
- SourceFormat: int;
466
- RowTag: string;
467
- SourceNumParts: int;
468
- SourceDirectory: string;
469
- DestLogicalName: string;
470
- DestGroupName: string;
471
- DestDirectory: string;
472
- DestIP: string;
473
- DestFilePath: string;
474
- DestFormat: int;
475
- DestNumParts: int;
476
- DestRecordSize: int;
477
- Replicate: boolean;
478
- Overwrite: boolean;
479
- Compress: boolean;
480
- SourceCsvSeparate: string;
481
- SourceCsvQuote: string;
482
- SourceCsvTerminate: string;
483
- SourceCsvEscape: string;
484
- TimeStarted: string;
485
- TimeStopped: string;
486
- StateMessage: string;
487
- MonitorEventName: string;
488
- MonitorSub: boolean;
489
- MonitorShotLimit: int;
490
- SourceDiffKeyName: string;
491
- DestDiffKeyName: string;
492
- Archived: boolean;
493
- encrypt: string;
494
- decrypt: string;
495
- failIfNoSourceFile: boolean;
496
- recordStructurePresent: boolean;
497
- quotedTerminator: boolean;
498
- preserveCompression: boolean;
499
- expireDays: int;
500
- PreserveFileParts: boolean;
501
- FileAccessCost: double;
502
- KbPerSecAve: int;
503
- KbPerSec: int;
504
- }
505
-
506
- export interface results {
507
- DFUWorkunit: DFUWorkunit[];
508
- }
509
-
510
- export interface GetDFUWorkunitsResponse {
511
- Exceptions: Exceptions;
512
- results: results;
513
- Type: string;
514
- Owner: string;
515
- Cluster: string;
516
- StateReq: string;
517
- PageSize: long;
518
- PrevPage: long;
519
- NextPage: long;
520
- LastPage: long;
521
- NumWUs: long;
522
- PageStartFrom: long;
523
- PageEndAt: long;
524
- First: boolean;
525
- Sortby: string;
526
- Descending: boolean;
527
- BasicQuery: string;
528
- Filters: string;
529
- CacheHint: long;
530
- }
531
-
532
- export interface GetRemoteTargetsRequest {
533
-
534
- }
535
-
536
- export interface TargetNames {
537
- Item: string[];
538
- }
539
-
540
- export interface GetRemoteTargetsResponse {
541
- Exceptions: Exceptions;
542
- TargetNames: TargetNames;
543
- AllowForeign: boolean;
544
- }
545
-
546
- export interface GetSprayTargetsRequest {
547
-
548
- }
549
-
550
- export interface GroupNode {
551
- Name: string;
552
- ClusterType: string;
553
- ReplicateOutputs: boolean;
554
- }
555
-
556
- export interface GroupNodes {
557
- GroupNode: GroupNode[];
558
- }
559
-
560
- export interface GetSprayTargetsResponse {
561
- Exceptions: Exceptions;
562
- GroupNodes: GroupNodes;
563
- }
564
-
565
- export interface OpenSaveRequest {
566
- Location?: string;
567
- Path?: string;
568
- Name?: string;
569
- Type?: string;
570
- DateTime?: string;
571
- BinaryFile?: boolean;
572
- }
573
-
574
- export interface OpenSaveResponse {
575
- Exceptions: Exceptions;
576
- Location: string;
577
- Path: string;
578
- Name: string;
579
- Type: string;
580
- DateTime: string;
581
- Viewable: boolean;
582
- }
583
-
584
- export interface FileSprayPingRequest {
585
-
586
- }
587
-
588
- export interface FileSprayPingResponse {
589
-
590
- }
591
-
592
- export interface Rename {
593
- srcname: string;
594
- dstname: string;
595
- overwrite: boolean;
596
- DFUServerQueue: string;
597
- }
598
-
599
- export interface RenameResponse {
600
- Exceptions: Exceptions;
601
- wuid: string;
602
- }
603
-
604
- export interface Replicate {
605
- sourceLogicalName: string;
606
- replicateOffset: int;
607
- cluster: string;
608
- repeatLast: boolean;
609
- onlyRepeated: boolean;
610
- DFUServerQueue: string;
611
- }
612
-
613
- export interface ReplicateResponse {
614
- Exceptions: Exceptions;
615
- wuid: string;
616
- }
617
-
618
- export interface ShowResultRequest {
619
- Result?: string;
620
- }
621
-
622
- export interface ShowResultResponse {
623
- Exceptions: Exceptions;
624
- Result: string;
625
- }
626
-
627
- export interface SprayFixed {
628
- sourceIP: string;
629
- sourcePlane: string;
630
- sourcePath: string;
631
- srcxml: base64Binary;
632
- sourceFormat: string;
633
- sourceRecordSize: int;
634
- destGroup: string;
635
- destLogicalName: string;
636
- destNumParts: int;
637
- overwrite: boolean;
638
- replicate: boolean;
639
- ReplicateOffset: int;
640
- maxConnections: int;
641
- throttle: int;
642
- transferBufferSize: int;
643
- prefix: string;
644
- nosplit: boolean;
645
- norecover: boolean;
646
- compress: boolean;
647
- push: boolean;
648
- pull: boolean;
649
- noCommon: boolean;
650
- encrypt: string;
651
- decrypt: string;
652
- wrap: boolean;
653
- failIfNoSourceFile: boolean;
654
- recordStructurePresent: boolean;
655
- quotedTerminator: boolean;
656
- expireDays: int;
657
- DFUServerQueue: string;
658
- }
659
-
660
- export interface SprayFixedResponse {
661
- Exceptions: Exceptions;
662
- wuid: string;
663
- }
664
-
665
- export interface SprayVariable {
666
- sourceIP: string;
667
- sourcePlane: string;
668
- sourcePath: string;
669
- srcxml: base64Binary;
670
- sourceMaxRecordSize: int;
671
- sourceFormat: int;
672
- NoSourceCsvSeparator: boolean;
673
- sourceCsvSeparate: string;
674
- sourceCsvTerminate: string;
675
- sourceCsvQuote: string;
676
- sourceCsvEscape: string;
677
- sourceRowTag: string;
678
- destGroup: string;
679
- destLogicalName: string;
680
- destNumParts: int;
681
- overwrite: boolean;
682
- replicate: boolean;
683
- ReplicateOffset: int;
684
- maxConnections: int;
685
- throttle: int;
686
- transferBufferSize: int;
687
- prefix: string;
688
- nosplit: boolean;
689
- norecover: boolean;
690
- compress: boolean;
691
- push: boolean;
692
- pull: boolean;
693
- noCommon: boolean;
694
- encrypt: string;
695
- decrypt: string;
696
- failIfNoSourceFile: boolean;
697
- recordStructurePresent: boolean;
698
- quotedTerminator: boolean;
699
- sourceRowPath: string;
700
- isJSON: boolean;
701
- expireDays: int;
702
- DFUServerQueue: string;
703
- srcUsername: string;
704
- srcPassword: string;
705
- }
706
-
707
- export interface SprayResponse {
708
- Exceptions: Exceptions;
709
- wuid: string;
710
- }
711
-
712
- export interface SubmitDFUWorkunit {
713
- wuid: string;
714
- }
715
-
716
- export interface SubmitDFUWorkunitResponse {
717
- Exceptions: Exceptions;
718
- }
719
-
720
- export interface wu {
721
- ID: string;
722
- DFUServerName: string;
723
- ClusterName: string;
724
- JobName: string;
725
- Queue: string;
726
- User: string;
727
- isProtected: boolean;
728
- Command: int;
729
- CommandMessage: string;
730
- PercentDone: int;
731
- SecsLeft: int;
732
- ProgressMessage: string;
733
- SummaryMessage: string;
734
- State: int;
735
- SourceLogicalName: string;
736
- SourceIP: string;
737
- SourceFilePath: string;
738
- SourceDali: string;
739
- SourceRecordSize: int;
740
- SourceFormat: int;
741
- RowTag: string;
742
- SourceNumParts: int;
743
- SourceDirectory: string;
744
- DestLogicalName: string;
745
- DestGroupName: string;
746
- DestDirectory: string;
747
- DestIP: string;
748
- DestFilePath: string;
749
- DestFormat: int;
750
- DestNumParts: int;
751
- DestRecordSize: int;
752
- Replicate: boolean;
753
- Overwrite: boolean;
754
- Compress: boolean;
755
- SourceCsvSeparate: string;
756
- SourceCsvQuote: string;
757
- SourceCsvTerminate: string;
758
- SourceCsvEscape: string;
759
- TimeStarted: string;
760
- TimeStopped: string;
761
- StateMessage: string;
762
- MonitorEventName: string;
763
- MonitorSub: boolean;
764
- MonitorShotLimit: int;
765
- SourceDiffKeyName: string;
766
- DestDiffKeyName: string;
767
- Archived: boolean;
768
- encrypt: string;
769
- decrypt: string;
770
- failIfNoSourceFile: boolean;
771
- recordStructurePresent: boolean;
772
- quotedTerminator: boolean;
773
- preserveCompression: boolean;
774
- expireDays: int;
775
- PreserveFileParts: boolean;
776
- FileAccessCost: double;
777
- KbPerSecAve: int;
778
- KbPerSec: int;
779
- }
780
-
781
- export interface UpdateDFUWorkunit {
782
- wu: wu;
783
- ClusterOrig: string;
784
- JobNameOrig: string;
785
- isProtectedOrig: boolean;
786
- StateOrig: int;
787
- }
788
-
789
- export interface UpdateDFUWorkunitResponse {
790
- Exceptions: Exceptions;
791
- }
792
-
793
- }
794
-
795
- export class FileSprayServiceBase extends Service {
796
-
797
- constructor(optsConnection: IOptions | IConnection) {
798
- super(optsConnection, "FileSpray", "1.26");
799
- }
800
-
801
- AbortDFUWorkunit(request: Partial<FileSpray.AbortDFUWorkunit>): Promise<FileSpray.AbortDFUWorkunitResponse> {
802
- return this._connection.send("AbortDFUWorkunit", request, "json", false, undefined, "AbortDFUWorkunitResponse");
803
- }
804
-
805
- Copy(request: Partial<FileSpray.Copy>): Promise<FileSpray.CopyResponse> {
806
- return this._connection.send("Copy", request, "json", false, undefined, "CopyResponse");
807
- }
808
-
809
- CreateDFUPublisherWorkunit(request: Partial<FileSpray.CreateDFUPublisherWorkunit>): Promise<FileSpray.CreateDFUPublisherWorkunitResponse> {
810
- return this._connection.send("CreateDFUPublisherWorkunit", request, "json", false, undefined, "CreateDFUPublisherWorkunitResponse");
811
- }
812
-
813
- CreateDFUWorkunit(request: Partial<FileSpray.CreateDFUWorkunit>): Promise<FileSpray.CreateDFUWorkunitResponse> {
814
- return this._connection.send("CreateDFUWorkunit", request, "json", false, undefined, "CreateDFUWorkunitResponse");
815
- }
816
-
817
- DFUWUFile(request: Partial<FileSpray.DFUWUFileRequest>): Promise<FileSpray.DFUWUFileResponse> {
818
- return this._connection.send("DFUWUFile", request, "json", false, undefined, "DFUWUFileResponse");
819
- }
820
-
821
- DFUWUSearch(request: Partial<FileSpray.DFUWUSearchRequest>): Promise<FileSpray.DFUWUSearchResponse> {
822
- return this._connection.send("DFUWUSearch", request, "json", false, undefined, "DFUWUSearchResponse");
823
- }
824
-
825
- DFUWorkunitsAction(request: Partial<FileSpray.DFUWorkunitsActionRequest>): Promise<FileSpray.DFUWorkunitsActionResponse> {
826
- return this._connection.send("DFUWorkunitsAction", request, "json", false, undefined, "DFUWorkunitsActionResponse");
827
- }
828
-
829
- DeleteDFUWorkunit(request: Partial<FileSpray.DeleteDFUWorkunit>): Promise<FileSpray.DeleteDFUWorkunitResponse> {
830
- return this._connection.send("DeleteDFUWorkunit", request, "json", false, undefined, "DeleteDFUWorkunitResponse");
831
- }
832
-
833
- DeleteDFUWorkunits(request: Partial<FileSpray.DeleteDFUWorkunits>): Promise<FileSpray.DeleteDFUWorkunitsResponse> {
834
- return this._connection.send("DeleteDFUWorkunits", request, "json", false, undefined, "DeleteDFUWorkunitsResponse");
835
- }
836
-
837
- DeleteDropZoneFiles(request: Partial<FileSpray.DeleteDropZoneFilesRequest>): Promise<FileSpray.DFUWorkunitsActionResponse> {
838
- return this._connection.send("DeleteDropZoneFiles", request, "json", false, undefined, "DFUWorkunitsActionResponse");
839
- }
840
-
841
- Despray(request: Partial<FileSpray.Despray>): Promise<FileSpray.DesprayResponse> {
842
- return this._connection.send("Despray", request, "json", false, undefined, "DesprayResponse");
843
- }
844
-
845
- DfuMonitor(request: Partial<FileSpray.DfuMonitorRequest>): Promise<FileSpray.DfuMonitorResponse> {
846
- return this._connection.send("DfuMonitor", request, "json", false, undefined, "DfuMonitorResponse");
847
- }
848
-
849
- DropZoneFileSearch(request: Partial<FileSpray.DropZoneFileSearchRequest>): Promise<FileSpray.DropZoneFileSearchResponse> {
850
- return this._connection.send("DropZoneFileSearch", request, "json", false, undefined, "DropZoneFileSearchResponse");
851
- }
852
-
853
- DropZoneFiles(request: Partial<FileSpray.DropZoneFilesRequest>): Promise<FileSpray.DropZoneFilesResponse> {
854
- return this._connection.send("DropZoneFiles", request, "json", false, undefined, "DropZoneFilesResponse");
855
- }
856
-
857
- EchoDateTime(request: Partial<FileSpray.EchoDateTime>): Promise<FileSpray.EchoDateTimeResponse> {
858
- return this._connection.send("EchoDateTime", request, "json", false, undefined, "EchoDateTimeResponse");
859
- }
860
-
861
- FileList(request: Partial<FileSpray.FileListRequest>): Promise<FileSpray.FileListResponse> {
862
- return this._connection.send("FileList", request, "json", false, undefined, "FileListResponse");
863
- }
864
-
865
- GetDFUExceptions(request: Partial<FileSpray.GetDFUExceptions>): Promise<FileSpray.GetDFUExceptionsResponse> {
866
- return this._connection.send("GetDFUExceptions", request, "json", false, undefined, "GetDFUExceptionsResponse");
867
- }
868
-
869
- GetDFUProgress(request: Partial<FileSpray.ProgressRequest>): Promise<FileSpray.ProgressResponse> {
870
- return this._connection.send("GetDFUProgress", request, "json", false, undefined, "ProgressResponse");
871
- }
872
-
873
- GetDFUServerQueues(request: Partial<FileSpray.GetDFUServerQueuesRequest>): Promise<FileSpray.GetDFUServerQueuesResponse> {
874
- return this._connection.send("GetDFUServerQueues", request, "json", false, undefined, "GetDFUServerQueuesResponse");
875
- }
876
-
877
- GetDFUWorkunit(request: Partial<FileSpray.GetDFUWorkunit>): Promise<FileSpray.GetDFUWorkunitResponse> {
878
- return this._connection.send("GetDFUWorkunit", request, "json", false, undefined, "GetDFUWorkunitResponse");
879
- }
880
-
881
- GetDFUWorkunits(request: Partial<FileSpray.GetDFUWorkunits>): Promise<FileSpray.GetDFUWorkunitsResponse> {
882
- return this._connection.send("GetDFUWorkunits", request, "json", false, undefined, "GetDFUWorkunitsResponse");
883
- }
884
-
885
- GetRemoteTargets(request: Partial<FileSpray.GetRemoteTargetsRequest>): Promise<FileSpray.GetRemoteTargetsResponse> {
886
- return this._connection.send("GetRemoteTargets", request, "json", false, undefined, "GetRemoteTargetsResponse");
887
- }
888
-
889
- GetSprayTargets(request: Partial<FileSpray.GetSprayTargetsRequest>): Promise<FileSpray.GetSprayTargetsResponse> {
890
- return this._connection.send("GetSprayTargets", request, "json", false, undefined, "GetSprayTargetsResponse");
891
- }
892
-
893
- OpenSave(request: Partial<FileSpray.OpenSaveRequest>): Promise<FileSpray.OpenSaveResponse> {
894
- return this._connection.send("OpenSave", request, "json", false, undefined, "OpenSaveResponse");
895
- }
896
-
897
- Ping(request: Partial<FileSpray.FileSprayPingRequest>): Promise<FileSpray.FileSprayPingResponse> {
898
- return this._connection.send("Ping", request, "json", false, undefined, "FileSprayPingResponse");
899
- }
900
-
901
- Rename(request: Partial<FileSpray.Rename>): Promise<FileSpray.RenameResponse> {
902
- return this._connection.send("Rename", request, "json", false, undefined, "RenameResponse");
903
- }
904
-
905
- Replicate(request: Partial<FileSpray.Replicate>): Promise<FileSpray.ReplicateResponse> {
906
- return this._connection.send("Replicate", request, "json", false, undefined, "ReplicateResponse");
907
- }
908
-
909
- ShowResult(request: Partial<FileSpray.ShowResultRequest>): Promise<FileSpray.ShowResultResponse> {
910
- return this._connection.send("ShowResult", request, "json", false, undefined, "ShowResultResponse");
911
- }
912
-
913
- SprayFixed(request: Partial<FileSpray.SprayFixed>): Promise<FileSpray.SprayFixedResponse> {
914
- return this._connection.send("SprayFixed", request, "json", false, undefined, "SprayFixedResponse");
915
- }
916
-
917
- SprayVariable(request: Partial<FileSpray.SprayVariable>): Promise<FileSpray.SprayResponse> {
918
- return this._connection.send("SprayVariable", request, "json", false, undefined, "SprayResponse");
919
- }
920
-
921
- SubmitDFUWorkunit(request: Partial<FileSpray.SubmitDFUWorkunit>): Promise<FileSpray.SubmitDFUWorkunitResponse> {
922
- return this._connection.send("SubmitDFUWorkunit", request, "json", false, undefined, "SubmitDFUWorkunitResponse");
923
- }
924
-
925
- UpdateDFUWorkunit(request: Partial<FileSpray.UpdateDFUWorkunit>): Promise<FileSpray.UpdateDFUWorkunitResponse> {
926
- return this._connection.send("UpdateDFUWorkunit", request, "json", false, undefined, "UpdateDFUWorkunitResponse");
927
- }
928
-
929
- }
1
+ import { IConnection, IOptions } from "../../../../connection";
2
+ import { Service } from "../../../../espConnection";
3
+
4
+ export namespace FileSpray {
5
+
6
+ export type int = number;
7
+ export type double = number;
8
+ export type base64Binary = string;
9
+ export type long = number;
10
+ export type dateTime = string;
11
+
12
+ export enum DFUWUActions {
13
+ Delete = "Delete",
14
+ Protect = "Protect",
15
+ Unprotect = "Unprotect",
16
+ Restore = "Restore",
17
+ SetToFailed = "SetToFailed",
18
+ Archive = "Archive"
19
+ }
20
+
21
+ export interface AbortDFUWorkunit {
22
+ wuid: string;
23
+ }
24
+
25
+ export interface Exception {
26
+ Code: string;
27
+ Audience: string;
28
+ Source: string;
29
+ Message: string;
30
+ }
31
+
32
+ export interface Exceptions {
33
+ Source: string;
34
+ Exception: Exception[];
35
+ }
36
+
37
+ export interface AbortDFUWorkunitResponse {
38
+ Exceptions: Exceptions;
39
+ }
40
+
41
+ export interface Copy {
42
+ sourceLogicalName: string;
43
+ destGroup: string;
44
+ destGroupRoxie: string;
45
+ destLogicalName: string;
46
+ sourceDali: string;
47
+ srcusername: string;
48
+ srcpassword: string;
49
+ overwrite: boolean;
50
+ ensure: boolean;
51
+ replicate: boolean;
52
+ ReplicateOffset: int;
53
+ maxConnections: int;
54
+ throttle: int;
55
+ transferBufferSize: int;
56
+ nosplit: boolean;
57
+ norecover: boolean;
58
+ compress: boolean;
59
+ Wrap: boolean;
60
+ Multicopy: boolean;
61
+ SourceDiffKeyName: string;
62
+ DestDiffKeyName: string;
63
+ superCopy: boolean;
64
+ push: boolean;
65
+ pull: boolean;
66
+ ifnewer: boolean;
67
+ noCommon: boolean;
68
+ encrypt: string;
69
+ decrypt: string;
70
+ preserveCompression: boolean;
71
+ DFUServerQueue: string;
72
+ ExpireDays: int;
73
+ }
74
+
75
+ export interface CopyResponse {
76
+ Exceptions: Exceptions;
77
+ result: string;
78
+ }
79
+
80
+ export interface CreateDFUPublisherWorkunit {
81
+ DFUServerQueue: string;
82
+ }
83
+
84
+ export interface result {
85
+ ID: string;
86
+ DFUServerName: string;
87
+ ClusterName: string;
88
+ JobName: string;
89
+ Queue: string;
90
+ User: string;
91
+ isProtected: boolean;
92
+ Command: int;
93
+ CommandMessage: string;
94
+ PercentDone: int;
95
+ SecsLeft: int;
96
+ ProgressMessage: string;
97
+ SummaryMessage: string;
98
+ State: int;
99
+ SourceLogicalName: string;
100
+ SourceIP: string;
101
+ SourceFilePath: string;
102
+ SourceDali: string;
103
+ SourceRecordSize: int;
104
+ SourceFormat: int;
105
+ RowTag: string;
106
+ SourceNumParts: int;
107
+ SourceDirectory: string;
108
+ DestLogicalName: string;
109
+ DestGroupName: string;
110
+ DestDirectory: string;
111
+ DestIP: string;
112
+ DestFilePath: string;
113
+ DestFormat: int;
114
+ DestNumParts: int;
115
+ DestRecordSize: int;
116
+ Replicate: boolean;
117
+ Overwrite: boolean;
118
+ Compress: boolean;
119
+ SourceCsvSeparate: string;
120
+ SourceCsvQuote: string;
121
+ SourceCsvTerminate: string;
122
+ SourceCsvEscape: string;
123
+ TimeStarted: string;
124
+ TimeStopped: string;
125
+ StateMessage: string;
126
+ MonitorEventName: string;
127
+ MonitorSub: boolean;
128
+ MonitorShotLimit: int;
129
+ SourceDiffKeyName: string;
130
+ DestDiffKeyName: string;
131
+ Archived: boolean;
132
+ encrypt: string;
133
+ decrypt: string;
134
+ failIfNoSourceFile: boolean;
135
+ recordStructurePresent: boolean;
136
+ quotedTerminator: boolean;
137
+ preserveCompression: boolean;
138
+ expireDays: int;
139
+ PreserveFileParts: boolean;
140
+ FileAccessCost: double;
141
+ KbPerSecAve: int;
142
+ KbPerSec: int;
143
+ }
144
+
145
+ export interface CreateDFUPublisherWorkunitResponse {
146
+ Exceptions: Exceptions;
147
+ result: result;
148
+ }
149
+
150
+ export interface CreateDFUWorkunit {
151
+ DFUServerQueue: string;
152
+ }
153
+
154
+ export interface CreateDFUWorkunitResponse {
155
+ Exceptions: Exceptions;
156
+ result: result;
157
+ }
158
+
159
+ export interface DFUWUFileRequest {
160
+ Wuid?: string;
161
+ Type?: string;
162
+ PlainText?: string;
163
+ }
164
+
165
+ export interface DFUWUFileResponse {
166
+ Exceptions: Exceptions;
167
+ file: string;
168
+ }
169
+
170
+ export interface DFUWUSearchRequest {
171
+
172
+ }
173
+
174
+ export interface ClusterNames {
175
+ ClusterName: string[];
176
+ }
177
+
178
+ export interface DFUWUSearchResponse {
179
+ Exceptions: Exceptions;
180
+ ClusterNames: ClusterNames;
181
+ }
182
+
183
+ export interface wuids {
184
+ Item: string[];
185
+ }
186
+
187
+ export interface DFUWorkunitsActionRequest {
188
+ wuids?: wuids;
189
+ Type?: DFUWUActions;
190
+ }
191
+
192
+ export interface DFUActionResult {
193
+ ID: string;
194
+ Action: string;
195
+ Result: string;
196
+ }
197
+
198
+ export interface DFUActionResults {
199
+ DFUActionResult: DFUActionResult[];
200
+ }
201
+
202
+ export interface DFUWorkunitsActionResponse {
203
+ Exceptions: Exceptions;
204
+ FirstColumn: string;
205
+ DFUActionResults: DFUActionResults;
206
+ }
207
+
208
+ export interface DeleteDFUWorkunit {
209
+ wuid: string;
210
+ }
211
+
212
+ export interface DeleteDFUWorkunitResponse {
213
+ Exceptions: Exceptions;
214
+ result: boolean;
215
+ }
216
+
217
+ export interface DeleteDFUWorkunits {
218
+ wuids: wuids;
219
+ }
220
+
221
+ export interface DeleteDFUWorkunitsResponse {
222
+ Exceptions: Exceptions;
223
+ }
224
+
225
+ export interface Names {
226
+ Item: string[];
227
+ }
228
+
229
+ export interface DeleteDropZoneFilesRequest {
230
+ DropZoneName?: string;
231
+ NetAddress?: string;
232
+ Path?: string;
233
+ OS?: string;
234
+ Names?: Names;
235
+ }
236
+
237
+ export interface Despray {
238
+ destGroup: string;
239
+ sourceLogicalName: string;
240
+ destIP: string;
241
+ destPath: string;
242
+ destPlane: string;
243
+ dstxml: base64Binary;
244
+ overwrite: boolean;
245
+ maxConnections: int;
246
+ throttle: int;
247
+ transferBufferSize: int;
248
+ splitprefix: string;
249
+ norecover: boolean;
250
+ wrap: boolean;
251
+ multiCopy: boolean;
252
+ SingleConnection: boolean;
253
+ DFUServerQueue: string;
254
+ compress: boolean;
255
+ encrypt: string;
256
+ decrypt: string;
257
+ }
258
+
259
+ export interface DesprayResponse {
260
+ Exceptions: Exceptions;
261
+ wuid: string;
262
+ }
263
+
264
+ export interface DfuMonitorRequest {
265
+ EventName?: string;
266
+ LogicalName?: string;
267
+ Ip?: string;
268
+ Filename?: string;
269
+ Sub?: boolean;
270
+ ShotLimit?: int;
271
+ }
272
+
273
+ export interface DfuMonitorResponse {
274
+ Exceptions: Exceptions;
275
+ wuid: string;
276
+ }
277
+
278
+ export interface DropZoneFileSearchRequest {
279
+ DropZoneName?: string;
280
+ Server?: string;
281
+ ECLWatchVisibleOnly?: boolean;
282
+ NameFilter?: string;
283
+ }
284
+
285
+ export interface PhysicalFileStruct {
286
+ name: string;
287
+ Server: string;
288
+ isDir: boolean;
289
+ filesize: long;
290
+ modifiedtime: string;
291
+ Path: string;
292
+ Files: Files;
293
+ }
294
+
295
+ export interface Files {
296
+ PhysicalFileStruct: PhysicalFileStruct[];
297
+ }
298
+
299
+ export interface DropZoneFileSearchResponse {
300
+ Exceptions: Exceptions;
301
+ Files: Files;
302
+ Warning: string;
303
+ }
304
+
305
+ export interface DropZoneFilesRequest {
306
+ DropZoneName?: string;
307
+ NetAddress?: string;
308
+ Path?: string;
309
+ OS?: string;
310
+ Subfolder?: string;
311
+ ECLWatchVisibleOnly?: boolean;
312
+ DirectoryOnly?: boolean;
313
+ }
314
+
315
+ export interface DropZone {
316
+ Name: string;
317
+ NetAddress: string;
318
+ Path: string;
319
+ Computer: string;
320
+ Linux: string;
321
+ }
322
+
323
+ export interface DropZones {
324
+ DropZone: DropZone[];
325
+ }
326
+
327
+ export interface DropZoneFilesResponse {
328
+ Exceptions: Exceptions;
329
+ DropZoneName: string;
330
+ NetAddress: string;
331
+ Path: string;
332
+ OS: int;
333
+ ECLWatchVisibleOnly: boolean;
334
+ DropZones: DropZones;
335
+ Files: Files;
336
+ }
337
+
338
+ export interface EchoDateTime {
339
+ dt: dateTime;
340
+ }
341
+
342
+ export interface EchoDateTimeResponse {
343
+ result: dateTime;
344
+ }
345
+
346
+ export interface FileListRequest {
347
+ DropZoneName?: string;
348
+ Netaddr?: string;
349
+ Path?: string;
350
+ Mask?: string;
351
+ OS?: string;
352
+ DirectoryOnly?: boolean;
353
+ }
354
+
355
+ export interface files {
356
+ PhysicalFileStruct: PhysicalFileStruct[];
357
+ }
358
+
359
+ export interface FileListResponse {
360
+ Exceptions: Exceptions;
361
+ Netaddr: string;
362
+ Path: string;
363
+ Mask: string;
364
+ OS: int;
365
+ DirectoryOnly: boolean;
366
+ AcceptLanguage: string;
367
+ files: files;
368
+ }
369
+
370
+ export interface GetDFUExceptions {
371
+ wuid: string;
372
+ }
373
+
374
+ export interface DFUException {
375
+ Code: int;
376
+ Message: string;
377
+ }
378
+
379
+ export interface result2 {
380
+ DFUException: DFUException[];
381
+ }
382
+
383
+ export interface GetDFUExceptionsResponse {
384
+ Exceptions: Exceptions;
385
+ result: result2;
386
+ }
387
+
388
+ export interface ProgressRequest {
389
+ wuid?: string;
390
+ }
391
+
392
+ export interface ProgressResponse {
393
+ Exceptions: Exceptions;
394
+ wuid: string;
395
+ PercentDone: int;
396
+ SecsLeft: int;
397
+ KbPerSecAve: int;
398
+ KbPerSec: int;
399
+ SlavesDone: int;
400
+ TimeTaken: string;
401
+ ProgressMessage: string;
402
+ SummaryMessage: string;
403
+ State: string;
404
+ }
405
+
406
+ export interface GetDFUServerQueuesRequest {
407
+ DFUServerName?: string;
408
+ }
409
+
410
+ export interface GetDFUServerQueuesResponse {
411
+ Exceptions: Exceptions;
412
+ Names: Names;
413
+ }
414
+
415
+ export interface GetDFUWorkunit {
416
+ wuid: string;
417
+ }
418
+
419
+ export interface GetDFUWorkunitResponse {
420
+ Exceptions: Exceptions;
421
+ result: result;
422
+ AutoRefresh: int;
423
+ }
424
+
425
+ export interface GetDFUWorkunits {
426
+ Wuid: string;
427
+ Owner: string;
428
+ Cluster: string;
429
+ StateReq: string;
430
+ Type: string;
431
+ Jobname: string;
432
+ PageSize: long;
433
+ CurrentPage: int;
434
+ PageStartFrom: long;
435
+ Sortby: string;
436
+ Descending: boolean;
437
+ CacheHint: long;
438
+ ParentWuid: string;
439
+ PublisherWuid: string;
440
+ includeProgressMessages: boolean;
441
+ includeTimings: boolean;
442
+ includeTransferRate: boolean;
443
+ }
444
+
445
+ export interface DFUWorkunit {
446
+ ID: string;
447
+ DFUServerName: string;
448
+ ClusterName: string;
449
+ JobName: string;
450
+ Queue: string;
451
+ User: string;
452
+ isProtected: boolean;
453
+ Command: int;
454
+ CommandMessage: string;
455
+ PercentDone: int;
456
+ SecsLeft: int;
457
+ ProgressMessage: string;
458
+ SummaryMessage: string;
459
+ State: int;
460
+ SourceLogicalName: string;
461
+ SourceIP: string;
462
+ SourceFilePath: string;
463
+ SourceDali: string;
464
+ SourceRecordSize: int;
465
+ SourceFormat: int;
466
+ RowTag: string;
467
+ SourceNumParts: int;
468
+ SourceDirectory: string;
469
+ DestLogicalName: string;
470
+ DestGroupName: string;
471
+ DestDirectory: string;
472
+ DestIP: string;
473
+ DestFilePath: string;
474
+ DestFormat: int;
475
+ DestNumParts: int;
476
+ DestRecordSize: int;
477
+ Replicate: boolean;
478
+ Overwrite: boolean;
479
+ Compress: boolean;
480
+ SourceCsvSeparate: string;
481
+ SourceCsvQuote: string;
482
+ SourceCsvTerminate: string;
483
+ SourceCsvEscape: string;
484
+ TimeStarted: string;
485
+ TimeStopped: string;
486
+ StateMessage: string;
487
+ MonitorEventName: string;
488
+ MonitorSub: boolean;
489
+ MonitorShotLimit: int;
490
+ SourceDiffKeyName: string;
491
+ DestDiffKeyName: string;
492
+ Archived: boolean;
493
+ encrypt: string;
494
+ decrypt: string;
495
+ failIfNoSourceFile: boolean;
496
+ recordStructurePresent: boolean;
497
+ quotedTerminator: boolean;
498
+ preserveCompression: boolean;
499
+ expireDays: int;
500
+ PreserveFileParts: boolean;
501
+ FileAccessCost: double;
502
+ KbPerSecAve: int;
503
+ KbPerSec: int;
504
+ }
505
+
506
+ export interface results {
507
+ DFUWorkunit: DFUWorkunit[];
508
+ }
509
+
510
+ export interface GetDFUWorkunitsResponse {
511
+ Exceptions: Exceptions;
512
+ results: results;
513
+ Type: string;
514
+ Owner: string;
515
+ Cluster: string;
516
+ StateReq: string;
517
+ PageSize: long;
518
+ PrevPage: long;
519
+ NextPage: long;
520
+ LastPage: long;
521
+ NumWUs: long;
522
+ PageStartFrom: long;
523
+ PageEndAt: long;
524
+ First: boolean;
525
+ Sortby: string;
526
+ Descending: boolean;
527
+ BasicQuery: string;
528
+ Filters: string;
529
+ CacheHint: long;
530
+ }
531
+
532
+ export interface GetRemoteTargetsRequest {
533
+
534
+ }
535
+
536
+ export interface TargetNames {
537
+ Item: string[];
538
+ }
539
+
540
+ export interface GetRemoteTargetsResponse {
541
+ Exceptions: Exceptions;
542
+ TargetNames: TargetNames;
543
+ AllowForeign: boolean;
544
+ }
545
+
546
+ export interface GetSprayTargetsRequest {
547
+
548
+ }
549
+
550
+ export interface GroupNode {
551
+ Name: string;
552
+ ClusterType: string;
553
+ ReplicateOutputs: boolean;
554
+ }
555
+
556
+ export interface GroupNodes {
557
+ GroupNode: GroupNode[];
558
+ }
559
+
560
+ export interface GetSprayTargetsResponse {
561
+ Exceptions: Exceptions;
562
+ GroupNodes: GroupNodes;
563
+ }
564
+
565
+ export interface OpenSaveRequest {
566
+ Location?: string;
567
+ Path?: string;
568
+ Name?: string;
569
+ Type?: string;
570
+ DateTime?: string;
571
+ BinaryFile?: boolean;
572
+ }
573
+
574
+ export interface OpenSaveResponse {
575
+ Exceptions: Exceptions;
576
+ Location: string;
577
+ Path: string;
578
+ Name: string;
579
+ Type: string;
580
+ DateTime: string;
581
+ Viewable: boolean;
582
+ }
583
+
584
+ export interface FileSprayPingRequest {
585
+
586
+ }
587
+
588
+ export interface FileSprayPingResponse {
589
+
590
+ }
591
+
592
+ export interface Rename {
593
+ srcname: string;
594
+ dstname: string;
595
+ overwrite: boolean;
596
+ DFUServerQueue: string;
597
+ }
598
+
599
+ export interface RenameResponse {
600
+ Exceptions: Exceptions;
601
+ wuid: string;
602
+ }
603
+
604
+ export interface Replicate {
605
+ sourceLogicalName: string;
606
+ replicateOffset: int;
607
+ cluster: string;
608
+ repeatLast: boolean;
609
+ onlyRepeated: boolean;
610
+ DFUServerQueue: string;
611
+ }
612
+
613
+ export interface ReplicateResponse {
614
+ Exceptions: Exceptions;
615
+ wuid: string;
616
+ }
617
+
618
+ export interface ShowResultRequest {
619
+ Result?: string;
620
+ }
621
+
622
+ export interface ShowResultResponse {
623
+ Exceptions: Exceptions;
624
+ Result: string;
625
+ }
626
+
627
+ export interface SprayFixed {
628
+ sourceIP: string;
629
+ sourcePlane: string;
630
+ sourcePath: string;
631
+ srcxml: base64Binary;
632
+ sourceFormat: string;
633
+ sourceRecordSize: int;
634
+ destGroup: string;
635
+ destLogicalName: string;
636
+ destNumParts: int;
637
+ overwrite: boolean;
638
+ replicate: boolean;
639
+ ReplicateOffset: int;
640
+ maxConnections: int;
641
+ throttle: int;
642
+ transferBufferSize: int;
643
+ prefix: string;
644
+ nosplit: boolean;
645
+ norecover: boolean;
646
+ compress: boolean;
647
+ push: boolean;
648
+ pull: boolean;
649
+ noCommon: boolean;
650
+ encrypt: string;
651
+ decrypt: string;
652
+ wrap: boolean;
653
+ failIfNoSourceFile: boolean;
654
+ recordStructurePresent: boolean;
655
+ quotedTerminator: boolean;
656
+ expireDays: int;
657
+ DFUServerQueue: string;
658
+ }
659
+
660
+ export interface SprayFixedResponse {
661
+ Exceptions: Exceptions;
662
+ wuid: string;
663
+ }
664
+
665
+ export interface SprayVariable {
666
+ sourceIP: string;
667
+ sourcePlane: string;
668
+ sourcePath: string;
669
+ srcxml: base64Binary;
670
+ sourceMaxRecordSize: int;
671
+ sourceFormat: int;
672
+ NoSourceCsvSeparator: boolean;
673
+ sourceCsvSeparate: string;
674
+ sourceCsvTerminate: string;
675
+ sourceCsvQuote: string;
676
+ sourceCsvEscape: string;
677
+ sourceRowTag: string;
678
+ destGroup: string;
679
+ destLogicalName: string;
680
+ destNumParts: int;
681
+ overwrite: boolean;
682
+ replicate: boolean;
683
+ ReplicateOffset: int;
684
+ maxConnections: int;
685
+ throttle: int;
686
+ transferBufferSize: int;
687
+ prefix: string;
688
+ nosplit: boolean;
689
+ norecover: boolean;
690
+ compress: boolean;
691
+ push: boolean;
692
+ pull: boolean;
693
+ noCommon: boolean;
694
+ encrypt: string;
695
+ decrypt: string;
696
+ failIfNoSourceFile: boolean;
697
+ recordStructurePresent: boolean;
698
+ quotedTerminator: boolean;
699
+ sourceRowPath: string;
700
+ isJSON: boolean;
701
+ expireDays: int;
702
+ DFUServerQueue: string;
703
+ srcUsername: string;
704
+ srcPassword: string;
705
+ }
706
+
707
+ export interface SprayResponse {
708
+ Exceptions: Exceptions;
709
+ wuid: string;
710
+ }
711
+
712
+ export interface SubmitDFUWorkunit {
713
+ wuid: string;
714
+ }
715
+
716
+ export interface SubmitDFUWorkunitResponse {
717
+ Exceptions: Exceptions;
718
+ }
719
+
720
+ export interface wu {
721
+ ID: string;
722
+ DFUServerName: string;
723
+ ClusterName: string;
724
+ JobName: string;
725
+ Queue: string;
726
+ User: string;
727
+ isProtected: boolean;
728
+ Command: int;
729
+ CommandMessage: string;
730
+ PercentDone: int;
731
+ SecsLeft: int;
732
+ ProgressMessage: string;
733
+ SummaryMessage: string;
734
+ State: int;
735
+ SourceLogicalName: string;
736
+ SourceIP: string;
737
+ SourceFilePath: string;
738
+ SourceDali: string;
739
+ SourceRecordSize: int;
740
+ SourceFormat: int;
741
+ RowTag: string;
742
+ SourceNumParts: int;
743
+ SourceDirectory: string;
744
+ DestLogicalName: string;
745
+ DestGroupName: string;
746
+ DestDirectory: string;
747
+ DestIP: string;
748
+ DestFilePath: string;
749
+ DestFormat: int;
750
+ DestNumParts: int;
751
+ DestRecordSize: int;
752
+ Replicate: boolean;
753
+ Overwrite: boolean;
754
+ Compress: boolean;
755
+ SourceCsvSeparate: string;
756
+ SourceCsvQuote: string;
757
+ SourceCsvTerminate: string;
758
+ SourceCsvEscape: string;
759
+ TimeStarted: string;
760
+ TimeStopped: string;
761
+ StateMessage: string;
762
+ MonitorEventName: string;
763
+ MonitorSub: boolean;
764
+ MonitorShotLimit: int;
765
+ SourceDiffKeyName: string;
766
+ DestDiffKeyName: string;
767
+ Archived: boolean;
768
+ encrypt: string;
769
+ decrypt: string;
770
+ failIfNoSourceFile: boolean;
771
+ recordStructurePresent: boolean;
772
+ quotedTerminator: boolean;
773
+ preserveCompression: boolean;
774
+ expireDays: int;
775
+ PreserveFileParts: boolean;
776
+ FileAccessCost: double;
777
+ KbPerSecAve: int;
778
+ KbPerSec: int;
779
+ }
780
+
781
+ export interface UpdateDFUWorkunit {
782
+ wu: wu;
783
+ ClusterOrig: string;
784
+ JobNameOrig: string;
785
+ isProtectedOrig: boolean;
786
+ StateOrig: int;
787
+ }
788
+
789
+ export interface UpdateDFUWorkunitResponse {
790
+ Exceptions: Exceptions;
791
+ }
792
+
793
+ }
794
+
795
+ export class FileSprayServiceBase extends Service {
796
+
797
+ constructor(optsConnection: IOptions | IConnection) {
798
+ super(optsConnection, "FileSpray", "1.26");
799
+ }
800
+
801
+ AbortDFUWorkunit(request: Partial<FileSpray.AbortDFUWorkunit>): Promise<FileSpray.AbortDFUWorkunitResponse> {
802
+ return this._connection.send("AbortDFUWorkunit", request, "json", false, undefined, "AbortDFUWorkunitResponse");
803
+ }
804
+
805
+ Copy(request: Partial<FileSpray.Copy>): Promise<FileSpray.CopyResponse> {
806
+ return this._connection.send("Copy", request, "json", false, undefined, "CopyResponse");
807
+ }
808
+
809
+ CreateDFUPublisherWorkunit(request: Partial<FileSpray.CreateDFUPublisherWorkunit>): Promise<FileSpray.CreateDFUPublisherWorkunitResponse> {
810
+ return this._connection.send("CreateDFUPublisherWorkunit", request, "json", false, undefined, "CreateDFUPublisherWorkunitResponse");
811
+ }
812
+
813
+ CreateDFUWorkunit(request: Partial<FileSpray.CreateDFUWorkunit>): Promise<FileSpray.CreateDFUWorkunitResponse> {
814
+ return this._connection.send("CreateDFUWorkunit", request, "json", false, undefined, "CreateDFUWorkunitResponse");
815
+ }
816
+
817
+ DFUWUFile(request: Partial<FileSpray.DFUWUFileRequest>): Promise<FileSpray.DFUWUFileResponse> {
818
+ return this._connection.send("DFUWUFile", request, "json", false, undefined, "DFUWUFileResponse");
819
+ }
820
+
821
+ DFUWUSearch(request: Partial<FileSpray.DFUWUSearchRequest>): Promise<FileSpray.DFUWUSearchResponse> {
822
+ return this._connection.send("DFUWUSearch", request, "json", false, undefined, "DFUWUSearchResponse");
823
+ }
824
+
825
+ DFUWorkunitsAction(request: Partial<FileSpray.DFUWorkunitsActionRequest>): Promise<FileSpray.DFUWorkunitsActionResponse> {
826
+ return this._connection.send("DFUWorkunitsAction", request, "json", false, undefined, "DFUWorkunitsActionResponse");
827
+ }
828
+
829
+ DeleteDFUWorkunit(request: Partial<FileSpray.DeleteDFUWorkunit>): Promise<FileSpray.DeleteDFUWorkunitResponse> {
830
+ return this._connection.send("DeleteDFUWorkunit", request, "json", false, undefined, "DeleteDFUWorkunitResponse");
831
+ }
832
+
833
+ DeleteDFUWorkunits(request: Partial<FileSpray.DeleteDFUWorkunits>): Promise<FileSpray.DeleteDFUWorkunitsResponse> {
834
+ return this._connection.send("DeleteDFUWorkunits", request, "json", false, undefined, "DeleteDFUWorkunitsResponse");
835
+ }
836
+
837
+ DeleteDropZoneFiles(request: Partial<FileSpray.DeleteDropZoneFilesRequest>): Promise<FileSpray.DFUWorkunitsActionResponse> {
838
+ return this._connection.send("DeleteDropZoneFiles", request, "json", false, undefined, "DFUWorkunitsActionResponse");
839
+ }
840
+
841
+ Despray(request: Partial<FileSpray.Despray>): Promise<FileSpray.DesprayResponse> {
842
+ return this._connection.send("Despray", request, "json", false, undefined, "DesprayResponse");
843
+ }
844
+
845
+ DfuMonitor(request: Partial<FileSpray.DfuMonitorRequest>): Promise<FileSpray.DfuMonitorResponse> {
846
+ return this._connection.send("DfuMonitor", request, "json", false, undefined, "DfuMonitorResponse");
847
+ }
848
+
849
+ DropZoneFileSearch(request: Partial<FileSpray.DropZoneFileSearchRequest>): Promise<FileSpray.DropZoneFileSearchResponse> {
850
+ return this._connection.send("DropZoneFileSearch", request, "json", false, undefined, "DropZoneFileSearchResponse");
851
+ }
852
+
853
+ DropZoneFiles(request: Partial<FileSpray.DropZoneFilesRequest>): Promise<FileSpray.DropZoneFilesResponse> {
854
+ return this._connection.send("DropZoneFiles", request, "json", false, undefined, "DropZoneFilesResponse");
855
+ }
856
+
857
+ EchoDateTime(request: Partial<FileSpray.EchoDateTime>): Promise<FileSpray.EchoDateTimeResponse> {
858
+ return this._connection.send("EchoDateTime", request, "json", false, undefined, "EchoDateTimeResponse");
859
+ }
860
+
861
+ FileList(request: Partial<FileSpray.FileListRequest>): Promise<FileSpray.FileListResponse> {
862
+ return this._connection.send("FileList", request, "json", false, undefined, "FileListResponse");
863
+ }
864
+
865
+ GetDFUExceptions(request: Partial<FileSpray.GetDFUExceptions>): Promise<FileSpray.GetDFUExceptionsResponse> {
866
+ return this._connection.send("GetDFUExceptions", request, "json", false, undefined, "GetDFUExceptionsResponse");
867
+ }
868
+
869
+ GetDFUProgress(request: Partial<FileSpray.ProgressRequest>): Promise<FileSpray.ProgressResponse> {
870
+ return this._connection.send("GetDFUProgress", request, "json", false, undefined, "ProgressResponse");
871
+ }
872
+
873
+ GetDFUServerQueues(request: Partial<FileSpray.GetDFUServerQueuesRequest>): Promise<FileSpray.GetDFUServerQueuesResponse> {
874
+ return this._connection.send("GetDFUServerQueues", request, "json", false, undefined, "GetDFUServerQueuesResponse");
875
+ }
876
+
877
+ GetDFUWorkunit(request: Partial<FileSpray.GetDFUWorkunit>): Promise<FileSpray.GetDFUWorkunitResponse> {
878
+ return this._connection.send("GetDFUWorkunit", request, "json", false, undefined, "GetDFUWorkunitResponse");
879
+ }
880
+
881
+ GetDFUWorkunits(request: Partial<FileSpray.GetDFUWorkunits>): Promise<FileSpray.GetDFUWorkunitsResponse> {
882
+ return this._connection.send("GetDFUWorkunits", request, "json", false, undefined, "GetDFUWorkunitsResponse");
883
+ }
884
+
885
+ GetRemoteTargets(request: Partial<FileSpray.GetRemoteTargetsRequest>): Promise<FileSpray.GetRemoteTargetsResponse> {
886
+ return this._connection.send("GetRemoteTargets", request, "json", false, undefined, "GetRemoteTargetsResponse");
887
+ }
888
+
889
+ GetSprayTargets(request: Partial<FileSpray.GetSprayTargetsRequest>): Promise<FileSpray.GetSprayTargetsResponse> {
890
+ return this._connection.send("GetSprayTargets", request, "json", false, undefined, "GetSprayTargetsResponse");
891
+ }
892
+
893
+ OpenSave(request: Partial<FileSpray.OpenSaveRequest>): Promise<FileSpray.OpenSaveResponse> {
894
+ return this._connection.send("OpenSave", request, "json", false, undefined, "OpenSaveResponse");
895
+ }
896
+
897
+ Ping(request: Partial<FileSpray.FileSprayPingRequest>): Promise<FileSpray.FileSprayPingResponse> {
898
+ return this._connection.send("Ping", request, "json", false, undefined, "FileSprayPingResponse");
899
+ }
900
+
901
+ Rename(request: Partial<FileSpray.Rename>): Promise<FileSpray.RenameResponse> {
902
+ return this._connection.send("Rename", request, "json", false, undefined, "RenameResponse");
903
+ }
904
+
905
+ Replicate(request: Partial<FileSpray.Replicate>): Promise<FileSpray.ReplicateResponse> {
906
+ return this._connection.send("Replicate", request, "json", false, undefined, "ReplicateResponse");
907
+ }
908
+
909
+ ShowResult(request: Partial<FileSpray.ShowResultRequest>): Promise<FileSpray.ShowResultResponse> {
910
+ return this._connection.send("ShowResult", request, "json", false, undefined, "ShowResultResponse");
911
+ }
912
+
913
+ SprayFixed(request: Partial<FileSpray.SprayFixed>): Promise<FileSpray.SprayFixedResponse> {
914
+ return this._connection.send("SprayFixed", request, "json", false, undefined, "SprayFixedResponse");
915
+ }
916
+
917
+ SprayVariable(request: Partial<FileSpray.SprayVariable>): Promise<FileSpray.SprayResponse> {
918
+ return this._connection.send("SprayVariable", request, "json", false, undefined, "SprayResponse");
919
+ }
920
+
921
+ SubmitDFUWorkunit(request: Partial<FileSpray.SubmitDFUWorkunit>): Promise<FileSpray.SubmitDFUWorkunitResponse> {
922
+ return this._connection.send("SubmitDFUWorkunit", request, "json", false, undefined, "SubmitDFUWorkunitResponse");
923
+ }
924
+
925
+ UpdateDFUWorkunit(request: Partial<FileSpray.UpdateDFUWorkunit>): Promise<FileSpray.UpdateDFUWorkunitResponse> {
926
+ return this._connection.send("UpdateDFUWorkunit", request, "json", false, undefined, "UpdateDFUWorkunitResponse");
927
+ }
928
+
929
+ }