Coverage for abb_rws_client_python_rw6/rws/rapid/symbols.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-13 22:17 +0000

1# This file is AUTO-GENERATED by utils/generator/main.py 

2# DO NOT EDIT MANUALLY — run the generator to regenerate. 

3# Generator author: Clement RACINET 

4""" 

5RWS module: RobotWare Services → RAPID Service → Operations on RAPID symbols properties 

6 

71:1 mirror of the ABB RobotWare 6 REST API. 

8Each function maps to exactly one HTTP endpoint. 

9No composed logic — see highlevel/ for wrappers. 

10""" 

11 

12from __future__ import annotations 

13 

14import httpx 

15 

16from abb_rws_client_python_rw6.core.client import RWSClient 

17 

18 

19async def get_rapid_symbols_resources(client: RWSClient) -> httpx.Response: 

20 """ 

21 Get RAPID symbols resources. 

22 

23 Route: ``GET /rw/rapid/symbols`` 

24 ABB constraints: Not supported in bootserver mode 

25 

26 Args: 

27 client: Open RWSClient instance. 

28 

29 Returns: 

30 Raw HTTP response. Expected success: HTTP 200. 

31 

32 Raises: 

33 RWSAuthenticationError: On HTTP 401. 

34 RWSNotFoundError: On HTTP 404. 

35 RWSHTTPError: On any other HTTP >= 400. 

36 

37 Example: 

38 ```python 

39 >>> await get_rapid_symbols_resources(client) 

40 <Response [200]> 

41 ``` 

42 """ 

43 return await client.get("/rw/rapid/symbols") 

44 

45 

46async def get_rapid_symbols_actions( 

47 client: RWSClient, 

48 action: str | None = None, 

49) -> httpx.Response: 

50 """ 

51 Get rapid symbols actions. 

52 

53 Route: ``GET /rw/rapid/symbols`` 

54 ABB constraints: Not supported in bootserver mode 

55 

56 Args: 

57 client: Open RWSClient instance. 

58 action: Query parameter. Optional. 

59 

60 Returns: 

61 Raw HTTP response. Expected success: HTTP 200. 

62 

63 Raises: 

64 RWSAuthenticationError: On HTTP 401. 

65 RWSNotFoundError: On HTTP 404. 

66 RWSHTTPError: On any other HTTP >= 400. 

67 # ABB codes: BAD_REQUEST(400) 

68 

69 Example: 

70 ```python 

71 >>> await get_rapid_symbols_actions(client) 

72 <Response [200]> 

73 ``` 

74 """ 

75 return await client.get( 

76 "/rw/rapid/symbols", 

77 params={k: v for k, v in {"action": action}.items() if v is not None}, 

78 ) 

79 

80 

81async def post_search_rapid_symbols( 

82 client: RWSClient, 

83 action: str | None = None, 

84 view: str | None = None, 

85 vartyp: str | None = None, 

86 blockurl: str | None = None, 

87 recursive: str | None = None, 

88 posl: str | None = None, 

89 posc: str | None = None, 

90 stack: str | None = None, 

91 onlyused: str | None = None, 

92 skipshared: str | None = None, 

93 regexp: str | None = None, 

94) -> httpx.Response: 

95 """ 

96 Search RAPID symbols. 

97 

98 Route: ``POST /rw/rapid/symbols`` 

99 ABB constraints: Not supported in bootserver mode 

100 

101 Args: 

102 client: Open RWSClient instance. 

103 action: Query parameter. Optional. 

104 view: Body parameter. Optional. 

105 vartyp: Body parameter. Optional. 

106 blockurl: Body parameter. Optional. 

107 recursive: Body parameter. Optional. 

108 posl: Body parameter. Optional. 

109 posc: Body parameter. Optional. 

110 stack: Body parameter. Optional. 

111 onlyused: Body parameter. Optional. 

112 skipshared: Body parameter. Optional. 

113 regexp: Body parameter. Optional. 

114 

115 Returns: 

116 Raw HTTP response. Expected success: HTTP 200. 

117 

118 Raises: 

119 RWSAuthenticationError: On HTTP 401. 

120 RWSNotFoundError: On HTTP 404. 

121 RWSHTTPError: On any other HTTP >= 400. 

122 # ABB codes: BAD REQUEST(400) see 

123 

124 Example: 

125 ```python 

126 >>> await post_search_rapid_symbols(client) 

127 <Response [200]> 

128 ``` 

129 """ 

130 return await client.post( 

131 "/rw/rapid/symbols", 

132 params={k: v for k, v in {"action": action}.items() if v is not None}, 

133 data={ 

134 k: v 

135 for k, v in { 

136 "view": view, 

137 "vartyp": vartyp, 

138 "blockurl": blockurl, 

139 "recursive": recursive, 

140 "posl": posl, 

141 "posc": posc, 

142 "stack": stack, 

143 "onlyused": onlyused, 

144 "skipshared": skipshared, 

145 "regexp": regexp, 

146 }.items() 

147 if v is not None 

148 }, 

149 ) 

150 

151 

152async def get_object_extension_list( 

153 client: RWSClient, 

154 symbol_url: str, 

155 info: str | None = None, 

156 type: str | None = None, 

157 statements: str | None = None, 

158 backwardstmts: str | None = None, 

159 undostmts: str | None = None, 

160 typedecls: str | None = None, 

161) -> httpx.Response: 

162 """ 

163 Get Object Extension List. 

164 

165 Route: ``GET /rw/rapid/symbols/{symbol URL}`` 

166 ABB constraints: Not supported in bootserver mode 

167 

168 Args: 

169 client: Open RWSClient instance. 

170 symbol_url: URL path parameter. 

171 info: Query parameter. Optional. 

172 type: Query parameter. Optional. 

173 statements: Query parameter. Optional. 

174 backwardstmts: Query parameter. Optional. 

175 undostmts: Query parameter. Optional. 

176 typedecls: Query parameter. Optional. 

177 

178 Returns: 

179 Raw HTTP response. Expected success: HTTP 200. 

180 

181 Raises: 

182 RWSAuthenticationError: On HTTP 401. 

183 RWSNotFoundError: On HTTP 404. 

184 RWSHTTPError: On any other HTTP >= 400. 

185 # ABB codes: BAD_REQUEST (400) 

186 

187 Example: 

188 ```python 

189 >>> await get_object_extension_list(client, "symbol_url_value") 

190 <Response [200]> 

191 ``` 

192 """ 

193 return await client.get( 

194 f"/rw/rapid/symbols/{symbol_url}", 

195 params={ 

196 k: v 

197 for k, v in { 

198 "info": info, 

199 "type": type, 

200 "statements": statements, 

201 "backwardstmts": backwardstmts, 

202 "undostmts": undostmts, 

203 "typedecls": typedecls, 

204 }.items() 

205 if v is not None 

206 }, 

207 )