ws_packageprocess.ecm 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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; //use flags below unless you really want to overwrite the actual file metadata and packagemap
  28. string Target;
  29. string PackageMap;
  30. string Process;
  31. string DaliIp;
  32. bool GlobalScope(0);
  33. string SourceProcess;
  34. bool AllowForeignFiles(true);
  35. [min_ver("1.02")] bool PreloadAllPackages(false);
  36. bool ReplacePackageMap(false);
  37. bool UpdateSuperFiles(false); //usually wouldn't be needed, packagemap referencing superfiles?
  38. bool UpdateCloneFrom(false); //explicitly wan't to change where roxie will grab from
  39. bool AppendCluster(true); //file exists on other local cluster, add new one, make optional in case of locking issues, but should be made to work
  40. };
  41. ESPresponse [exceptions_inline] AddPackageResponse
  42. {
  43. ESPstruct BasePackageStatus status;
  44. ESParray<string, File> FilesNotFound;
  45. };
  46. ESPrequest CopyPackageMapRequest
  47. {
  48. string SourcePath;
  49. string RemoteUserName;
  50. [password] string RemotePassword;
  51. string Target;
  52. string Process;
  53. string PMID;
  54. boolean Activate;
  55. string DaliIp;
  56. bool GlobalScope(0);
  57. string SourceProcess;
  58. bool PreloadAllPackages(false);
  59. bool ReplacePackageMap(false);
  60. bool UpdateSuperFiles(false); //usually wouldn't be needed, packagemap referencing superfiles?
  61. bool UpdateCloneFrom(false); //explicitly wan't to change where roxie will grab from
  62. bool AppendCluster(true); //file exists on other local cluster, add new one, make optional in case of locking issues, but should be made to work
  63. };
  64. ESPresponse [exceptions_inline] CopyPackageMapResponse
  65. {
  66. ESPstruct BasePackageStatus status;
  67. ESParray<string, File> FilesNotFound;
  68. };
  69. ESPrequest DeletePackageRequest
  70. {
  71. string Target;
  72. string PackageMap;
  73. string Process;
  74. bool GlobalScope(0);
  75. ESParray<ESPstruct PackageMapEntry, PackageMap> PackageMaps;
  76. };
  77. ESPresponse [exceptions_inline] DeletePackageResponse
  78. {
  79. ESPstruct BasePackageStatus status;
  80. };
  81. ESPrequest ActivatePackageRequest
  82. {
  83. string Target;
  84. string PackageMap;
  85. string Process;
  86. bool GlobalScope(0);
  87. };
  88. ESPresponse [exceptions_inline] ActivatePackageResponse
  89. {
  90. ESPstruct BasePackageStatus status;
  91. };
  92. ESPrequest DeActivatePackageRequest
  93. {
  94. string Target;
  95. string PackageMap;
  96. string Process;
  97. bool GlobalScope(0);
  98. };
  99. ESPresponse [exceptions_inline] DeActivatePackageResponse
  100. {
  101. ESPstruct BasePackageStatus status;
  102. };
  103. ESPrequest GetPackageRequest
  104. {
  105. string Target;
  106. string Process;
  107. };
  108. ESPresponse [exceptions_inline] GetPackageResponse
  109. {
  110. ESPstruct BasePackageStatus status;
  111. string Info;
  112. };
  113. ESPrequest GetPackageMapByIdRequest
  114. {
  115. string PackageMapId;
  116. };
  117. ESPresponse [exceptions_inline] GetPackageMapByIdResponse
  118. {
  119. ESPstruct BasePackageStatus status;
  120. string Info;
  121. };
  122. ESPrequest ListPackageRequest
  123. {
  124. string Target;
  125. string Process;
  126. };
  127. ESPstruct PackageListData
  128. {
  129. string Id;
  130. string Queries;
  131. };
  132. ESPstruct PackageListMapData
  133. {
  134. string Id;
  135. string Target;
  136. [min_ver("1.01")] string Process;
  137. ESParray<ESPstruct PackageListData> PkgListData;
  138. boolean Active;
  139. [min_ver("1.01")] string Description;
  140. };
  141. ESPresponse [exceptions_inline] ListPackageResponse
  142. {
  143. ESPstruct BasePackageStatus status;
  144. ESParray<ESPstruct PackageListMapData> PkgListMapData;
  145. };
  146. ESPrequest [nil_remove] ListPackagesRequest
  147. {
  148. string Target;
  149. string Process;
  150. string ProcessFilter;
  151. };
  152. ESPresponse [nil_remove, exceptions_inline] ListPackagesResponse
  153. {
  154. ESPstruct BasePackageStatus status;
  155. ESParray<ESPstruct PackageListMapData> PackageMapList;
  156. };
  157. ESPrequest ValidatePackageRequest
  158. {
  159. string Info;
  160. string Target;
  161. string Process;
  162. bool Active;
  163. string PMID;
  164. string QueryIdToVerify;
  165. ESParray<string> QueriesToVerify;
  166. ESParray<string> QueriesToIgnore;
  167. bool CheckDFS;
  168. bool GlobalScope(0);
  169. bool IgnoreWarnings(0);
  170. bool IgnoreOptionalFiles(0);
  171. };
  172. ESPstruct ValidatePackageInfo
  173. {
  174. ESParray<string> Unmatched;
  175. };
  176. ESPstruct ValidatePackageQueries
  177. {
  178. ESParray<string> Unmatched;
  179. };
  180. ESPstruct ValidatePackageFiles
  181. {
  182. ESParray<string> Unmatched;
  183. ESParray<string, File> NotInDFS;
  184. };
  185. ESPresponse [exceptions_inline] ValidatePackageResponse
  186. {
  187. string PMID;
  188. ESPstruct BasePackageStatus status;
  189. ESParray<string> Warnings;
  190. ESParray<string> Errors;
  191. ESPstruct ValidatePackageInfo packages;
  192. ESPstruct ValidatePackageQueries queries;
  193. ESPstruct ValidatePackageFiles files;
  194. };
  195. ESPrequest GetQueryFileMappingRequest
  196. {
  197. string Target;
  198. string PMID;
  199. string QueryName;
  200. bool GlobalScope(0);
  201. };
  202. ESPstruct SuperFile
  203. {
  204. string Name;
  205. ESParray<string, File> SubFiles;
  206. };
  207. ESPresponse [exceptions_inline] GetQueryFileMappingResponse
  208. {
  209. ESParray<string, File> UnmappedFiles;
  210. ESParray<ESPstruct SuperFile> SuperFiles;
  211. };
  212. ESPstruct TargetData
  213. {
  214. string Name;
  215. string Type;
  216. ESParray<string> Processes;
  217. };
  218. ESPrequest GetPackageMapSelectOptionsRequest
  219. {
  220. bool IncludeTargets(true);
  221. bool IncludeProcesses(true);
  222. bool IncludeProcessFilters(true);
  223. };
  224. ESPresponse [exceptions_inline] GetPackageMapSelectOptionsResponse
  225. {
  226. ESPstruct BasePackageStatus status;
  227. ESParray<ESPstruct TargetData> Targets;
  228. ESParray<string> ProcessFilters;
  229. };
  230. ESPrequest AddPartToPackageMapRequest
  231. {
  232. string Target;
  233. string Process;
  234. string PackageMap;
  235. bool GlobalScope(false);
  236. string PartName;
  237. string Content;
  238. boolean DeletePrevious;
  239. string DaliIp;
  240. string SourceProcess;
  241. bool AllowForeignFiles(true);
  242. bool PreloadAllPackages(false);
  243. bool UpdateSuperFiles(false); //usually wouldn't be needed, packagemap referencing superfiles?
  244. bool UpdateCloneFrom(false); //explicitly wan't to change where roxie will grab from
  245. bool AppendCluster(true); //file exists on other local cluster, add new one, make optional in case of locking issues, but should be made to work
  246. };
  247. ESPresponse [exceptions_inline] AddPartToPackageMapResponse
  248. {
  249. ESPstruct BasePackageStatus status;
  250. ESParray<string, File> FilesNotFound;
  251. };
  252. ESPrequest RemovePartFromPackageMapRequest
  253. {
  254. string Target;
  255. string PackageMap;
  256. bool GlobalScope(0);
  257. string PartName;
  258. };
  259. ESPresponse [exceptions_inline] RemovePartFromPackageMapResponse
  260. {
  261. ESPstruct BasePackageStatus status;
  262. };
  263. ESPrequest GetPartFromPackageMapRequest
  264. {
  265. string Target;
  266. string PackageMap;
  267. bool GlobalScope(0);
  268. string PartName;
  269. };
  270. ESPresponse [exceptions_inline] GetPartFromPackageMapResponse
  271. {
  272. ESPstruct BasePackageStatus status;
  273. string Content;
  274. };
  275. ESPservice [auth_feature("NONE"), version("1.03"), exceptions_inline("./smc_xslt/exceptions.xslt")] WsPackageProcess
  276. {
  277. ESPmethod Echo(EchoRequest, EchoResponse);
  278. ESPmethod [auth_feature("PackageMapAccess:WRITE")] AddPackage(AddPackageRequest, AddPackageResponse);
  279. ESPmethod [auth_feature("PackageMapAccess:WRITE")] CopyPackageMap(CopyPackageMapRequest, CopyPackageMapResponse);
  280. ESPmethod [auth_feature("PackageMapAccess:FULL")] DeletePackage(DeletePackageRequest, DeletePackageResponse);
  281. ESPmethod [auth_feature("PackageMapAccess:WRITE")] ActivatePackage(ActivatePackageRequest, ActivatePackageResponse);
  282. ESPmethod [auth_feature("PackageMapAccess:WRITE")] DeActivatePackage(DeActivatePackageRequest, DeActivatePackageResponse);
  283. ESPmethod [auth_feature("PackageMapAccess:READ")] ListPackage(ListPackageRequest, ListPackageResponse);
  284. ESPmethod [auth_feature("PackageMapAccess:READ")] ListPackages(ListPackagesRequest, ListPackagesResponse);
  285. ESPmethod [auth_feature("PackageMapAccess:READ")] GetPackage(GetPackageRequest, GetPackageResponse);
  286. ESPmethod [auth_feature("PackageMapAccess:READ")] GetPackageMapById(GetPackageMapByIdRequest, GetPackageMapByIdResponse);
  287. ESPmethod [auth_feature("PackageMapAccess:READ")] ValidatePackage(ValidatePackageRequest, ValidatePackageResponse);
  288. ESPmethod [auth_feature("PackageMapAccess:READ")] GetQueryFileMapping(GetQueryFileMappingRequest, GetQueryFileMappingResponse);
  289. ESPmethod [auth_feature("PackageMapAccess:READ")] GetPackageMapSelectOptions(GetPackageMapSelectOptionsRequest, GetPackageMapSelectOptionsResponse);
  290. ESPmethod [auth_feature("PackageMapAccess:WRITE")] AddPartToPackageMap(AddPartToPackageMapRequest, AddPartToPackageMapResponse);
  291. ESPmethod [auth_feature("PackageMapAccess:WRITE")] RemovePartFromPackageMap(RemovePartFromPackageMapRequest, RemovePartFromPackageMapResponse);
  292. ESPmethod [auth_feature("PackageMapAccess:READ")] GetPartFromPackageMap(GetPartFromPackageMapRequest, GetPartFromPackageMapResponse);
  293. };
  294. SCMexportdef(WsPackageProcess);
  295. SCMapi(WsPackageProcess) IClientWsPackageProcess *createWsPackageProcessClient();