WsDeploy.ecm 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  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. ESPstruct Task
  14. {
  15. string Caption;
  16. string FileName;
  17. string TargetPath;
  18. string SourcePath;
  19. int Status;
  20. string Message;
  21. };
  22. ESPstruct Component
  23. {
  24. string Type;
  25. string DisplayType;
  26. string Name;
  27. string Build;
  28. string Computer;
  29. string Instance;
  30. string InstanceType;
  31. ESParray<ESPstruct Task> Tasks;
  32. };
  33. ESPstruct DeployOptions
  34. {
  35. bool Compare;
  36. bool ConfigFiles;
  37. bool BuildFiles;
  38. bool UpgradeBuildFiles;
  39. bool Start;
  40. bool Stop;
  41. bool BackupRename;
  42. bool BackupCopy;
  43. bool ArchiveEnv;
  44. bool Log;
  45. string ArchivePath;
  46. };
  47. ESPstruct WsDeployReqInfo
  48. {
  49. string FileName;
  50. string UserId;
  51. };
  52. ESPstruct DeployInfo
  53. {
  54. ESParray<ESPstruct Component> Components;
  55. ESPstruct DeployOptions Options;
  56. string Status;
  57. };
  58. ESPstruct DaliInfo
  59. {
  60. string DaliIp;
  61. string DaliName;
  62. };
  63. ESPrequest EmptyRequest
  64. {
  65. };
  66. ESPresponse [exceptions_inline, encode(0)] InitResponse
  67. {
  68. string Component;
  69. string Command;
  70. };
  71. ESPrequest DeployRequest
  72. {
  73. ESPstruct DeployInfo Deploy;
  74. ESPstruct WsDeployReqInfo ReqInfo;
  75. };
  76. ESPresponse [exceptions_inline, encode(0)] DeployResponse
  77. {
  78. string Component;
  79. string Command;
  80. //ESPstruct DeployInfo Deploy;
  81. string Deploy;
  82. string Status;
  83. };
  84. ESPresponse [exceptions_inline, encode(0)] GraphResponse
  85. {
  86. string GraphContainer;
  87. };
  88. ESPrequest NavMenuEventRequest
  89. {
  90. string Cmd;
  91. string XmlArgs;
  92. ESPstruct WsDeployReqInfo ReqInfo;
  93. };
  94. ESPresponse [exceptions_inline, encode(0)] NavMenuEventResponse
  95. {
  96. string Component;
  97. string Command;
  98. string XmlArgs;
  99. string LastSaved;
  100. };
  101. ESPrequest DisplaySettingsRequest
  102. {
  103. string Cmd;
  104. string XmlArgs;
  105. ESPstruct WsDeployReqInfo ReqInfo;
  106. };
  107. ESPresponse [exceptions_inline, encode(0)] DisplaySettingsResponse
  108. {
  109. string Component;
  110. string CompDefn;
  111. string ViewChildNodes;
  112. string MultiRowNodes;
  113. string XmlArgs;
  114. };
  115. ESPrequest SaveSettingRequest
  116. {
  117. string XmlArgs;
  118. ESPstruct WsDeployReqInfo ReqInfo;
  119. };
  120. ESPresponse [exceptions_inline, encode(0)] SaveSettingResponse
  121. {
  122. string UpdateAttr;
  123. string UpdateValue;
  124. string PrevValue;
  125. string IsSaved;
  126. string Refresh;
  127. };
  128. ESPrequest GetBuildSetInfoRequest
  129. {
  130. string Cmd;
  131. string XmlArgs;
  132. ESPstruct WsDeployReqInfo ReqInfo;
  133. };
  134. ESPresponse [exceptions_inline, encode(0)] GetBuildSetInfoResponse
  135. {
  136. string Component;
  137. string XmlArgs;
  138. };
  139. ESPrequest GetDeployableCompsRequest
  140. {
  141. string Cmd;
  142. string XmlArgs;
  143. ESPstruct WsDeployReqInfo ReqInfo;
  144. };
  145. ESPresponse [exceptions_inline, encode(0)] GetDeployableCompsResponse
  146. {
  147. string Component;
  148. string XmlArgs;
  149. };
  150. ESPrequest StartDeploymentRequest
  151. {
  152. string SelComps;
  153. ESPstruct DeployOptions Options;
  154. ESPstruct WsDeployReqInfo ReqInfo;
  155. };
  156. ESPresponse [exceptions_inline, encode(0)] StartDeploymentResponse
  157. {
  158. string Status;
  159. };
  160. ESPrequest GetBuildServerDirsRequest
  161. {
  162. string Cmd;
  163. string XmlArgs;
  164. ESPstruct WsDeployReqInfo ReqInfo;
  165. };
  166. ESPresponse [exceptions_inline, encode(0)] GetBuildServerDirsResponse
  167. {
  168. string Component;
  169. string XmlArgs;
  170. };
  171. ESPrequest ImportBuildRequest
  172. {
  173. string BuildName;
  174. string BuildUrl;
  175. string BuildSets;
  176. ESPstruct WsDeployReqInfo ReqInfo;
  177. };
  178. ESPresponse [exceptions_inline, encode(0)] ImportBuildResponse
  179. {
  180. string Status;
  181. };
  182. ESPrequest GetComputersForRoxieRequest
  183. {
  184. string Cmd;
  185. string XmlArgs;
  186. ESPstruct WsDeployReqInfo ReqInfo;
  187. };
  188. ESPresponse [exceptions_inline, encode(0)] GetComputersForRoxieResponse
  189. {
  190. string Computers;
  191. string Filters;
  192. };
  193. ESPrequest HandleRoxieOperationRequest
  194. {
  195. string Cmd;
  196. string XmlArgs;
  197. ESPstruct WsDeployReqInfo ReqInfo;
  198. };
  199. ESPresponse [exceptions_inline, encode(0)] HandleRoxieOperationResponse
  200. {
  201. string Status;
  202. };
  203. ESPrequest HandleThorTopologyRequest
  204. {
  205. string Operation;
  206. string XmlArgs;
  207. ESPstruct WsDeployReqInfo ReqInfo;
  208. };
  209. ESPresponse [exceptions_inline, encode(0)] HandleThorTopologyResponse
  210. {
  211. string Status;
  212. string CompName;
  213. };
  214. ESPrequest HandleAttributeDeleteRequest
  215. {
  216. string Operation;
  217. string XmlArgs;
  218. bool bLeaf;
  219. ESPstruct WsDeployReqInfo ReqInfo;
  220. };
  221. ESPrequest HandleAttributeAddRequest
  222. {
  223. string Operation;
  224. string XmlArgs;
  225. ESPstruct WsDeployReqInfo ReqInfo;
  226. };
  227. ESPresponse [exceptions_inline, encode(0)] HandleAttributeAddResponse
  228. {
  229. string Status;
  230. string CompName;
  231. };
  232. ESPresponse [exceptions_inline, encode(0)] HandleAttributeDeleteResponse
  233. {
  234. string Status;
  235. string CompName;
  236. };
  237. ESPrequest HandleComponentRequest
  238. {
  239. string Operation;
  240. string XmlArgs;
  241. ESPstruct WsDeployReqInfo ReqInfo;
  242. };
  243. ESPresponse [exceptions_inline, encode(0)] HandleComponentResponse
  244. {
  245. string Status;
  246. string CompName;
  247. };
  248. ESPrequest HandleInstanceRequest
  249. {
  250. string Operation;
  251. string XmlArgs;
  252. ESPstruct WsDeployReqInfo ReqInfo;
  253. };
  254. ESPresponse [exceptions_inline, encode(0)] HandleInstanceResponse
  255. {
  256. string Status;
  257. string NewName;
  258. string Duplicates;
  259. string ReqdCompNames;
  260. string AddReqdComps;
  261. };
  262. ESPrequest AddReqdCompsRequest
  263. {
  264. string XmlArgs;
  265. ESPstruct WsDeployReqInfo ReqInfo;
  266. };
  267. ESPresponse [exceptions_inline, encode(0)] AddReqdCompsResponse
  268. {
  269. string Status;
  270. string Failures;
  271. };
  272. ESPrequest HandleEspServiceBindingsRequest
  273. {
  274. string Operation;
  275. string XmlArgs;
  276. ESPstruct WsDeployReqInfo ReqInfo;
  277. };
  278. ESPresponse [exceptions_inline, encode(0)] HandleEspServiceBindingsResponse
  279. {
  280. string Status;
  281. string NewName;
  282. };
  283. ESPrequest HandleComputerRequest
  284. {
  285. string Operation;
  286. string XmlArgs;
  287. ESPstruct WsDeployReqInfo ReqInfo;
  288. };
  289. ESPresponse [exceptions_inline, encode(0)] HandleComputerResponse
  290. {
  291. string Status;
  292. string CompName;
  293. };
  294. ESPrequest HandleTopologyRequest
  295. {
  296. string Operation;
  297. string XmlArgs;
  298. ESPstruct WsDeployReqInfo ReqInfo;
  299. };
  300. ESPresponse [exceptions_inline, encode(0)] HandleTopologyResponse
  301. {
  302. string Status;
  303. };
  304. ESPrequest HandleRowsRequest
  305. {
  306. string Operation;
  307. string XmlArgs;
  308. ESPstruct WsDeployReqInfo ReqInfo;
  309. };
  310. ESPresponse [exceptions_inline, encode(0)] HandleRowsResponse
  311. {
  312. string Status;
  313. string CompName;
  314. };
  315. ESPrequest HandleAccessRulesRequest
  316. {
  317. string Operation;
  318. string XmlArgs;
  319. ESPstruct WsDeployReqInfo ReqInfo;
  320. };
  321. ESPrequest HandleBaseAccessControlListRequest
  322. {
  323. string Operation;
  324. string XmlArgs;
  325. ESPstruct WsDeployReqInfo ReqInfo;
  326. };
  327. ESPresponse [exceptions_inline, encode(0)] HandleAccessRulesResponse
  328. {
  329. string Status;
  330. };
  331. ESPresponse [exceptions_inline, encode(0)] HandleBaseAccessControlListResponse
  332. {
  333. string Status;
  334. };
  335. ESPrequest GetNavTreeDefnRequest
  336. {
  337. string XmlArgs;
  338. ESPstruct WsDeployReqInfo ReqInfo;
  339. };
  340. ESPresponse [exceptions_inline, encode(0)] GetNavTreeDefnResponse
  341. {
  342. string CompDefn;
  343. string ReadOnly;
  344. string LastSaved;
  345. string LastStarted;
  346. string Message;
  347. };
  348. ESPrequest GetValueRequest
  349. {
  350. string Params;
  351. ESPstruct WsDeployReqInfo ReqInfo;
  352. };
  353. ESPresponse [exceptions_inline, encode(0)] GetValueResponse
  354. {
  355. string Status;
  356. string ReqValue;
  357. };
  358. ESPrequest UnlockUserRequest
  359. {
  360. ESPstruct WsDeployReqInfo ReqInfo;
  361. };
  362. ESPresponse [exceptions_inline, encode(0)] UnlockUserResponse
  363. {
  364. string Status;
  365. };
  366. ESPrequest ClientAliveRequest
  367. {
  368. ESPstruct WsDeployReqInfo ReqInfo;
  369. };
  370. ESPresponse [exceptions_inline, encode(0)] ClientAliveResponse
  371. {
  372. string LastSaved;
  373. string LastStarted;
  374. string RefreshClient;
  375. };
  376. ESPrequest GetEnvironmentRequest
  377. {
  378. };
  379. ESPresponse [exceptions_inline, encode(0)] GetEnvironmentResponse
  380. {
  381. string EnvXml;
  382. };
  383. ESPrequest SetEnvironmentRequest
  384. {
  385. string EnvXml;
  386. };
  387. ESPresponse [exceptions_inline, encode(0)] SetEnvironmentResponse
  388. {
  389. int ReturnCode;
  390. string ErrorMsg;
  391. };
  392. ESPrequest LockEnvironmentForCloudRequest
  393. {
  394. string Ip;
  395. string UserName;
  396. ESPstruct WsDeployReqInfo ReqInfo;
  397. };
  398. ESPresponse [exceptions_inline, encode(0)] LockEnvironmentForCloudResponse
  399. {
  400. string Msg;
  401. int ReturnCode;
  402. };
  403. ESPrequest UnlockEnvironmentForCloudRequest
  404. {
  405. string Ip;
  406. string UserName;
  407. string NewEnvXml;
  408. ESPstruct WsDeployReqInfo ReqInfo;
  409. };
  410. ESPresponse [exceptions_inline, encode(0)] UnlockEnvironmentForCloudResponse
  411. {
  412. string Msg;
  413. int ReturnCode;
  414. };
  415. ESPrequest SaveEnvironmentForCloudRequest
  416. {
  417. string Ip;
  418. string UserName;
  419. string NewEnv;
  420. string Id;
  421. ESPstruct WsDeployReqInfo ReqInfo;
  422. };
  423. ESPresponse [exceptions_inline, encode(0)] SaveEnvironmentForCloudResponse
  424. {
  425. string Msg;
  426. int ReturnCode;
  427. };
  428. ESPrequest RollbackEnvironmentForCloudRequest
  429. {
  430. string Ip;
  431. string UserName;
  432. string Id;
  433. ESPstruct WsDeployReqInfo ReqInfo;
  434. };
  435. ESPresponse [exceptions_inline, encode(0)] RollbackEnvironmentForCloudResponse
  436. {
  437. string Msg;
  438. int ReturnCode;
  439. };
  440. ESPrequest NotifyInitSystemSaveEnvForCloudRequest
  441. {
  442. string Ip;
  443. string UserName;
  444. ESPstruct WsDeployReqInfo ReqInfo;
  445. };
  446. ESPresponse [exceptions_inline, encode(0)] NotifyInitSystemSaveEnvForCloudResponse
  447. {
  448. string Msg;
  449. int ReturnCode;
  450. };
  451. ESPrequest BuildEnvironmentRequest
  452. {
  453. string XmlArgs;
  454. ESPstruct WsDeployReqInfo ReqInfo;
  455. };
  456. ESPresponse [exceptions_inline, encode(0)] BuildEnvironmentResponse
  457. {
  458. string Status;
  459. string Message;
  460. };
  461. ESPrequest GetSubnetIPAddrRequest
  462. {
  463. ESPstruct WsDeployReqInfo ReqInfo;
  464. };
  465. ESPresponse [exceptions_inline, encode(0)] GetSubnetIPAddrResponse
  466. {
  467. string IPList;
  468. string Message;
  469. };
  470. ESPrequest GetSummaryRequest
  471. {
  472. bool PrepareLinkFlag;
  473. ESPstruct WsDeployReqInfo ReqInfo;
  474. };
  475. ESPresponse [exceptions_inline, encode(0)] GetSummaryResponse
  476. {
  477. string Status;
  478. string XmlStr;
  479. };
  480. ESPservice [auth_feature("NONE"), exceptions_inline("xslt/exceptions.xslt")] WsDeploy
  481. {
  482. ESPmethod[description("Handle an event from the navigation tree menu"), help("")]
  483. NavMenuEvent(NavMenuEventRequest, NavMenuEventResponse);
  484. ESPmethod[description("Dependency graph"), help(""), resp_xsl_default("xslt/graph_display.xsl")]
  485. Graph(EmptyRequest, GraphResponse);
  486. ESPmethod[description("Display Component Settings"), help(""), resp_xsl_default("xslt/ui_configmgr.xslt")]
  487. DisplaySettings(DisplaySettingsRequest, DisplaySettingsResponse);
  488. ESPmethod[description("Save Component Setting"), help("")]
  489. SaveSetting(SaveSettingRequest, SaveSettingResponse);
  490. ESPmethod[description("Get BuildSet Info"), help("")]
  491. GetBuildSetInfo(GetBuildSetInfoRequest, GetBuildSetInfoResponse);
  492. ESPmethod[description("Get Deployable Components"), help(""), resp_xsl_default("xslt/ui_configmgr.xslt")]
  493. GetDeployableComps(GetDeployableCompsRequest, GetDeployableCompsResponse);
  494. ESPmethod[description("Start Deployment"), help("")]
  495. StartDeployment(StartDeploymentRequest, StartDeploymentResponse);
  496. ESPmethod[description("Get Build Server Directories"), help("")]
  497. GetBuildServerDirs(GetBuildServerDirsRequest, GetBuildServerDirsResponse);
  498. ESPmethod[description("Import Build"), help("")]
  499. ImportBuild(ImportBuildRequest, ImportBuildResponse);
  500. ESPmethod[description("Get computers for Roxie components"), help("")]
  501. GetComputersForRoxie(GetComputersForRoxieRequest, GetComputersForRoxieResponse);
  502. ESPmethod[description("Add computers to Roxie"), help("")]
  503. HandleRoxieOperation(HandleRoxieOperationRequest, HandleRoxieOperationResponse);
  504. ESPmethod[description("Add computers to Thor topology"), help("")]
  505. HandleThorTopology(HandleThorTopologyRequest, HandleThorTopologyResponse);
  506. ESPmethod[description("Handle add fom XML view"), help("")]
  507. HandleAttributeAdd(HandleAttributeAddRequest, HandleAttributeAddResponse);
  508. ESPmethod[description("Handle branch or leaf deletes from XML view"), help("")]
  509. HandleAttributeDelete(HandleAttributeDeleteRequest, HandleAttributeDeleteResponse);
  510. ESPmethod[description("Handle new component operations like add & delete in the environment"), help("")]
  511. HandleComponent(HandleComponentRequest, HandleComponentResponse);
  512. ESPmethod[description("Handle new instance operations like add & delete in the environment"), help("")]
  513. HandleInstance(HandleInstanceRequest, HandleInstanceResponse);
  514. ESPmethod[description("Handle new Esp Service binding operations like add & delete "), help("")]
  515. HandleEspServiceBindings(HandleEspServiceBindingsRequest, HandleEspServiceBindingsResponse);
  516. ESPmethod[description("Handle new hardware operations like add & delete computer e.t.c"), help("")]
  517. HandleComputer(HandleComputerRequest, HandleComputerResponse);
  518. ESPmethod[description("Handle Topology operations like add & delete e.t.c"), help("")]
  519. HandleTopology(HandleTopologyRequest, HandleTopologyResponse);
  520. ESPmethod[description("Handle row operations like add & delete e.t.c"), help("")]
  521. HandleRows(HandleRowsRequest, HandleRowsResponse);
  522. ESPmethod[description("Handle Access Rules Requests suchs as add & delete e.t.c"), help("")]
  523. HandleAccessRules(HandleAccessRulesRequest, HandleAccessRulesResponse);
  524. ESPmethod[description("Handle Base Access Control List Requests suchs as add & delete e.t.c"), help("")]
  525. HandleBaseAccessControlList(HandleBaseAccessControlListRequest, HandleBaseAccessControlListResponse);
  526. ESPmethod[description("Return nav tree definition for display purposes"), help("")]
  527. GetNavTreeDefn(GetNavTreeDefnRequest, GetNavTreeDefnResponse);
  528. ESPmethod[description("Returns the value for the requested field"), help("")]
  529. GetValue(GetValueRequest, GetValueResponse);
  530. ESPmethod[description("Unlocks a user that is already connected"), help("")]
  531. UnlockUser(UnlockUserRequest, UnlockUserResponse);
  532. ESPmethod[description("Send a signal back to the service that the client is alive"), help("")]
  533. ClientAlive(ClientAliveRequest, ClientAliveResponse);
  534. ESPmethod[description("Get the environment as an xml string"), help("")]
  535. GetEnvironment(GetEnvironmentRequest, GetEnvironmentResponse);
  536. ESPmethod[description("Validate, update Dali and set the environment that is passed in as an xml string"), help("")]
  537. SetEnvironment(SetEnvironmentRequest, SetEnvironmentResponse);
  538. ESPmethod[description("Lock the environment. Only valid as a soapcall in Cloud Environments"), help("")]
  539. LockEnvironmentForCloud(LockEnvironmentForCloudRequest, LockEnvironmentForCloudResponse);
  540. ESPmethod[description("Unlock the environment. Only valid as a soapcall in Cloud Environments"), help("")]
  541. UnlockEnvironmentForCloud(UnlockEnvironmentForCloudRequest, UnlockEnvironmentForCloudResponse);
  542. ESPmethod[description("Save the environment. Only valid as a soapcall in Cloud Environments"), help("")]
  543. SaveEnvironmentForCloud(SaveEnvironmentForCloudRequest, SaveEnvironmentForCloudResponse);
  544. ESPmethod[description("Rollback the environment. Only valid as a soapcall in Cloud Environments"), help("")]
  545. RollbackEnvironmentForCloud(RollbackEnvironmentForCloudRequest, RollbackEnvironmentForCloudResponse);
  546. ESPmethod[description("Rollback the environment. Only valid as a soapcall in Cloud Environments"), help("")]
  547. NotifyInitSystemSaveEnvForCloud(NotifyInitSystemSaveEnvForCloudRequest, NotifyInitSystemSaveEnvForCloudResponse);
  548. ESPmethod[description("To Build the environment from wizard by providing xml"), help("")]
  549. BuildEnvironment(BuildEnvironmentRequest, BuildEnvironmentResponse);
  550. ESPmethod[description("To get the List IP Addresses in cloud environment by executing auto discovery script."), help("")]
  551. GetSubnetIPAddr(GetSubnetIPAddrRequest, GetSubnetIPAddrResponse);
  552. ESPmethod[description("To get the environment summary"), help("")]
  553. GetSummary(GetSummaryRequest, GetSummaryResponse);
  554. ESPmethod[description("Add the required components on given ip addresses."), help("")]
  555. AddReqdComps(AddReqdCompsRequest, AddReqdCompsResponse);
  556. };
  557. SCMexportdef(WsDeploy);
  558. SCMapi(WsDeploy) IClientWsDeploy *createWsDeployClient();