123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730 |
- /*##############################################################################
- HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ############################################################################## */
- ESPenum DFUWUActions : string
- {
- Delete("Delete"),
- Protect("Protect"),
- Unprotect("Unprotect"),
- Restore("Restore"),
- SetToFailed("SetToFailed"),
- Archive("Archive"),
- };
- ESPStruct [nil_remove] DFUWorkunit
- {
- string ID;
- [min_ver("1.06")] string DFUServerName;
- string ClusterName;
- string JobName;
- string Queue;
- string User;
- bool isProtected;
- int Command;
- [min_ver("1.03")] string CommandMessage;
- int PercentDone;
- int SecsLeft;
- string ProgressMessage;
- string SummaryMessage;
- int State;
- string SourceLogicalName;
- string SourceIP;
- string SourceFilePath;
- string SourceDali;
- int SourceRecordSize;
- int SourceFormat;
- string RowTag;
- int SourceNumParts;
- string SourceDirectory;
- string DestLogicalName;
- string DestGroupName;
- string DestDirectory;
- string DestIP;
- string DestFilePath;
- int DestFormat;
- int DestNumParts;
- int DestRecordSize;
- bool Replicate;
- bool Overwrite;
- bool Compress;
- [min_ver("1.04")] string SourceCsvSeparate;
- [min_ver("1.04")] string SourceCsvQuote;
- [min_ver("1.04")] string SourceCsvTerminate;
- [min_ver("1.05")] string SourceCsvEscape;
- string TimeStarted;
- string TimeStopped;
- string StateMessage;
- // Monitor
- string MonitorEventName;
- bool MonitorSub;
- int MonitorShotLimit;
- string SourceDiffKeyName;
- string DestDiffKeyName;
- [min_ver("1.03")] bool Archived(false);
- string encrypt;
- string decrypt;
- [min_ver("1.08")] bool failIfNoSourceFile(false);
- [min_ver("1.09")] bool recordStructurePresent(false);
- [min_ver("1.10")] bool quotedTerminator(true);
- [min_ver("1.12")] bool preserveCompression(true);
- [min_ver("1.14")] int expireDays;
- };
- ESPStruct [nil_remove] GroupNode
- {
- string Name;
- string ClusterType;
- bool ReplicateOutputs;
- };
- ESPStruct DFUException
- {
- int Code;
- string Message;
- };
- ESPStruct [nil_remove] DFUActionResult
- {
- string ID;
- string Action;
- string Result;
- };
- ESPrequest
- [
- ]
- DFUWUSearchRequest
- {
- };
- ESPresponse
- [
- exceptions_inline
- ]
- DFUWUSearchResponse
- {
- ESParray<string, ClusterName> ClusterNames;
- };
- ESPrequest GetDFUWorkunits
- {
- [min_ver("1.12")] string Wuid;
- string Owner;
- string Cluster;
- string StateReq;
- [min_ver("1.03")] string Type;
- [min_ver("1.03")] string Jobname;
- int64 PageSize;
- int CurrentPage; //Not used
- [min_ver("1.01")] int64 PageStartFrom(-1);
- string Sortby;
- bool Descending(false);
- int64 CacheHint(-1);
- };
- ESPresponse [encode(0), exceptions_inline]
- GetDFUWorkunitsResponse
- {
- ESParray<ESPstruct DFUWorkunit> results;
- [min_ver("1.03")] string Type;
- string Owner;
- string Cluster;
- string StateReq;
- int64 PageSize;
- int64 PrevPage;
- int64 NextPage;
- [min_ver("1.01")] int64 LastPage(-1);
- int64 NumWUs;
- [min_ver("1.01")] int64 PageStartFrom(-1);
- [min_ver("1.01")] int64 PageEndAt;
- bool First(true);
- string Sortby;
- bool Descending(false);
- string BasicQuery;
- string Filters;
- [min_ver("1.07")] int64 CacheHint;
- };
- ESPrequest [exceptions_inline] ProgressRequest
- {
- string wuid;
- };
- ESPresponse [encode(0), exceptions_inline] ProgressResponse
- {
- string wuid;
- int PercentDone;
- int SecsLeft;
- int KbPerSecAve;
- int KbPerSec;
- int SlavesDone;
- string TimeTaken;
- string ProgressMessage;
- string SummaryMessage;
- string State;
- };
- ESPrequest GetDFUWorkunit
- {
- string wuid;
- };
- ESPresponse [exceptions_inline]
- GetDFUWorkunitResponse
- {
- ESPstruct DFUWorkunit result;
- int AutoRefresh(0);
- };
- ESPrequest CreateDFUWorkunit
- {
- [min_ver("1.14")] string DFUServerQueue;
- };
- ESPresponse [exceptions_inline]
- CreateDFUWorkunitResponse
- {
- ESPstruct DFUWorkunit result;
- };
- ESPrequest UpdateDFUWorkunit
- {
- ESPstruct DFUWorkunit wu;
- string ClusterOrig;
- string JobNameOrig;
- bool isProtectedOrig;
- int StateOrig;
- };
- ESPresponse [exceptions_inline]
- UpdateDFUWorkunitResponse
- {
- };
- ESPrequest DeleteDFUWorkunit
- {
- string wuid;
- };
- ESPresponse [exceptions_inline]
- DeleteDFUWorkunitResponse
- {
- bool result;
- };
- ESPrequest DeleteDFUWorkunits
- {
- ESParray<string> wuids;
- };
- ESPresponse [exceptions_inline]
- DeleteDFUWorkunitsResponse
- {
- };
- ESPrequest DFUWorkunitsActionRequest
- {
- ESParray<string> wuids;
- ESPenum DFUWUActions Type;
- };
- ESPresponse [exceptions_inline] DFUWorkunitsActionResponse
- {
- string FirstColumn("WUID");
- ESParray<ESPstruct DFUActionResult> DFUActionResults;
- };
- ESPrequest SubmitDFUWorkunit
- {
- string wuid;
- };
- ESPresponse [exceptions_inline]
- SubmitDFUWorkunitResponse
- {
- };
- ESPrequest AbortDFUWorkunit
- {
- string wuid;
- };
- ESPresponse [exceptions_inline]
- AbortDFUWorkunitResponse
- {
- };
- ESPrequest GetDFUExceptions
- {
- string wuid;
- };
- ESPresponse [exceptions_inline]
- GetDFUExceptionsResponse
- {
- ESParray<ESPstruct DFUException> result;
- };
- ESPrequest [nil_remove] SprayFixed
- {
- string sourceIP;
- string sourcePath;
- binary srcxml;
- [min_ver("1.09")] string sourceFormat;
- int sourceRecordSize;
- string destGroup;
- string destLogicalName;
- bool overwrite;
- bool replicate;
- int ReplicateOffset(1);
- int maxConnections;
- int throttle;
- int transferBufferSize;
- string prefix;
- bool nosplit(false);
- bool norecover(false);
- bool compress(false);
- bool push(false);
- bool pull(false);
- [min_ver("1.18")] bool noCommon(false);
- string encrypt;
- string decrypt;
- bool wrap(false);
- [min_ver("1.08")] bool failIfNoSourceFile(false);
- [min_ver("1.09")] bool recordStructurePresent(false);
- [min_ver("1.10")] bool quotedTerminator(true);
- [min_ver("1.14")] int expireDays;
- [min_ver("1.14")] string DFUServerQueue;
- };
- ESPresponse [exceptions_inline]
- SprayFixedResponse
- {
- string wuid;
- };
- ESPrequest [nil_remove] SprayVariable
- {
- string sourceIP;
- string sourcePath;
- binary srcxml;
- int sourceMaxRecordSize;
- int sourceFormat;
- bool NoSourceCsvSeparator(false);
- string sourceCsvSeparate;
- string sourceCsvTerminate;
- string sourceCsvQuote;
- string sourceCsvEscape;
- string sourceRowTag;
- string destGroup;
- string destLogicalName;
- bool overwrite;
- bool replicate;
- int ReplicateOffset(1);
- int maxConnections;
- int throttle;
- int transferBufferSize;
- string prefix;
- bool nosplit(false);
- bool norecover(false);
- bool compress(false);
- bool push(false);
- bool pull(false);
- [min_ver("1.18")] bool noCommon(false);
- string encrypt;
- string decrypt;
- [min_ver("1.08")] bool failIfNoSourceFile(false);
- [min_ver("1.09")] bool recordStructurePresent(false);
- [min_ver("1.10")] bool quotedTerminator(true);
- [min_ver("1.11")] string sourceRowPath;
- [min_ver("1.11")] bool isJSON(false);
- [min_ver("1.14")] int expireDays;
- [min_ver("1.14")] string DFUServerQueue;
- [min_ver("1.19")] string srcUsername;
- [min_ver("1.19")] string srcPassword;
- };
- ESPresponse [exceptions_inline]
- SprayResponse
- {
- string wuid;
- };
- ESPrequest [nil_remove] Replicate
- {
- string sourceLogicalName;
- int replicateOffset(1);
- string cluster;
- bool repeatLast(false);
- bool onlyRepeated(false);
- [min_ver("1.14")] string DFUServerQueue;
- };
- ESPresponse [exceptions_inline]
- ReplicateResponse
- {
- string wuid;
- };
- ESPrequest Despray
- {
- string sourceLogicalName;
- string destIP;
- string destPath;
- binary dstxml;
- bool overwrite;
- int maxConnections;
- int throttle;
- int transferBufferSize;
- string splitprefix;
- bool norecover(false);
- bool wrap(false);
- bool multiCopy(false);
- [min_ver("1.02")] bool SingleConnection;
- [min_ver("1.14")] string DFUServerQueue;
- bool compress(false);
- string encrypt;
- string decrypt;
- };
- ESPresponse [exceptions_inline]
- DesprayResponse
- {
- string wuid;
- };
- ESPrequest [nil_remove] Copy
- {
- string sourceLogicalName;
- string destGroup;
- string destGroupRoxie;
- string destLogicalName;
- string sourceDali;
- string srcusername;
- string srcpassword;
- bool overwrite;
- bool replicate;
- int ReplicateOffset(1);
- int maxConnections;
- int throttle;
- int transferBufferSize;
- bool nosplit;
- bool norecover(false);
- bool compress(false);
- bool Wrap(false);
- bool Multicopy(false);
- //bool Farmers(false);
- string SourceDiffKeyName;
- string DestDiffKeyName;
- bool superCopy(false);
- bool push(false);
- bool pull(false);
- bool ifnewer(false);
- [min_ver("1.18")] bool noCommon(false);
- string encrypt;
- string decrypt;
- [min_ver("1.12")] bool preserveCompression(true);
- [min_ver("1.14")] string DFUServerQueue;
- [min_ver("1.17")] int ExpireDays;
- };
- ESPresponse [exceptions_inline]
- CopyResponse
- {
- string result;
- };
- ESPrequest EchoDateTime
- {
- xsdDateTime dt;
- };
- ESPresponse EchoDateTimeResponse
- {
- xsdDateTime result;
- };
- ESPrequest Rename
- {
- string srcname;
- string dstname;
- bool overwrite;
- [min_ver("1.14")] string DFUServerQueue;
- };
- ESPresponse [exceptions_inline]
- RenameResponse
- {
- string wuid;
- };
- ESPrequest DFUWUFileRequest
- {
- string Wuid;
- string Type;
- string PlainText;
- };
- ESPresponse [exceptions_inline] DFUWUFileResponse
- {
- [http_content("text/xml")] string file;
- };
- ESPrequest FileListRequest
- {
- string Netaddr;
- string Path;
- string Mask;
- string OS;
- bool DirectoryOnly(false);
- };
- ESPStruct PhysicalFileStruct
- {
- string name;
- bool isDir;
- int64 filesize;
- string modifiedtime;
- [min_ver("1.13")] string Path;
- [min_ver("1.13")] ESParray<ESPstruct PhysicalFileStruct> Files;
- };
- ESPresponse [exceptions_inline] FileListResponse
- {
- string Netaddr;
- string Path;
- string Mask;
- int OS;
- bool DirectoryOnly(false);
- [min_ver("1.10")] string AcceptLanguage;
- ESParray<ESPStruct PhysicalFileStruct> files;
- };
- ESPrequest [nil_remove] DropZoneFileSearchRequest
- {
- string DropZoneName;
- [min_ver("1.15")] string Server;
- [min_ver("1.15")] bool ECLWatchVisibleOnly(false);
- string NameFilter;
- };
- ESPresponse [exceptions_inline] DropZoneFileSearchResponse
- {
- ESParray<ESPStruct PhysicalFileStruct> Files;
- [min_ver("1.16")] string Warning;
- };
- ESPrequest OpenSaveRequest
- {
- string Location;
- string Path;
- string Name;
- string Type;
- string DateTime;
- bool BinaryFile(false);
- };
- ESPresponse [exceptions_inline] OpenSaveResponse
- {
- string Location;
- string Path;
- string Name;
- string Type;
- string DateTime;
- bool Viewable(true);
- };
- ESPrequest DfuMonitorRequest
- {
- string EventName;
- string LogicalName;
- string Ip;
- string Filename;
- bool Sub;
- int ShotLimit;
- };
- ESPresponse [exceptions_inline] DfuMonitorResponse
- {
- string wuid;
- };
- ESPrequest ShowResultRequest
- {
- string Result;
- };
- ESPresponse [exceptions_inline] ShowResultResponse
- {
- string Result;
- };
- ESPStruct [nil_remove] DropZone
- {
- string Name;
- string NetAddress;
- string Path;
- string Computer;
- string Linux;
- };
- ESPrequest DropZoneFilesRequest
- {
- [min_ver("1.15")] string DropZoneName;
- string NetAddress;
- string Path;
- string OS;
- string Subfolder;
- [min_ver("1.15")] bool ECLWatchVisibleOnly(false);
- bool DirectoryOnly(false);
- };
- ESPresponse [exceptions_inline, nil_remove] DropZoneFilesResponse
- {
- [min_ver("1.15")] string DropZoneName;
- string NetAddress;
- string Path;
- int OS;
- [min_ver("1.15")] bool ECLWatchVisibleOnly;
- ESParray<ESPStruct DropZone> DropZones;
- ESParray<ESPStruct PhysicalFileStruct> Files;
- };
- ESPrequest DeleteDropZoneFilesRequest
- {
- [min_ver("1.15")]string DropZoneName;
- string NetAddress;
- string Path;
- string OS;
- ESParray<string> Names;
- };
- ESPresponse [exceptions_inline, nil_remove] DeleteDropZoneFilesResponse
- {
- ESParray<ESPstruct DFUActionResult> DFUActionResults;
- };
- ESPresponse [exceptions_inline] UploadFilesResponse
- {
- ESParray<ESPstruct DFUActionResult> UploadFileResults;
- };
- ESPrequest GetSprayTargetsRequest
- {
- };
- ESPresponse [exceptions_inline, nil_remove] GetSprayTargetsResponse
- {
- ESParray<ESPstruct GroupNode, GroupNode> GroupNodes;
- };
- ESPrequest GetDFUServerQueuesRequest
- {
- string DFUServerName;
- };
- ESPresponse [exceptions_inline, nil_remove] GetDFUServerQueuesResponse
- {
- ESParray<string> Names;
- };
- ESPservice [
- auth_feature("DEFERRED"),
- version("1.19"),
- exceptions_inline("./smc_xslt/exceptions.xslt")] FileSpray
- {
- ESPmethod EchoDateTime(EchoDateTime, EchoDateTimeResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/showresult.xslt")] ShowResult(ShowResultRequest, ShowResultResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfuwu_search.xslt")] DFUWUSearch(DFUWUSearchRequest, DFUWUSearchResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_workunits.xslt")] GetDFUWorkunits(GetDFUWorkunits, GetDFUWorkunitsResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_wuid.xslt")] GetDFUWorkunit(GetDFUWorkunit, GetDFUWorkunitResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_progress.xslt")] GetDFUProgress(ProgressRequest, ProgressResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_wuid.xslt")] CreateDFUWorkunit(CreateDFUWorkunit, CreateDFUWorkunitResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_wuid.xslt")] UpdateDFUWorkunit(UpdateDFUWorkunit, UpdateDFUWorkunitResponse);
- ESPmethod DeleteDFUWorkunit(DeleteDFUWorkunit, DeleteDFUWorkunitResponse);
- ESPmethod DeleteDFUWorkunits(DeleteDFUWorkunits, DeleteDFUWorkunitsResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfuwuaction_results.xslt")] DFUWorkunitsAction(DFUWorkunitsActionRequest, DFUWorkunitsActionResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_wuid.xslt")] SubmitDFUWorkunit(SubmitDFUWorkunit, SubmitDFUWorkunitResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_wuid.xslt")] AbortDFUWorkunit(AbortDFUWorkunit, AbortDFUWorkunitResponse);
- ESPmethod GetDFUExceptions(GetDFUExceptions, GetDFUExceptionsResponse);
- ESPmethod SprayFixed(SprayFixed, SprayFixedResponse);
- ESPmethod SprayVariable(SprayVariable, SprayResponse);
- ESPmethod Despray(Despray, DesprayResponse);
- ESPmethod Copy(Copy, CopyResponse);
- ESPmethod Rename(Rename, RenameResponse);
- ESPmethod Replicate(Replicate, ReplicateResponse);
- ESPmethod DFUWUFile(DFUWUFileRequest, DFUWUFileResponse);
- ESPmethod DfuMonitor(DfuMonitorRequest, DfuMonitorResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfu_filelist.xslt")] FileList(FileListRequest, FileListResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/opensave.xslt")] OpenSave(OpenSaveRequest, OpenSaveResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dropzonefile.xslt")] DropZoneFiles(DropZoneFilesRequest, DropZoneFilesResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/dfuwuaction_results.xslt")] DeleteDropZoneFiles(DeleteDropZoneFilesRequest, DFUWorkunitsActionResponse);
- ESPmethod [min_ver("1.13")] DropZoneFileSearch(DropZoneFileSearchRequest, DropZoneFileSearchResponse);
- ESPmethod GetSprayTargets(GetSprayTargetsRequest, GetSprayTargetsResponse);
- ESPmethod [min_ver("1.14")] GetDFUServerQueues(GetDFUServerQueuesRequest, GetDFUServerQueuesResponse);
- };
- SCMexportdef(FileSpray);
- SCMapi(FileSpray) IClientFileSpray *createFileSprayClient();
|