ws_packageprocess.ecm 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
  3. ############################################################################## */
  4. ESPrequest EchoRequest
  5. {
  6. string Request;
  7. };
  8. ESPresponse EchoResponse
  9. {
  10. string Response;
  11. };
  12. ESPstruct BasePackageStatus
  13. {
  14. int Code;
  15. string Description;
  16. };
  17. ESPstruct PackageMapEntry
  18. {
  19. string Id;
  20. string Target;
  21. string Process;
  22. };
  23. ESPrequest AddPackageRequest
  24. {
  25. string Info;
  26. boolean Activate;
  27. boolean OverWrite;
  28. string Target;
  29. string PackageMap;
  30. string Process;
  31. string DaliIp;
  32. bool GlobalScope(0);
  33. string SourceProcess;
  34. bool AllowForeignFiles(true);
  35. };
  36. ESPresponse [exceptions_inline] AddPackageResponse
  37. {
  38. ESPstruct BasePackageStatus status;
  39. ESParray<string, File> FilesNotFound;
  40. };
  41. ESPrequest DeletePackageRequest
  42. {
  43. string Target;
  44. string PackageMap;
  45. string Process;
  46. bool GlobalScope(0);
  47. ESParray<ESPstruct PackageMapEntry, PackageMap> PackageMaps;
  48. };
  49. ESPresponse [exceptions_inline] DeletePackageResponse
  50. {
  51. ESPstruct BasePackageStatus status;
  52. };
  53. ESPrequest ActivatePackageRequest
  54. {
  55. string Target;
  56. string PackageMap;
  57. string Process;
  58. bool GlobalScope(0);
  59. };
  60. ESPresponse [exceptions_inline] ActivatePackageResponse
  61. {
  62. ESPstruct BasePackageStatus status;
  63. };
  64. ESPrequest DeActivatePackageRequest
  65. {
  66. string Target;
  67. string PackageMap;
  68. string Process;
  69. bool GlobalScope(0);
  70. };
  71. ESPresponse [exceptions_inline] DeActivatePackageResponse
  72. {
  73. ESPstruct BasePackageStatus status;
  74. };
  75. ESPrequest GetPackageRequest
  76. {
  77. string Target;
  78. string Process;
  79. };
  80. ESPresponse [exceptions_inline] GetPackageResponse
  81. {
  82. ESPstruct BasePackageStatus status;
  83. string Info;
  84. };
  85. ESPrequest GetPackageMapByIdRequest
  86. {
  87. string PackageMapId;
  88. };
  89. ESPresponse [exceptions_inline] GetPackageMapByIdResponse
  90. {
  91. ESPstruct BasePackageStatus status;
  92. string Info;
  93. };
  94. ESPrequest ListPackageRequest
  95. {
  96. string Target;
  97. string Process;
  98. };
  99. ESPstruct PackageListData
  100. {
  101. string Id;
  102. string Queries;
  103. };
  104. ESPstruct PackageListMapData
  105. {
  106. string Id;
  107. string Target;
  108. [min_ver("1.01")] string Process;
  109. ESParray<ESPstruct PackageListData> PkgListData;
  110. boolean Active;
  111. [min_ver("1.01")] string Description;
  112. };
  113. ESPresponse [exceptions_inline] ListPackageResponse
  114. {
  115. ESPstruct BasePackageStatus status;
  116. ESParray<ESPstruct PackageListMapData> PkgListMapData;
  117. };
  118. ESPrequest [nil_remove] ListPackagesRequest
  119. {
  120. string Target;
  121. string Process;
  122. string ProcessFilter;
  123. };
  124. ESPresponse [nil_remove, exceptions_inline] ListPackagesResponse
  125. {
  126. ESPstruct BasePackageStatus status;
  127. ESParray<ESPstruct PackageListMapData> PackageMapList;
  128. };
  129. ESPrequest ValidatePackageRequest
  130. {
  131. string Info;
  132. string Target;
  133. string Process;
  134. bool Active;
  135. string PMID;
  136. string QueryIdToVerify;
  137. ESParray<string> QueriesToVerify;
  138. bool CheckDFS;
  139. bool GlobalScope(0);
  140. };
  141. ESPstruct ValidatePackageInfo
  142. {
  143. ESParray<string> Unmatched;
  144. };
  145. ESPstruct ValidatePackageQueries
  146. {
  147. ESParray<string> Unmatched;
  148. };
  149. ESPstruct ValidatePackageFiles
  150. {
  151. ESParray<string> Unmatched;
  152. ESParray<string, File> NotInDFS;
  153. };
  154. ESPresponse [exceptions_inline] ValidatePackageResponse
  155. {
  156. string PMID;
  157. ESPstruct BasePackageStatus status;
  158. ESParray<string> Warnings;
  159. ESParray<string> Errors;
  160. ESPstruct ValidatePackageInfo packages;
  161. ESPstruct ValidatePackageQueries queries;
  162. ESPstruct ValidatePackageFiles files;
  163. };
  164. ESPrequest GetQueryFileMappingRequest
  165. {
  166. string Target;
  167. string PMID;
  168. string QueryName;
  169. bool GlobalScope(0);
  170. };
  171. ESPstruct SuperFile
  172. {
  173. string Name;
  174. ESParray<string, File> SubFiles;
  175. };
  176. ESPresponse [exceptions_inline] GetQueryFileMappingResponse
  177. {
  178. ESParray<string, File> UnmappedFiles;
  179. ESParray<ESPstruct SuperFile> SuperFiles;
  180. };
  181. ESPstruct TargetData
  182. {
  183. string Name;
  184. string Type;
  185. ESParray<string> Processes;
  186. };
  187. ESPrequest GetPackageMapSelectOptionsRequest
  188. {
  189. bool IncludeTargets(true);
  190. bool IncludeProcesses(true);
  191. bool IncludeProcessFilters(true);
  192. };
  193. ESPresponse [exceptions_inline] GetPackageMapSelectOptionsResponse
  194. {
  195. ESPstruct BasePackageStatus status;
  196. ESParray<ESPstruct TargetData> Targets;
  197. ESParray<string> ProcessFilters;
  198. };
  199. ESPservice [version("1.01"), default_client_version("1.01"), exceptions_inline("./smc_xslt/exceptions.xslt")] WsPackageProcess
  200. {
  201. ESPmethod Echo(EchoRequest, EchoResponse);
  202. ESPmethod AddPackage(AddPackageRequest, AddPackageResponse);
  203. ESPmethod DeletePackage(DeletePackageRequest, DeletePackageResponse);
  204. ESPmethod ActivatePackage(ActivatePackageRequest, ActivatePackageResponse);
  205. ESPmethod DeActivatePackage(DeActivatePackageRequest, DeActivatePackageResponse);
  206. ESPmethod ListPackage(ListPackageRequest, ListPackageResponse);
  207. ESPmethod ListPackages(ListPackagesRequest, ListPackagesResponse);
  208. ESPmethod GetPackage(GetPackageRequest, GetPackageResponse);
  209. ESPmethod GetPackageMapById(GetPackageMapByIdRequest, GetPackageMapByIdResponse);
  210. ESPmethod ValidatePackage(ValidatePackageRequest, ValidatePackageResponse);
  211. ESPmethod GetQueryFileMapping(GetQueryFileMappingRequest, GetQueryFileMappingResponse);
  212. ESPmethod GetPackageMapSelectOptions(GetPackageMapSelectOptionsRequest, GetPackageMapSelectOptionsResponse);
  213. };
  214. SCMexportdef(WsPackageProcess);
  215. SCMapi(WsPackageProcess) IClientWsPackageProcess *createWsPackageProcessClient();