Coverage for abb_rws_client_python_rw6/rws/rapid/modules.py: 100%
53 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-13 22:17 +0000
« 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 modules
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"""
12from __future__ import annotations
14import httpx
16from abb_rws_client_python_rw6.core.client import RWSClient
19async def get_rapid_modules_action(
20 client: RWSClient,
21 action: str | None = None,
22) -> httpx.Response:
23 """
24 Get RAPID modules action.
26 Route: ``GET /rw/rapid/modules``
27 ABB constraints: Not supported in bootserver mode
29 Args:
30 client: Open RWSClient instance.
31 action: Query parameter. Optional.
33 Returns:
34 Raw HTTP response. Expected success: HTTP 200.
36 Raises:
37 RWSAuthenticationError: On HTTP 401.
38 RWSNotFoundError: On HTTP 404.
39 RWSHTTPError: On any other HTTP >= 400.
40 # ABB codes: BAD_REQUEST(400)
42 Example:
43 ```python
44 >>> await get_rapid_modules_action(client)
45 <Response [200]>
46 ```
47 """
48 return await client.get(
49 "/rw/rapid/modules",
50 params={k: v for k, v in {"action": action}.items() if v is not None},
51 )
54async def get_rapid_modules(
55 client: RWSClient,
56 task: str | None = None,
57) -> httpx.Response:
58 """
59 Get RAPID modules.
61 Route: ``GET /rw/rapid/modules``
62 ABB constraints: Not supported in bootserver mode
64 Args:
65 client: Open RWSClient instance.
66 task: Query parameter. Optional.
68 Returns:
69 Raw HTTP response. Expected success: HTTP 200.
71 Raises:
72 RWSAuthenticationError: On HTTP 401.
73 RWSNotFoundError: On HTTP 404.
74 RWSHTTPError: On any other HTTP >= 400.
75 # ABB codes: HTTP Errors, see
77 Example:
78 ```python
79 >>> await get_rapid_modules(client)
80 <Response [200]>
81 ```
82 """
83 return await client.get(
84 "/rw/rapid/modules",
85 params={k: v for k, v in {"task": task}.items() if v is not None},
86 )
89async def get_mod_possible_all(
90 client: RWSClient,
91 resource: str | None = None,
92) -> httpx.Response:
93 """
94 Get Mod Possible All.
96 Route: ``GET /rw/rapid/modules``
97 ABB constraints: Not supported in bootserver mode
99 Args:
100 client: Open RWSClient instance.
101 resource: Query parameter. Optional.
103 Returns:
104 Raw HTTP response. Expected success: HTTP 200.
106 Raises:
107 RWSAuthenticationError: On HTTP 401.
108 RWSNotFoundError: On HTTP 404.
109 RWSHTTPError: On any other HTTP >= 400.
110 # ABB codes: BAD_REQUEST(400), see
112 Example:
113 ```python
114 >>> await get_mod_possible_all(client)
115 <Response [200]>
116 ```
117 """
118 return await client.get(
119 "/rw/rapid/modules",
120 params={k: v for k, v in {"resource": resource}.items() if v is not None},
121 )
124async def set_modify_all_positions(
125 client: RWSClient,
126 action: str | None = None,
127 checklimit: str | None = None,
128 checkdeactaxes: str | None = None,
129) -> httpx.Response:
130 """
131 Set Modify All Positions.
133 Route: ``POST /rw/rapid/modules``
134 ABB constraints: User needs to be local client and mastership is also required Not supported
135 in bootserver mode
137 Args:
138 client: Open RWSClient instance.
139 action: Query parameter. Optional.
140 checklimit: Body parameter. Optional.
141 checkdeactaxes: Body parameter. Optional.
143 Returns:
144 Raw HTTP response. Expected success: HTTP 204.
146 Raises:
147 RWSAuthenticationError: On HTTP 401.
148 RWSNotFoundError: On HTTP 404.
149 RWSHTTPError: On any other HTTP >= 400.
150 # ABB codes: BAD_REQUEST(400), see
152 Example:
153 ```python
154 >>> await set_modify_all_positions(client)
155 <Response [204]>
156 ```
157 """
158 return await client.post(
159 "/rw/rapid/modules",
160 params={k: v for k, v in {"action": action}.items() if v is not None},
161 data={
162 k: v
163 for k, v in {"checklimit": checklimit, "checkdeactaxes": checkdeactaxes}.items()
164 if v is not None
165 },
166 )
169async def get_specified_range_of_text(
170 client: RWSClient,
171 module: str,
172) -> httpx.Response:
173 """
174 Get a specified range of text.
176 Route: ``GET /rw/rapid/modules/{module}``
177 ABB constraints: Not supported in bootserver mode
179 Args:
180 client: Open RWSClient instance.
181 module: URL path parameter.
183 Returns:
184 Raw HTTP response. Expected success: HTTP 200.
186 Raises:
187 RWSAuthenticationError: On HTTP 401.
188 RWSNotFoundError: On HTTP 404.
189 RWSHTTPError: On any other HTTP >= 400.
190 # ABB codes: BAD_REQUEST(400), see
192 Example:
193 ```python
194 >>> await get_specified_range_of_text(client, "module_value")
195 <Response [200]>
196 ```
197 """
198 return await client.get(f"/rw/rapid/modules/{module}")
201async def get_rapid_module_actions(
202 client: RWSClient,
203 module: str,
204 action: str | None = None,
205) -> httpx.Response:
206 """
207 Get rapid module actions.
209 Route: ``GET /rw/rapid/modules/{module}``
210 ABB constraints: Not supported in bootserver mode
212 Args:
213 client: Open RWSClient instance.
214 module: URL path parameter.
215 action: Query parameter. Optional.
217 Returns:
218 Raw HTTP response. Expected success: HTTP 200.
220 Raises:
221 RWSAuthenticationError: On HTTP 401.
222 RWSNotFoundError: On HTTP 404.
223 RWSHTTPError: On any other HTTP >= 400.
224 # ABB codes: BAD_REQUEST(400), see
226 Example:
227 ```python
228 >>> await get_rapid_module_actions(client, "module_value")
229 <Response [200]>
230 ```
231 """
232 return await client.get(
233 f"/rw/rapid/modules/{module}",
234 params={k: v for k, v in {"action": action}.items() if v is not None},
235 )
238async def save_rapid_module(
239 client: RWSClient,
240 module: str,
241 task: str | None = None,
242 action: str | None = None,
243 name: str | None = None,
244 path: str | None = None,
245) -> httpx.Response:
246 """
247 Save rapid module.
249 Route: ``POST /rw/rapid/modules/{module}``
250 ABB constraints: Not supported in bootserver mode
252 Args:
253 client: Open RWSClient instance.
254 module: URL path parameter.
255 task: Query parameter. Optional.
256 action: Query parameter. Optional.
257 name: Body parameter. Optional.
258 path: Body parameter. Optional.
260 Returns:
261 Raw HTTP response. Expected success: HTTP 204.
263 Raises:
264 RWSAuthenticationError: On HTTP 401.
265 RWSNotFoundError: On HTTP 404.
266 RWSHTTPError: On any other HTTP >= 400.
267 # ABB codes: BAD_REQUEST(400), see
269 Example:
270 ```python
271 >>> await save_rapid_module(client, "module_value")
272 <Response [204]>
273 ```
274 """
275 return await client.post(
276 f"/rw/rapid/modules/{module}",
277 params={k: v for k, v in {"task": task, "action": action}.items() if v is not None},
278 data={k: v for k, v in {"name": name, "path": path}.items() if v is not None},
279 )
282async def set_text_range(
283 client: RWSClient,
284 module: str,
285 query_mode: str,
286 action: str | None = None,
287 task: str | None = None,
288 replace_mode: str | None = None,
289 startrow: str | None = None,
290 startcol: str | None = None,
291 endrow: str | None = None,
292 endcol: str | None = None,
293 text: str | None = None,
294) -> httpx.Response:
295 """
296 Set Text Range.
298 Route: ``POST /rw/rapid/modules/{module}``
299 ABB constraints: Mastership is Required Not supported in bootserver mode
301 Args:
302 client: Open RWSClient instance.
303 module: URL path parameter.
304 action: Query parameter. Optional.
305 query_mode: Body parameter. Required.
306 task: Body parameter. Optional.
307 replace_mode: Body parameter. Optional.
308 startrow: Body parameter. Optional.
309 startcol: Body parameter. Optional.
310 endrow: Body parameter. Optional.
311 endcol: Body parameter. Optional.
312 text: Body parameter. Optional.
314 Returns:
315 Raw HTTP response. Expected success: HTTP 204.
317 Raises:
318 RWSAuthenticationError: On HTTP 401.
319 RWSNotFoundError: On HTTP 404.
320 RWSHTTPError: On any other HTTP >= 400.
321 # ABB codes: BAD_REQUEST(400), see
323 Example:
324 ```python
325 >>> await set_text_range(client, "module_value", query_mode="query_mode_value")
326 <Response [204]>
327 ```
328 """
329 return await client.post(
330 f"/rw/rapid/modules/{module}",
331 params={k: v for k, v in {"action": action}.items() if v is not None},
332 data={
333 k: v
334 for k, v in {
335 "task": task,
336 "replace_mode": replace_mode,
337 "query_mode": query_mode,
338 "startrow": startrow,
339 "startcol": startcol,
340 "endrow": endrow,
341 "endcol": endcol,
342 "text": text,
343 }.items()
344 if v is not None
345 },
346 )
349async def set_module_text(
350 client: RWSClient,
351 module: str,
352 task: str | None = None,
353 action: str | None = None,
354 text: str | None = None,
355) -> httpx.Response:
356 """
357 Set Module Text.
359 Route: ``POST /rw/rapid/modules/{module}``
360 ABB constraints: Not supported in bootserver mode
362 Args:
363 client: Open RWSClient instance.
364 module: URL path parameter.
365 task: Query parameter. Optional.
366 action: Query parameter. Optional.
367 text: Body parameter. Optional.
369 Returns:
370 Raw HTTP response. Expected success: HTTP 200.
372 Raises:
373 RWSAuthenticationError: On HTTP 401.
374 RWSNotFoundError: On HTTP 404.
375 RWSHTTPError: On any other HTTP >= 400.
376 # ABB codes: BAD_REQUEST(400),NOT_FOUND(404), see
378 Example:
379 ```python
380 >>> await set_module_text(client, "module_value")
381 <Response [200]>
382 ```
383 """
384 return await client.post(
385 f"/rw/rapid/modules/{module}",
386 params={k: v for k, v in {"task": task, "action": action}.items() if v is not None},
387 data={k: v for k, v in {"text": text}.items() if v is not None},
388 )
391async def get_rapid_module_attributes(
392 client: RWSClient,
393 module: str,
394 task: str | None = None,
395 continue_on_err: str | None = None,
396) -> httpx.Response:
397 """
398 Get RAPID module attributes.
400 Route: ``GET /rw/rapid/modules/{module}``
401 ABB constraints: Not supported in bootserver mode
403 Args:
404 client: Open RWSClient instance.
405 module: URL path parameter.
406 task: Query parameter. Optional.
407 continue_on_err: Query parameter. Optional.
409 Returns:
410 Raw HTTP response. Expected success: HTTP 200.
412 Raises:
413 RWSAuthenticationError: On HTTP 401.
414 RWSNotFoundError: On HTTP 404.
415 RWSHTTPError: On any other HTTP >= 400.
416 # ABB codes: BAD_REQUEST(400), see
418 Example:
419 ```python
420 >>> await get_rapid_module_attributes(client, "module_value")
421 <Response [200]>
422 ```
423 """
424 return await client.get(
425 f"/rw/rapid/modules/{module}",
426 params={
427 k: v
428 for k, v in {"task": task, "continue_on_err": continue_on_err}.items()
429 if v is not None
430 },
431 )
434async def get_change_count(
435 client: RWSClient,
436 module: str,
437 resource: str | None = None,
438 task: str | None = None,
439) -> httpx.Response:
440 """
441 Get change count.
443 Route: ``GET /rw/rapid/modules/{module}``
445 Args:
446 client: Open RWSClient instance.
447 module: URL path parameter.
448 resource: Query parameter. Optional.
449 task: Query parameter. Optional.
451 Returns:
452 Raw HTTP response. Expected success: HTTP 200.
454 Raises:
455 RWSAuthenticationError: On HTTP 401.
456 RWSNotFoundError: On HTTP 404.
457 RWSHTTPError: On any other HTTP >= 400.
458 # ABB codes: Bad Request(400), FORBIDDEN(403), NOT_FOUND(404), see
460 Example:
461 ```python
462 >>> await get_change_count(client, "module_value")
463 <Response [200]>
464 ```
465 """
466 return await client.get(
467 f"/rw/rapid/modules/{module}",
468 params={k: v for k, v in {"resource": resource, "task": task}.items() if v is not None},
469 )
472async def get_rulesinstr(
473 client: RWSClient,
474 module: str,
475 resource: str | None = None,
476 task: str | None = None,
477 name: str | None = None,
478 data_type: str | None = None,
479 line: str | None = None,
480 col: str | None = None,
481) -> httpx.Response:
482 """
483 Get RulesInstr.
485 Route: ``GET /rw/rapid/modules/{module}``
487 Args:
488 client: Open RWSClient instance.
489 module: URL path parameter.
490 resource: Query parameter. Optional.
491 task: Query parameter. Optional.
492 name: Query parameter. Optional.
493 data_type: Query parameter. Optional.
494 line: Query parameter. Optional.
495 col: Query parameter. Optional.
497 Returns:
498 Raw HTTP response. Expected success: HTTP 200.
500 Raises:
501 RWSAuthenticationError: On HTTP 401.
502 RWSNotFoundError: On HTTP 404.
503 RWSHTTPError: On any other HTTP >= 400.
504 # ABB codes: BAD_REQUEST(400)
506 Example:
507 ```python
508 >>> await get_rulesinstr(client, "module_value")
509 <Response [200]>
510 ```
511 """
512 return await client.get(
513 f"/rw/rapid/modules/{module}",
514 params={
515 k: v
516 for k, v in {
517 "resource": resource,
518 "task": task,
519 "name": name,
520 "data_type": data_type,
521 "line": line,
522 "col": col,
523 }.items()
524 if v is not None
525 },
526 )
529async def get_module_possible_attributes(
530 client: RWSClient,
531 module: str,
532 task: str | None = None,
533 attribute: str | None = None,
534) -> httpx.Response:
535 """
536 Get module possible attributes.
538 Route: ``GET /rw/rapid/modules/{module}``
539 ABB constraints: -Not supported in bootserver mode -URL param "attribute" can be provided
540 multiple times
542 Args:
543 client: Open RWSClient instance.
544 module: URL path parameter.
545 task: Query parameter. Optional.
546 attribute: Query parameter. Optional.
548 Returns:
549 Raw HTTP response. Expected success: HTTP 200.
551 Raises:
552 RWSAuthenticationError: On HTTP 401.
553 RWSNotFoundError: On HTTP 404.
554 RWSHTTPError: On any other HTTP >= 400.
555 # ABB codes: BAD_REQUEST(400), see
557 Example:
558 ```python
559 >>> await get_module_possible_attributes(client, "module_value")
560 <Response [200]>
561 ```
562 """
563 return await client.get(
564 f"/rw/rapid/modules/{module}",
565 params={k: v for k, v in {"task": task, "attribute": attribute}.items() if v is not None},
566 )
569async def get_search_text(
570 client: RWSClient,
571 module: str,
572 task: str | None = None,
573 startrow: str | None = None,
574 startcol: str | None = None,
575 text: str | None = None,
576) -> httpx.Response:
577 """
578 Get Search Text.
580 Route: ``GET /rw/rapid/modules/{module}``
581 ABB constraints: Not supported in bootserver mode. If the text is not found,the row and
582 column values will be zero.
584 Args:
585 client: Open RWSClient instance.
586 module: URL path parameter.
587 task: Query parameter. Optional.
588 startrow: Query parameter. Optional.
589 startcol: Query parameter. Optional.
590 text: Query parameter. Optional.
592 Returns:
593 Raw HTTP response. Expected success: HTTP 200.
595 Raises:
596 RWSAuthenticationError: On HTTP 401.
597 RWSNotFoundError: On HTTP 404.
598 RWSHTTPError: On any other HTTP >= 400.
599 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403), NOT_FOUND(404), see
601 Example:
602 ```python
603 >>> await get_search_text(client, "module_value")
604 <Response [200]>
605 ```
606 """
607 return await client.get(
608 f"/rw/rapid/modules/{module}",
609 params={
610 k: v
611 for k, v in {
612 "task": task,
613 "startrow": startrow,
614 "startcol": startcol,
615 "text": text,
616 }.items()
617 if v is not None
618 },
619 )
622async def get_rapid_object(
623 client: RWSClient,
624 module: str,
625) -> httpx.Response:
626 """
627 Get Rapid Object.
629 Route: ``GET /rw/rapid/modules/{module}``
630 ABB constraints: Not supported in bootserver mode
632 Args:
633 client: Open RWSClient instance.
634 module: URL path parameter.
636 Returns:
637 Raw HTTP response. Expected success: HTTP 200.
639 Raises:
640 RWSAuthenticationError: On HTTP 401.
641 RWSNotFoundError: On HTTP 404.
642 RWSHTTPError: On any other HTTP >= 400.
643 # ABB codes: BAD_REQUEST (400), FORBIDDEN(403), NOT_FOUND(404), see
645 Example:
646 ```python
647 >>> await get_rapid_object(client, "module_value")
648 <Response [200]>
649 ```
650 """
651 return await client.get(f"/rw/rapid/modules/{module}")
654async def set_syncpers(
655 client: RWSClient,
656 module: str,
657 action: str | None = None,
658 task: str | None = None,
659) -> httpx.Response:
660 """
661 Set SyncPers.
663 Route: ``POST /rw/rapid/modules/{module}``
665 Args:
666 client: Open RWSClient instance.
667 module: URL path parameter.
668 action: Query parameter. Optional.
669 task: Query parameter. Optional.
671 Returns:
672 Raw HTTP response. Expected success: HTTP 200.
674 Raises:
675 RWSAuthenticationError: On HTTP 401.
676 RWSNotFoundError: On HTTP 404.
677 RWSHTTPError: On any other HTTP >= 400.
678 # ABB codes: BAD_REQUEST(400)
680 Example:
681 ```python
682 >>> await set_syncpers(client, "module_value")
683 <Response [200]>
684 ```
685 """
686 return await client.post(
687 f"/rw/rapid/modules/{module}",
688 params={k: v for k, v in {"action": action, "task": task}.items() if v is not None},
689 data={},
690 )
693async def set_modify_position(
694 client: RWSClient,
695 module: str,
696 action: str | None = None,
697 task: str | None = None,
698 startrow: str | None = None,
699 startcol: str | None = None,
700 endrow: str | None = None,
701 endcol: str | None = None,
702 checklimit: str | None = None,
703 checkdeactaxes: str | None = None,
704 allowdeact: str | None = None,
705) -> httpx.Response:
706 """
707 Set Modify Position.
709 Route: ``POST /rw/rapid/modules/{module}``
711 Args:
712 client: Open RWSClient instance.
713 module: URL path parameter.
714 action: Query parameter. Optional.
715 task: Query parameter. Optional.
716 startrow: Body parameter. Optional.
717 startcol: Body parameter. Optional.
718 endrow: Body parameter. Optional.
719 endcol: Body parameter. Optional.
720 checklimit: Body parameter. Optional.
721 checkdeactaxes: Body parameter. Optional.
722 allowdeact: Body parameter. Optional.
724 Returns:
725 Raw HTTP response. Expected success: HTTP 204.
727 Raises:
728 RWSAuthenticationError: On HTTP 401.
729 RWSNotFoundError: On HTTP 404.
730 RWSHTTPError: On any other HTTP >= 400.
731 # ABB codes: Bad Request(400),
733 Example:
734 ```python
735 >>> await set_modify_position(client, "module_value")
736 <Response [204]>
737 ```
738 """
739 return await client.post(
740 f"/rw/rapid/modules/{module}",
741 params={k: v for k, v in {"action": action, "task": task}.items() if v is not None},
742 data={
743 k: v
744 for k, v in {
745 "startrow": startrow,
746 "startcol": startcol,
747 "endrow": endrow,
748 "endcol": endcol,
749 "checklimit": checklimit,
750 "checkdeactaxes": checkdeactaxes,
751 "allowdeact": allowdeact,
752 }.items()
753 if v is not None
754 },
755 )
758async def get_module_extension(
759 client: RWSClient,
760 module: str,
761 resource: str | None = None,
762 task: str | None = None,
763) -> httpx.Response:
764 """
765 Get Module Extension.
767 Route: ``GET /rw/rapid/modules/{module}``
769 Args:
770 client: Open RWSClient instance.
771 module: URL path parameter.
772 resource: Query parameter. Optional.
773 task: Query parameter. Optional.
775 Returns:
776 Raw HTTP response. Expected success: HTTP 200.
778 Raises:
779 RWSAuthenticationError: On HTTP 401.
780 RWSNotFoundError: On HTTP 404.
781 RWSHTTPError: On any other HTTP >= 400.
782 # ABB codes: Bad Request(400), see
784 Example:
785 ```python
786 >>> await get_module_extension(client, "module_value")
787 <Response [200]>
788 ```
789 """
790 return await client.get(
791 f"/rw/rapid/modules/{module}",
792 params={k: v for k, v in {"resource": resource, "task": task}.items() if v is not None},
793 )
796async def get_mod_possible(
797 client: RWSClient,
798 module: str,
799 resource: str | None = None,
800 task: str | None = None,
801 startrow: str | None = None,
802 startcol: str | None = None,
803 endrow: str | None = None,
804 endcol: str | None = None,
805) -> httpx.Response:
806 """
807 Get Mod Possible.
809 Route: ``GET /rw/rapid/modules/{module}``
811 Args:
812 client: Open RWSClient instance.
813 module: URL path parameter.
814 resource: Query parameter. Optional.
815 task: Query parameter. Optional.
816 startrow: Query parameter. Optional.
817 startcol: Query parameter. Optional.
818 endrow: Query parameter. Optional.
819 endcol: Query parameter. Optional.
821 Returns:
822 Raw HTTP response. Expected success: HTTP 200.
824 Raises:
825 RWSAuthenticationError: On HTTP 401.
826 RWSNotFoundError: On HTTP 404.
827 RWSHTTPError: On any other HTTP >= 400.
828 # ABB codes: Bad Request(400), see
830 Example:
831 ```python
832 >>> await get_mod_possible(client, "module_value")
833 <Response [200]>
834 ```
835 """
836 return await client.get(
837 f"/rw/rapid/modules/{module}",
838 params={
839 k: v
840 for k, v in {
841 "resource": resource,
842 "task": task,
843 "startrow": startrow,
844 "startcol": startcol,
845 "endrow": endrow,
846 "endcol": endcol,
847 }.items()
848 if v is not None
849 },
850 )
853async def get_object_child(
854 client: RWSClient,
855 module: str,
856 resource: str | None = None,
857 task: str | None = None,
858 startline: str | None = None,
859 startcolumn: str | None = None,
860 endline: str | None = None,
861 endcolumn: str | None = None,
862) -> httpx.Response:
863 """
864 Get Object Child.
866 Route: ``GET /rw/rapid/modules/{module}``
868 Args:
869 client: Open RWSClient instance.
870 module: URL path parameter.
871 resource: Query parameter. Optional.
872 task: Query parameter. Optional.
873 startline: Query parameter. Optional.
874 startcolumn: Query parameter. Optional.
875 endline: Query parameter. Optional.
876 endcolumn: Query parameter. Optional.
878 Returns:
879 Raw HTTP response. Expected success: HTTP 200.
881 Raises:
882 RWSAuthenticationError: On HTTP 401.
883 RWSNotFoundError: On HTTP 404.
884 RWSHTTPError: On any other HTTP >= 400.
885 # ABB codes: Bad Request(400), see
887 Example:
888 ```python
889 >>> await get_object_child(client, "module_value")
890 <Response [200]>
891 ```
892 """
893 return await client.get(
894 f"/rw/rapid/modules/{module}",
895 params={
896 k: v
897 for k, v in {
898 "resource": resource,
899 "task": task,
900 "startline": startline,
901 "startcolumn": startcolumn,
902 "endline": endline,
903 "endcolumn": endcolumn,
904 }.items()
905 if v is not None
906 },
907 )
910async def get_syncpers_status(
911 client: RWSClient,
912 module: str,
913 resource: str | None = None,
914 task: str | None = None,
915) -> httpx.Response:
916 """
917 Get SyncPers Status.
919 Route: ``GET /rw/rapid/modules/{module}``
921 Args:
922 client: Open RWSClient instance.
923 module: URL path parameter.
924 resource: Query parameter. Optional.
925 task: Query parameter. Optional.
927 Returns:
928 Raw HTTP response. Expected success: HTTP 200.
930 Raises:
931 RWSAuthenticationError: On HTTP 401.
932 RWSNotFoundError: On HTTP 404.
933 RWSHTTPError: On any other HTTP >= 400.
934 # ABB codes: Bad Request(400), see
936 Example:
937 ```python
938 >>> await get_syncpers_status(client, "module_value")
939 <Response [200]>
940 ```
941 """
942 return await client.get(
943 f"/rw/rapid/modules/{module}",
944 params={k: v for k, v in {"resource": resource, "task": task}.items() if v is not None},
945 )
948async def get_module_text(
949 client: RWSClient,
950 module: str,
951 resource: str | None = None,
952 task: str | None = None,
953) -> httpx.Response:
954 """
955 Get Module Text.
957 Route: ``GET /rw/rapid/modules/{module}``
959 Args:
960 client: Open RWSClient instance.
961 module: URL path parameter.
962 resource: Query parameter. Optional.
963 task: Query parameter. Optional.
965 Returns:
966 Raw HTTP response. Expected success: HTTP 200.
968 Raises:
969 RWSAuthenticationError: On HTTP 401.
970 RWSNotFoundError: On HTTP 404.
971 RWSHTTPError: On any other HTTP >= 400.
972 # ABB codes: Bad Request(400), see
974 Example:
975 ```python
976 >>> await get_module_text(client, "module_value")
977 <Response [200]>
978 ```
979 """
980 return await client.get(
981 f"/rw/rapid/modules/{module}",
982 params={k: v for k, v in {"resource": resource, "task": task}.items() if v is not None},
983 )
986async def get_symbol_information(
987 client: RWSClient,
988 module: str,
989 resource: str | None = None,
990 task: str | None = None,
991 row: str | None = None,
992 col: str | None = None,
993) -> httpx.Response:
994 """
995 Get Symbol Information.
997 Route: ``GET /rw/rapid/modules/{module}``
999 Args:
1000 client: Open RWSClient instance.
1001 module: URL path parameter.
1002 resource: Query parameter. Optional.
1003 task: Query parameter. Optional.
1004 row: Query parameter. Optional.
1005 col: Query parameter. Optional.
1007 Returns:
1008 Raw HTTP response. Expected success: HTTP 200.
1010 Raises:
1011 RWSAuthenticationError: On HTTP 401.
1012 RWSNotFoundError: On HTTP 404.
1013 RWSHTTPError: On any other HTTP >= 400.
1014 # ABB codes: Bad Request(400), see
1016 Example:
1017 ```python
1018 >>> await get_symbol_information(client, "module_value")
1019 <Response [200]>
1020 ```
1021 """
1022 return await client.get(
1023 f"/rw/rapid/modules/{module}",
1024 params={
1025 k: v
1026 for k, v in {"resource": resource, "task": task, "row": row, "col": col}.items()
1027 if v is not None
1028 },
1029 )
1032async def get_routine_information(
1033 client: RWSClient,
1034 module: str,
1035 task: str | None = None,
1036 row: str | None = None,
1037 column: str | None = None,
1038) -> httpx.Response:
1039 """
1040 Get Routine information.
1042 Route: ``GET /rw/rapid/modules/{module}/routine``
1043 ABB constraints: Not supported in bootserver mode
1045 Args:
1046 client: Open RWSClient instance.
1047 module: URL path parameter.
1048 task: Query parameter. Optional.
1049 row: Query parameter. Optional.
1050 column: Query parameter. Optional.
1052 Returns:
1053 Raw HTTP response. Expected success: HTTP 200.
1055 Raises:
1056 RWSAuthenticationError: On HTTP 401.
1057 RWSNotFoundError: On HTTP 404.
1058 RWSHTTPError: On any other HTTP >= 400.
1059 # ABB codes: HTTP_BAD_REQUEST(400),FORBIDDEN(403), NOT_FOUND(404),see
1061 Example:
1062 ```python
1063 >>> await get_routine_information(client, "module_value")
1064 <Response [200]>
1065 ```
1066 """
1067 return await client.get(
1068 f"/rw/rapid/modules/{module}/routine",
1069 params={
1070 k: v for k, v in {"task": task, "row": row, "column": column}.items() if v is not None
1071 },
1072 )
1075async def get_routineargs_information(
1076 client: RWSClient,
1077 module: str,
1078 resource: str | None = None,
1079 mark: str | None = None,
1080 limit: str | None = None,
1081 task: str | None = None,
1082 row: str | None = None,
1083 column: str | None = None,
1084) -> httpx.Response:
1085 """
1086 Get Routineargs information.
1088 Route: ``GET /rw/rapid/modules/{module}/routine``
1089 ABB constraints: Routineargs will show a list of arguments based on the mark and limit.
1090 Default value of mark is 0. Absence of next link indicates last page. You will get
1091 routine argument information only on lines having proceure call. Not supported in
1092 bootserver mode.
1094 Args:
1095 client: Open RWSClient instance.
1096 module: URL path parameter.
1097 resource: Query parameter. Optional.
1098 mark: Query parameter. Optional.
1099 limit: Query parameter. Optional.
1100 task: Query parameter. Optional.
1101 row: Query parameter. Optional.
1102 column: Query parameter. Optional.
1104 Returns:
1105 Raw HTTP response. Expected success: HTTP 200.
1107 Raises:
1108 RWSAuthenticationError: On HTTP 401.
1109 RWSNotFoundError: On HTTP 404.
1110 RWSHTTPError: On any other HTTP >= 400.
1111 # ABB codes: BAD_REQUEST(400),FORBIDDEN(403), NOT_FOUND(404), see
1113 Example:
1114 ```python
1115 >>> await get_routineargs_information(client, "module_value")
1116 <Response [200]>
1117 ```
1118 """
1119 return await client.get(
1120 f"/rw/rapid/modules/{module}/routine",
1121 params={
1122 k: v
1123 for k, v in {
1124 "resource": resource,
1125 "mark": mark,
1126 "limit": limit,
1127 "task": task,
1128 "row": row,
1129 "column": column,
1130 }.items()
1131 if v is not None
1132 },
1133 )