ws_dfuXref.ecm 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #include "xslprocessor.hpp"
  14. // ===========================================================================
  15. ESPrequest
  16. [
  17. ]
  18. DFUXRefListRequest
  19. {
  20. };
  21. ESPresponse
  22. [
  23. encode(0)
  24. ]
  25. DFUXRefListResponse
  26. {
  27. [json_inline(1)] string DFUXRefListResult;
  28. };
  29. ESPrequest
  30. [
  31. ]
  32. DFUXRefBuildRequest
  33. {
  34. string Cluster;
  35. };
  36. ESPresponse
  37. [
  38. encode(0)
  39. ]
  40. DFUXRefBuildResponse
  41. {
  42. [json_inline(1)] string DFUXRefActionResult;
  43. };
  44. ESPrequest
  45. [
  46. ]
  47. DFUXRefLostFilesQueryRequest
  48. {
  49. string Cluster;
  50. };
  51. ESPresponse
  52. [
  53. encode(0)
  54. ]
  55. DFUXRefLostFilesQueryResponse
  56. {
  57. [json_inline(1)] string DFUXRefLostFilesQueryResult;
  58. };
  59. ESPrequest
  60. [
  61. ]
  62. DFUXRefOrphanFilesQueryRequest
  63. {
  64. string Cluster;
  65. };
  66. ESPresponse
  67. [
  68. encode(0)
  69. ]
  70. DFUXRefOrphanFilesQueryResponse
  71. {
  72. [json_inline(1)] string DFUXRefOrphanFilesQueryResult;
  73. };
  74. ESPrequest
  75. [
  76. ]
  77. DFUXRefMessagesQueryRequest
  78. {
  79. string Cluster;
  80. };
  81. ESPresponse
  82. [
  83. encode(0)
  84. ]
  85. DFUXRefMessagesQueryResponse
  86. {
  87. [json_inline(1)] string DFUXRefMessagesQueryResult;
  88. };
  89. /*ESPstruct [nil_remove] Directory
  90. {
  91. string Name;
  92. string DirSize;
  93. string MaxIP;
  94. string MaxSize;
  95. string MinIP;
  96. string MinSize;
  97. string Skew;
  98. };*/
  99. ESPrequest
  100. [
  101. ]
  102. DFUXRefDirectoriesQueryRequest
  103. {
  104. string Cluster;
  105. };
  106. ESPresponse
  107. [
  108. encode(0)
  109. ]
  110. DFUXRefDirectoriesQueryResponse
  111. {
  112. [json_inline(1)] string DFUXRefDirectoriesQueryResult;
  113. };
  114. ESPrequest
  115. [
  116. ]
  117. DFUXRefFoundFilesQueryRequest
  118. {
  119. string Cluster;
  120. };
  121. ESPresponse
  122. [
  123. encode(0)
  124. ]
  125. DFUXRefFoundFilesQueryResponse
  126. {
  127. [json_inline(1)] string DFUXRefFoundFilesQueryResult;
  128. };
  129. ESPrequest
  130. [
  131. ]
  132. DFUXRefArrayActionRequest
  133. {
  134. string Type;
  135. string Cluster;
  136. string Action;
  137. ESParray<string> XRefFiles;
  138. };
  139. ESPresponse
  140. [
  141. encode(0)
  142. ]
  143. DFUXRefArrayActionResponse
  144. {
  145. [json_inline(1)] string DFUXRefArrayActionResult;
  146. };
  147. ESPrequest
  148. [
  149. ]
  150. DFUXRefBuildCancelRequest
  151. {
  152. };
  153. ESPresponse
  154. [
  155. encode(0)
  156. ]
  157. DFUXRefBuildCancelResponse
  158. {
  159. [json_inline(1)] string DFUXRefBuildCancelResult;
  160. };
  161. ESPrequest DFUXRefCleanDirectoriesRequest
  162. {
  163. string Cluster;
  164. };
  165. ESPresponse [exceptions_inline] DFUXRefCleanDirectoriesResponse
  166. {
  167. };
  168. ESPrequest DFUXRefUnusedFilesRequest
  169. {
  170. string ProcessCluster;
  171. bool CheckPackageMaps;
  172. };
  173. ESPresponse [exceptions_inline] DFUXRefUnusedFilesResponse
  174. {
  175. unsigned UnusedFileCount;
  176. ESParray<string, File> UnusedFiles;
  177. };
  178. // ===========================================================================
  179. ESPservice [auth_feature("DEFERRED"), exceptions_inline("./smc_xslt/exceptions.xslt")] WsDFUXRef
  180. {
  181. ///ESPmethod [resp_xsl_default("./smc_xslt/xref_main.xslt")] DFUXRefList(DFUXRefListRequest, DFUXRefListResponse);
  182. ESPmethod [resp_xsl_default("/esp/xslt/xref_main.xslt")] DFUXRefList(DFUXRefListRequest, DFUXRefListResponse);
  183. ESPmethod [resp_xsl_default("/esp/xslt/action.xslt")] DFUXRefBuild(DFUXRefBuildRequest, DFUXRefBuildResponse);
  184. ESPmethod [resp_xsl_default("/esp/xslt/xref_lost.xslt")] DFUXRefLostFiles(DFUXRefLostFilesQueryRequest, DFUXRefLostFilesQueryResponse);
  185. ESPmethod [resp_xsl_default("/esp/xslt/xref_found.xslt")] DFUXRefFoundFiles(DFUXRefFoundFilesQueryRequest, DFUXRefFoundFilesQueryResponse);
  186. ESPmethod [resp_xsl_default("/esp/xslt/xref_orphan.xslt")] DFUXRefOrphanFiles(DFUXRefOrphanFilesQueryRequest, DFUXRefOrphanFilesQueryResponse);
  187. ESPmethod [resp_xsl_default("/esp/xslt/xref_errwarn.xslt")] DFUXRefMessages(DFUXRefMessagesQueryRequest, DFUXRefMessagesQueryResponse);
  188. ESPmethod [resp_xsl_default("/esp/xslt/xref_directories.xslt")] DFUXRefDirectories(DFUXRefDirectoriesQueryRequest, DFUXRefDirectoriesQueryResponse);
  189. ESPmethod [auth_feature("DfuXrefAccess:access"), resp_xsl_default("/esp/xslt/action.xslt")] DFUXRefArrayAction(DFUXRefArrayActionRequest, DFUXRefArrayActionResponse);
  190. ESPmethod [resp_xsl_default("/esp/xslt/action.xslt")] DFUXRefBuildCancel(DFUXRefBuildCancelRequest, DFUXRefBuildCancelResponse);
  191. ESPmethod DFUXRefCleanDirectories(DFUXRefCleanDirectoriesRequest, DFUXRefCleanDirectoriesResponse);
  192. ESPmethod [auth_feature("DfuXrefAccess:access")] DFUXRefUnusedFiles(DFUXRefUnusedFilesRequest, DFUXRefUnusedFilesResponse);
  193. };
  194. SCMexportdef(WSDFUXREF);
  195. SCMapi(WSDFUXREF) IClientWsDFUXRef *createWsDFUXRefClient();