Coverage for abb_rws_client_python_rw6/rws/ctrl/ctrl.py: 100%
133 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: Controller Service → Get Controller Resources
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_controller_resources(client: RWSClient) -> httpx.Response:
20 """
21 Get Controller Resources.
23 Route: ``GET /ctrl``
24 ABB constraints: Supported in bootserver mode
26 Args:
27 client: Open RWSClient instance.
29 Returns:
30 Raw HTTP response. Expected success: HTTP 200.
32 Raises:
33 RWSAuthenticationError: On HTTP 401.
34 RWSNotFoundError: On HTTP 404.
35 RWSHTTPError: On any other HTTP >= 400.
36 # ABB codes: NOT_FOUND(404) See
38 Example:
39 ```python
40 >>> await get_controller_resources(client)
41 <Response [200]>
42 ```
43 """
44 return await client.get("/ctrl")
47async def get_controller_actions(
48 client: RWSClient,
49 action: str | None = None,
50) -> httpx.Response:
51 """
52 Get Controller Actions.
54 Route: ``GET /ctrl``
55 ABB constraints: Supported in bootserver mode
57 Args:
58 client: Open RWSClient instance.
59 action: Query parameter. Optional.
61 Returns:
62 Raw HTTP response. Expected success: HTTP 200.
64 Raises:
65 RWSAuthenticationError: On HTTP 401.
66 RWSNotFoundError: On HTTP 404.
67 RWSHTTPError: On any other HTTP >= 400.
68 # ABB codes: NOT_FOUND(404) See
70 Example:
71 ```python
72 >>> await get_controller_actions(client)
73 <Response [200]>
74 ```
75 """
76 return await client.get(
77 "/ctrl",
78 params={k: v for k, v in {"action": action}.items() if v is not None},
79 )
82async def get_controller_environment_variable(
83 client: RWSClient,
84 envname: str,
85) -> httpx.Response:
86 """
87 Get Controller environment variable.
89 Route: ``GET /ctrl/${ENVNAME}``
91 Args:
92 client: Open RWSClient instance.
93 envname: URL path parameter.
95 Returns:
96 Raw HTTP response. Expected success: HTTP 200.
98 Raises:
99 RWSAuthenticationError: On HTTP 401.
100 RWSNotFoundError: On HTTP 404.
101 RWSHTTPError: On any other HTTP >= 400.
102 # ABB codes: NOT_FOUND(404)
104 Example:
105 ```python
106 >>> await get_controller_environment_variable(client, "envname_value")
107 <Response [200]>
108 ```
109 """
110 return await client.get(f"/ctrl/${envname}")
113async def restart_or_shutdown_controller(client: RWSClient) -> httpx.Response:
114 """
115 Restart or Shutdown controller.
117 Route: ``POST /ctrl``
118 ABB constraints: Supported in bootserver mode
120 Args:
121 client: Open RWSClient instance.
123 Returns:
124 Raw HTTP response. Expected success: HTTP 200.
126 Raises:
127 RWSAuthenticationError: On HTTP 401.
128 RWSNotFoundError: On HTTP 404.
129 RWSHTTPError: On any other HTTP >= 400.
130 # ABB codes: NOT_FOUND(404), BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), CONFLICT(409)
132 Example:
133 ```python
134 >>> await restart_or_shutdown_controller(client)
135 <Response [200]>
136 ```
137 """
138 return await client.post(
139 "/ctrl",
140 data={},
141 )
144async def set_controller_language(
145 client: RWSClient,
146 action: str | None = None,
147) -> httpx.Response:
148 """
149 Set Controller language.
151 Route: ``POST /ctrl``
152 ABB constraints: Not Supported in bootserver mode
154 Args:
155 client: Open RWSClient instance.
156 action: Query parameter. Optional.
158 Returns:
159 Raw HTTP response. Expected success: HTTP 204.
161 Raises:
162 RWSAuthenticationError: On HTTP 401.
163 RWSNotFoundError: On HTTP 404.
164 RWSHTTPError: On any other HTTP >= 400.
165 # ABB codes: BAD_REQUEST(400)
167 Example:
168 ```python
169 >>> await set_controller_language(client)
170 <Response [204]>
171 ```
172 """
173 return await client.post(
174 "/ctrl",
175 params={k: v for k, v in {"action": action}.items() if v is not None},
176 data={},
177 )
180async def get_list_of_installed_systems(client: RWSClient) -> httpx.Response:
181 """
182 Get list of installed systems.
184 Route: ``GET /ctrl/system``
185 ABB constraints: Supported in bootserver mode
187 Args:
188 client: Open RWSClient instance.
190 Returns:
191 Raw HTTP response. Expected success: HTTP 200.
193 Raises:
194 RWSAuthenticationError: On HTTP 401.
195 RWSNotFoundError: On HTTP 404.
196 RWSHTTPError: On any other HTTP >= 400.
197 # ABB codes: NOT_FOUND(404) See
199 Example:
200 ```python
201 >>> await get_list_of_installed_systems(client)
202 <Response [200]>
203 ```
204 """
205 return await client.get("/ctrl/system")
208async def get_actions_on_system(
209 client: RWSClient,
210 action: str | None = None,
211) -> httpx.Response:
212 """
213 Get actions on system.
215 Route: ``GET /ctrl/system``
216 ABB constraints: Supported in bootserver mode
218 Args:
219 client: Open RWSClient instance.
220 action: Query parameter. Optional.
222 Returns:
223 Raw HTTP response. Expected success: HTTP 200.
225 Raises:
226 RWSAuthenticationError: On HTTP 401.
227 RWSNotFoundError: On HTTP 404.
228 RWSHTTPError: On any other HTTP >= 400.
229 # ABB codes: NOT_FOUND(404) See
231 Example:
232 ```python
233 >>> await get_actions_on_system(client)
234 <Response [200]>
235 ```
236 """
237 return await client.get(
238 "/ctrl/system",
239 params={k: v for k, v in {"action": action}.items() if v is not None},
240 )
243async def set_boot_device(
244 client: RWSClient,
245 action: str | None = None,
246) -> httpx.Response:
247 """
248 Set Boot Device.
250 Route: ``POST /ctrl/system``
251 ABB constraints: Supported in bootserver mode only
253 Args:
254 client: Open RWSClient instance.
255 action: Query parameter. Optional.
257 Returns:
258 Raw HTTP response. Expected success: HTTP 204.
260 Raises:
261 RWSAuthenticationError: On HTTP 401.
262 RWSNotFoundError: On HTTP 404.
263 RWSHTTPError: On any other HTTP >= 400.
264 # ABB codes: BAD_REQUEST(400) See
266 Example:
267 ```python
268 >>> await set_boot_device(client)
269 <Response [204]>
270 ```
271 """
272 return await client.post(
273 "/ctrl/system",
274 params={k: v for k, v in {"action": action}.items() if v is not None},
275 data={},
276 )
279async def get_boot_device(
280 client: RWSClient,
281 resource: str | None = None,
282) -> httpx.Response:
283 """
284 Get Boot Device.
286 Route: ``GET /ctrl/system``
287 ABB constraints: Supported in bootserver mode only
289 Args:
290 client: Open RWSClient instance.
291 resource: Query parameter. Optional.
293 Returns:
294 Raw HTTP response. Expected success: HTTP 200.
296 Raises:
297 RWSAuthenticationError: On HTTP 401.
298 RWSNotFoundError: On HTTP 404.
299 RWSHTTPError: On any other HTTP >= 400.
300 # ABB codes: BAD_REQUEST(400) See
302 Example:
303 ```python
304 >>> await get_boot_device(client)
305 <Response [200]>
306 ```
307 """
308 return await client.get(
309 "/ctrl/system",
310 params={k: v for k, v in {"resource": resource}.items() if v is not None},
311 )
314async def load_boot_image(
315 client: RWSClient,
316 action: str | None = None,
317) -> httpx.Response:
318 """
319 Load Boot Image.
321 Route: ``POST /ctrl/system``
322 ABB constraints: Supported in bootserver mode only Controller must be restarted to reflect
323 the changes Not supported by VC
325 Args:
326 client: Open RWSClient instance.
327 action: Query parameter. Optional.
329 Returns:
330 Raw HTTP response. Expected success: HTTP 202.
332 Raises:
333 RWSAuthenticationError: On HTTP 401.
334 RWSNotFoundError: On HTTP 404.
335 RWSHTTPError: On any other HTTP >= 400.
336 # ABB codes: BAD_REQUEST(400) See
338 Example:
339 ```python
340 >>> await load_boot_image(client)
341 <Response [202]>
342 ```
343 """
344 return await client.post(
345 "/ctrl/system",
346 params={k: v for k, v in {"action": action}.items() if v is not None},
347 data={},
348 )
351async def post_unload_boot_image(
352 client: RWSClient,
353 action: str | None = None,
354) -> httpx.Response:
355 """
356 Unload Boot Image.
358 Route: ``POST /ctrl/system``
359 ABB constraints: Supported in bootserver mode only Not supported by VC
361 Args:
362 client: Open RWSClient instance.
363 action: Query parameter. Optional.
365 Returns:
366 Raw HTTP response. Expected success: HTTP 204.
368 Raises:
369 RWSAuthenticationError: On HTTP 401.
370 RWSNotFoundError: On HTTP 404.
371 RWSHTTPError: On any other HTTP >= 400.
372 # ABB codes: BAD_REQUEST(400) See
374 Example:
375 ```python
376 >>> await post_unload_boot_image(client)
377 <Response [204]>
378 ```
379 """
380 return await client.post(
381 "/ctrl/system",
382 params={k: v for k, v in {"action": action}.items() if v is not None},
383 data={},
384 )
387async def get_selected_system_name(
388 client: RWSClient,
389 type: str | None = None,
390) -> httpx.Response:
391 """
392 Get selected system name.
394 Route: ``GET /ctrl/system``
395 ABB constraints: Not supported in VC Supported in Bootserver In bootserver, system-name will
396 show as BOOTSERVER, as active system is not applicable in bootserver mode
398 Args:
399 client: Open RWSClient instance.
400 type: Query parameter. Optional.
402 Returns:
403 Raw HTTP response. Expected success: HTTP 200.
405 Raises:
406 RWSAuthenticationError: On HTTP 401.
407 RWSNotFoundError: On HTTP 404.
408 RWSHTTPError: On any other HTTP >= 400.
409 # ABB codes: BAD_REQUEST(400) See
411 Example:
412 ```python
413 >>> await get_selected_system_name(client)
414 <Response [200]>
415 ```
416 """
417 return await client.get(
418 "/ctrl/system",
419 params={k: v for k, v in {"type": type}.items() if v is not None},
420 )
423async def post_install_deployment_package(client: RWSClient) -> httpx.Response:
424 """
425 Install deployment package.
427 Route: ``POST /ctrl/system/installdpkg``
428 ABB constraints: Supported in bootserver mode only. Will validate the deployment package
429 internally. To get status of the installation, see location header. System will be
430 restarted after unpacking the files. dp-pkg-path should be inside inbox folder.The
431 installation package and all associated files should be pla...
433 Args:
434 client: Open RWSClient instance.
436 Returns:
437 Raw HTTP response. Expected success: HTTP 202.
439 Raises:
440 RWSAuthenticationError: On HTTP 401.
441 RWSNotFoundError: On HTTP 404.
442 RWSHTTPError: On any other HTTP >= 400.
443 # ABB codes: UNSUPPORTED_MEDIA(415), BAD_REQUEST(400)
445 Example:
446 ```python
447 >>> await post_install_deployment_package(client)
448 <Response [202]>
449 ```
450 """
451 return await client.post(
452 "/ctrl/system/installdpkg",
453 data={},
454 )
457async def validate_deployment_package(client: RWSClient) -> httpx.Response:
458 """
459 Validate deployment package.
461 Route: ``POST /ctrl/system/validatedpkg``
462 ABB constraints: Supported in bootserver mode only. path should be inside inbox folder.
464 Args:
465 client: Open RWSClient instance.
467 Returns:
468 Raw HTTP response. Expected success: HTTP 204.
470 Raises:
471 RWSAuthenticationError: On HTTP 401.
472 RWSNotFoundError: On HTTP 404.
473 RWSHTTPError: On any other HTTP >= 400.
474 # ABB codes: UNSUPPORTED_MEDIA(415), BAD_REQUEST(400)
476 Example:
477 ```python
478 >>> await validate_deployment_package(client)
479 <Response [204]>
480 ```
481 """
482 return await client.post(
483 "/ctrl/system/validatedpkg",
484 data={},
485 )
488async def get_system_resource(
489 client: RWSClient,
490 system_name: str,
491) -> httpx.Response:
492 """
493 Get system resource.
495 Route: ``GET /ctrl/system/{system-name}``
496 ABB constraints: Supported in bootserver mode
498 Args:
499 client: Open RWSClient instance.
500 system_name: URL path parameter.
502 Returns:
503 Raw HTTP response. Expected success: HTTP 200.
505 Raises:
506 RWSAuthenticationError: On HTTP 401.
507 RWSNotFoundError: On HTTP 404.
508 RWSHTTPError: On any other HTTP >= 400.
509 # ABB codes: NOT_FOUND(404) See
511 Example:
512 ```python
513 >>> await get_system_resource(client, "system_name_value")
514 <Response [200]>
515 ```
516 """
517 return await client.get(f"/ctrl/system/{system_name}")
520async def get_actions_on_system_resource(
521 client: RWSClient,
522 system_name: str,
523 action: str | None = None,
524) -> httpx.Response:
525 """
526 Get actions on a system resource.
528 Route: ``GET /ctrl/system/{system-name}``
529 ABB constraints: Supported in bootserver mode
531 Args:
532 client: Open RWSClient instance.
533 system_name: URL path parameter.
534 action: Query parameter. Optional.
536 Returns:
537 Raw HTTP response. Expected success: HTTP 200.
539 Raises:
540 RWSAuthenticationError: On HTTP 401.
541 RWSNotFoundError: On HTTP 404.
542 RWSHTTPError: On any other HTTP >= 400.
543 # ABB codes: NOT_FOUND(404) See
545 Example:
546 ```python
547 >>> await get_actions_on_system_resource(client, "system_name_value")
548 <Response [200]>
549 ```
550 """
551 return await client.get(
552 f"/ctrl/system/{system_name}",
553 params={k: v for k, v in {"action": action}.items() if v is not None},
554 )
557async def post_rename_system(
558 client: RWSClient,
559 system_name: str,
560 action: str | None = None,
561 newname: str | None = None,
562) -> httpx.Response:
563 """
564 Rename a system.
566 Route: ``POST /ctrl/system/{system-name}``
567 ABB constraints: Only available for VxWorks in "System-Mode". Not available for VC or
568 Boot-Server.
570 Args:
571 client: Open RWSClient instance.
572 system_name: URL path parameter.
573 action: Query parameter. Optional.
574 newname: Body parameter. Optional.
576 Returns:
577 Raw HTTP response. Expected success: HTTP 201.
579 Raises:
580 RWSAuthenticationError: On HTTP 401.
581 RWSNotFoundError: On HTTP 404.
582 RWSHTTPError: On any other HTTP >= 400.
583 # ABB codes: BAD_REQUEST(400), UNAUTHORIZED(401)
585 Example:
586 ```python
587 >>> await post_rename_system(client, "system_name_value")
588 <Response [201]>
589 ```
590 """
591 return await client.post(
592 f"/ctrl/system/{system_name}",
593 params={k: v for k, v in {"action": action}.items() if v is not None},
594 data={k: v for k, v in {"newname": newname}.items() if v is not None},
595 )
598async def post_select_system(
599 client: RWSClient,
600 system_name: str,
601 action: str | None = None,
602) -> httpx.Response:
603 """
604 Select a system.
606 Route: ``POST /ctrl/system/{system-name}``
607 ABB constraints: status code CONFLICT is returned if trying to select a system that is
608 already active.
610 Args:
611 client: Open RWSClient instance.
612 system_name: URL path parameter.
613 action: Query parameter. Optional.
615 Returns:
616 Raw HTTP response. Expected success: HTTP 200.
618 Raises:
619 RWSAuthenticationError: On HTTP 401.
620 RWSNotFoundError: On HTTP 404.
621 RWSHTTPError: On any other HTTP >= 400.
622 # ABB codes: UNAUTHORIZED(401), BAD_REQUEST(400), CONFLICT(409)
624 Example:
625 ```python
626 >>> await post_select_system(client, "system_name_value")
627 <Response [200]>
628 ```
629 """
630 return await client.post(
631 f"/ctrl/system/{system_name}",
632 params={k: v for k, v in {"action": action}.items() if v is not None},
633 data={},
634 )
637async def delete_system(
638 client: RWSClient,
639 system_name: str,
640) -> httpx.Response:
641 """
642 Delete a System.
644 Route: ``DELETE /ctrl/system/{system-name}``
645 ABB constraints: Supported in bootserver mode not supported in VC
647 Args:
648 client: Open RWSClient instance.
649 system_name: URL path parameter.
651 Returns:
652 Raw HTTP response. Expected success: HTTP 204.
654 Raises:
655 RWSAuthenticationError: On HTTP 401.
656 RWSNotFoundError: On HTTP 404.
657 RWSHTTPError: On any other HTTP >= 400.
658 # ABB codes: BAD_REQUEST(400), UNAUTHORIZED(401)
660 Example:
661 ```python
662 >>> await delete_system(client, "system_name_value")
663 <Response [204]>
664 ```
665 """
666 return await client.delete(f"/ctrl/system/{system_name}")
669async def post_deselect_system(
670 client: RWSClient,
671 action: str | None = None,
672) -> httpx.Response:
673 """
674 Deselect a System.
676 Route: ``POST /ctrl/system``
677 ABB constraints: Not supported in Virtual Controller
679 Args:
680 client: Open RWSClient instance.
681 action: Query parameter. Optional.
683 Returns:
684 Raw HTTP response. Expected success: HTTP 204.
686 Raises:
687 RWSAuthenticationError: On HTTP 401.
688 RWSNotFoundError: On HTTP 404.
689 RWSHTTPError: On any other HTTP >= 400.
690 # ABB codes: BAD_REQUEST(400) See
692 Example:
693 ```python
694 >>> await post_deselect_system(client)
695 <Response [204]>
696 ```
697 """
698 return await client.post(
699 "/ctrl/system",
700 params={k: v for k, v in {"action": action}.items() if v is not None},
701 data={},
702 )
705async def get_network_resource(client: RWSClient) -> httpx.Response:
706 """
707 Get Network Resource.
709 Route: ``GET /ctrl/network``
710 ABB constraints: Supported in bootserver mode
712 Args:
713 client: Open RWSClient instance.
715 Returns:
716 Raw HTTP response. Expected success: HTTP 200.
718 Raises:
719 RWSAuthenticationError: On HTTP 401.
720 RWSNotFoundError: On HTTP 404.
721 RWSHTTPError: On any other HTTP >= 400.
723 Example:
724 ```python
725 >>> await get_network_resource(client)
726 <Response [200]>
727 ```
728 """
729 return await client.get("/ctrl/network")
732async def get_network_setting_actions(
733 client: RWSClient,
734 action: str | None = None,
735) -> httpx.Response:
736 """
737 Get Network setting actions.
739 Route: ``GET /ctrl/network``
740 ABB constraints: Supported in bootserver mode. Not supported by VC.
742 Args:
743 client: Open RWSClient instance.
744 action: Query parameter. Optional.
746 Returns:
747 Raw HTTP response. Expected success: HTTP 200.
749 Raises:
750 RWSAuthenticationError: On HTTP 401.
751 RWSNotFoundError: On HTTP 404.
752 RWSHTTPError: On any other HTTP >= 400.
753 # ABB codes: BAD_REQUEST(400)
755 Example:
756 ```python
757 >>> await get_network_setting_actions(client)
758 <Response [200]>
759 ```
760 """
761 return await client.get(
762 "/ctrl/network",
763 params={k: v for k, v in {"action": action}.items() if v is not None},
764 )
767async def set_network_configuration(
768 client: RWSClient,
769 action: str | None = None,
770) -> httpx.Response:
771 """
772 Set Network configuration.
774 Route: ``POST /ctrl/network``
775 ABB constraints: Supported in bootserver mode. Not supported by VC. Controller must be
776 restarted to reflect the changes. Requires the UAS grant UAS_CONTROLLER_PROPERTIES_WRITE
778 Args:
779 client: Open RWSClient instance.
780 action: Query parameter. Optional.
782 Returns:
783 Raw HTTP response. Expected success: HTTP 202.
785 Raises:
786 RWSAuthenticationError: On HTTP 401.
787 RWSNotFoundError: On HTTP 404.
788 RWSHTTPError: On any other HTTP >= 400.
789 # ABB codes: UNSUPPORTED_MEDIA(415), BAD_REQUEST(400), UNAUTHORIZED(401)
791 Example:
792 ```python
793 >>> await set_network_configuration(client)
794 <Response [202]>
795 ```
796 """
797 return await client.post(
798 "/ctrl/network",
799 params={k: v for k, v in {"action": action}.items() if v is not None},
800 data={},
801 )
804async def get_dns_resource(client: RWSClient) -> httpx.Response:
805 """
806 Get DNS Resource.
808 Route: ``GET /ctrl/network/dns``
809 ABB constraints: Supported in bootserver mode Not supported by VC.
811 Args:
812 client: Open RWSClient instance.
814 Returns:
815 Raw HTTP response. Expected success: HTTP 200.
817 Raises:
818 RWSAuthenticationError: On HTTP 401.
819 RWSNotFoundError: On HTTP 404.
820 RWSHTTPError: On any other HTTP >= 400.
822 Example:
823 ```python
824 >>> await get_dns_resource(client)
825 <Response [200]>
826 ```
827 """
828 return await client.get("/ctrl/network/dns")
831async def add_route_table_entry(client: RWSClient) -> httpx.Response:
832 """
833 Add a route table entry.
835 Route: ``POST /ctrl/network/route/add``
836 ABB constraints: Supported in bootserver mode. Not supported by VC.
838 Args:
839 client: Open RWSClient instance.
841 Returns:
842 Raw HTTP response. Expected success: HTTP 204.
844 Raises:
845 RWSAuthenticationError: On HTTP 401.
846 RWSNotFoundError: On HTTP 404.
847 RWSHTTPError: On any other HTTP >= 400.
848 # ABB codes: UNSUPPORTED_MEDIA(415), BAD_REQUEST(400)
850 Example:
851 ```python
852 >>> await add_route_table_entry(client)
853 <Response [204]>
854 ```
855 """
856 return await client.post(
857 "/ctrl/network/route/add",
858 data={},
859 )
862async def options_options_to_add_route_table_entry(client: RWSClient) -> httpx.Response:
863 """
864 Options to add a route table entry.
866 Route: ``OPTIONS /ctrl/network/route/add``
867 ABB constraints: Supported in bootserver mode. Not supported by VC.
869 Args:
870 client: Open RWSClient instance.
872 Returns:
873 Raw HTTP response. Expected success: HTTP 200.
875 Raises:
876 RWSAuthenticationError: On HTTP 401.
877 RWSNotFoundError: On HTTP 404.
878 RWSHTTPError: On any other HTTP >= 400.
879 # ABB codes: See
881 Example:
882 ```python
883 >>> await options_options_to_add_route_table_entry(client)
884 <Response [200]>
885 ```
886 """
887 return await client.options("/ctrl/network/route/add")
890async def remove_route_table_entry(client: RWSClient) -> httpx.Response:
891 """
892 Remove a route table entry.
894 Route: ``POST /ctrl/network/route/remove``
895 ABB constraints: The routing entry will be removed from the network stack routing table after
896 reboot. Supported in bootserver mode. Not supported by VC.
898 Args:
899 client: Open RWSClient instance.
901 Returns:
902 Raw HTTP response. Expected success: HTTP 202.
904 Raises:
905 RWSAuthenticationError: On HTTP 401.
906 RWSNotFoundError: On HTTP 404.
907 RWSHTTPError: On any other HTTP >= 400.
908 # ABB codes: UNSUPPORTED_MEDIA(415), BAD_REQUEST(400)
910 Example:
911 ```python
912 >>> await remove_route_table_entry(client)
913 <Response [202]>
914 ```
915 """
916 return await client.post(
917 "/ctrl/network/route/remove",
918 data={},
919 )
922async def options_options_to_remove_route_table_entry(client: RWSClient) -> httpx.Response:
923 """
924 Options to remove a route table entry.
926 Route: ``OPTIONS /ctrl/network/route/remove``
927 ABB constraints: Supported in bootserver mode. Not supported by VC.
929 Args:
930 client: Open RWSClient instance.
932 Returns:
933 Raw HTTP response. Expected success: HTTP 200.
935 Raises:
936 RWSAuthenticationError: On HTTP 401.
937 RWSNotFoundError: On HTTP 404.
938 RWSHTTPError: On any other HTTP >= 400.
939 # ABB codes: See
941 Example:
942 ```python
943 >>> await options_options_to_remove_route_table_entry(client)
944 <Response [200]>
945 ```
946 """
947 return await client.options("/ctrl/network/route/remove")
950async def get_compress_resources(client: RWSClient) -> httpx.Response:
951 """
952 Get compress resources.
954 Route: ``GET /ctrl/compress``
955 ABB constraints: Not supported in bootserver mode
957 Args:
958 client: Open RWSClient instance.
960 Returns:
961 Raw HTTP response. Expected success: HTTP 200.
963 Raises:
964 RWSAuthenticationError: On HTTP 401.
965 RWSNotFoundError: On HTTP 404.
966 RWSHTTPError: On any other HTTP >= 400.
967 # ABB codes: BAD_REQUEST(400), See
969 Example:
970 ```python
971 >>> await get_compress_resources(client)
972 <Response [200]>
973 ```
974 """
975 return await client.get("/ctrl/compress")
978async def get_compress_actions(
979 client: RWSClient,
980 action: str | None = None,
981) -> httpx.Response:
982 """
983 Get compress actions.
985 Route: ``GET /ctrl/compress``
986 ABB constraints: Not supported in bootserver mode
988 Args:
989 client: Open RWSClient instance.
990 action: Query parameter. Optional.
992 Returns:
993 Raw HTTP response. Expected success: HTTP 200.
995 Raises:
996 RWSAuthenticationError: On HTTP 401.
997 RWSNotFoundError: On HTTP 404.
998 RWSHTTPError: On any other HTTP >= 400.
999 # ABB codes: BAD_REQUEST(400), See
1001 Example:
1002 ```python
1003 >>> await get_compress_actions(client)
1004 <Response [200]>
1005 ```
1006 """
1007 return await client.get(
1008 "/ctrl/compress",
1009 params={k: v for k, v in {"action": action}.items() if v is not None},
1010 )
1013async def post_compress_decompress_resource(
1014 client: RWSClient,
1015 action: str | None = None,
1016) -> httpx.Response:
1017 """
1018 Compress/Decompress Resource.
1020 Route: ``POST /ctrl/compress``
1021 ABB constraints: Compression of HOME folder, its sub directories, and SYSTEM folder is not
1022 allowed. While decompressing a compressed file or a folder to a destination path, if a
1023 file or a folder with the same name as the compressed file name is already existing, it
1024 will be overwritten by the contents of the decom...
1026 Args:
1027 client: Open RWSClient instance.
1028 action: Query parameter. Optional.
1030 Returns:
1031 Raw HTTP response. Expected success: HTTP 202.
1033 Raises:
1034 RWSAuthenticationError: On HTTP 401.
1035 RWSNotFoundError: On HTTP 404.
1036 RWSHTTPError: On any other HTTP >= 400.
1037 # ABB codes: BAD_REQUEST(400), See
1039 Example:
1040 ```python
1041 >>> await post_compress_decompress_resource(client)
1042 <Response [202]>
1043 ```
1044 """
1045 return await client.post(
1046 "/ctrl/compress",
1047 params={k: v for k, v in {"action": action}.items() if v is not None},
1048 data={},
1049 )
1052async def get_diagnostics_resources(client: RWSClient) -> httpx.Response:
1053 """
1054 Get diagnostics resources.
1056 Route: ``GET /ctrl/diagnostics``
1057 ABB constraints: Not supported in bootserver mode. Not supported on Virtual Controller.
1059 Args:
1060 client: Open RWSClient instance.
1062 Returns:
1063 Raw HTTP response. Expected success: HTTP 200.
1065 Raises:
1066 RWSAuthenticationError: On HTTP 401.
1067 RWSNotFoundError: On HTTP 404.
1068 RWSHTTPError: On any other HTTP >= 400.
1069 # ABB codes: BAD_REQUEST(400), See
1071 Example:
1072 ```python
1073 >>> await get_diagnostics_resources(client)
1074 <Response [200]>
1075 ```
1076 """
1077 return await client.get("/ctrl/diagnostics")
1080async def get_diagnostics_actions(
1081 client: RWSClient,
1082 action: str | None = None,
1083) -> httpx.Response:
1084 """
1085 Get diagnostics actions.
1087 Route: ``GET /ctrl/diagnostics``
1088 ABB constraints: Not supported in bootserver mode. Not supported on Virtual Controller.
1090 Args:
1091 client: Open RWSClient instance.
1092 action: Query parameter. Optional.
1094 Returns:
1095 Raw HTTP response. Expected success: HTTP 200.
1097 Raises:
1098 RWSAuthenticationError: On HTTP 401.
1099 RWSNotFoundError: On HTTP 404.
1100 RWSHTTPError: On any other HTTP >= 400.
1101 # ABB codes: BAD_REQUEST(400), See
1103 Example:
1104 ```python
1105 >>> await get_diagnostics_actions(client)
1106 <Response [200]>
1107 ```
1108 """
1109 return await client.get(
1110 "/ctrl/diagnostics",
1111 params={k: v for k, v in {"action": action}.items() if v is not None},
1112 )
1115async def save_system_diagnostics(
1116 client: RWSClient,
1117 action: str | None = None,
1118) -> httpx.Response:
1119 """
1120 Save system diagnostics.
1122 Route: ``POST /ctrl/diagnostics``
1123 ABB constraints: Since saving a diagnostic log is an asynchronous task, the location header
1124 can be subscribed on to get information about the status of the task. Not supported in
1125 bootserver mode. Not supported on Virtual Controller.
1127 Args:
1128 client: Open RWSClient instance.
1129 action: Query parameter. Optional.
1131 Returns:
1132 Raw HTTP response. Expected success: HTTP 202.
1134 Raises:
1135 RWSAuthenticationError: On HTTP 401.
1136 RWSNotFoundError: On HTTP 404.
1137 RWSHTTPError: On any other HTTP >= 400.
1138 # ABB codes: BAD_REQUEST(400), CONFLICT(409), UNSUPPORTED_MEDIA(415) See
1140 Example:
1141 ```python
1142 >>> await save_system_diagnostics(client)
1143 <Response [202]>
1144 ```
1145 """
1146 return await client.post(
1147 "/ctrl/diagnostics",
1148 params={k: v for k, v in {"action": action}.items() if v is not None},
1149 data={},
1150 )
1153async def subscribe_on_system_dump(
1154 client: RWSClient,
1155 identifier: str | None = None,
1156 identifier_p: str | None = None,
1157) -> httpx.Response:
1158 """
1159 Subscribe on system dump.
1161 Route: ``POST /subscription``
1162 ABB constraints: If there is no system dump available in the controller, the initial response
1163 will be empty. Also, if the subscription is created when a system dump is in progress,
1164 the initial response will be empty. if an client has already subscribed on the system
1165 dump resource(/ctrl/diagnostics), and the exist...
1167 Args:
1168 client: Open RWSClient instance.
1169 identifier: Body parameter. Optional.
1170 identifier_p: Body parameter. Optional.
1172 Returns:
1173 Raw HTTP response. Expected success: HTTP 201.
1175 Raises:
1176 RWSAuthenticationError: On HTTP 401.
1177 RWSNotFoundError: On HTTP 404.
1178 RWSHTTPError: On any other HTTP >= 400.
1179 # ABB codes: BAD_REQUEST(400), See
1181 Example:
1182 ```python
1183 >>> await subscribe_on_system_dump(client)
1184 <Response [201]>
1185 ```
1186 """
1187 return await client.post(
1188 "/subscription",
1189 data={
1190 k: v
1191 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
1192 if v is not None
1193 },
1194 )
1197async def subscribe_on_diagnostics_states_get_system_diagnostics(
1198 client: RWSClient,
1199 identifier: str | None = None,
1200 identifier_p: str | None = None,
1201) -> httpx.Response:
1202 """
1203 Subscribe on Diagnostics States (Get System Diagnostics).
1205 Route: ``POST /subscription``
1206 ABB constraints: if the subscription is created when save System Diagnostics(diagnostics.log
1207 is in progress),the state will be in "pending". Not supported in bootserver mode. Not
1208 supported on virtual controller.
1210 Args:
1211 client: Open RWSClient instance.
1212 identifier: Body parameter. Optional.
1213 identifier_p: Body parameter. Optional.
1215 Returns:
1216 Raw HTTP response. Expected success: HTTP 201.
1218 Raises:
1219 RWSAuthenticationError: On HTTP 401.
1220 RWSNotFoundError: On HTTP 404.
1221 RWSHTTPError: On any other HTTP >= 400.
1222 # ABB codes: BAD_REQUEST(400) See
1224 Example:
1225 ```python
1226 >>> await subscribe_on_diagnostics_states_get_system_diagnostics(client)
1227 <Response [201]>
1228 ```
1229 """
1230 return await client.post(
1231 "/subscription",
1232 data={
1233 k: v
1234 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
1235 if v is not None
1236 },
1237 )
1240async def get_safety_resources(client: RWSClient) -> httpx.Response:
1241 """
1242 Get safety resources.
1244 Route: ``GET /ctrl/safety``
1245 ABB constraints: Supported in bootserver mode
1247 Args:
1248 client: Open RWSClient instance.
1250 Returns:
1251 Raw HTTP response. Expected success: HTTP 200.
1253 Raises:
1254 RWSAuthenticationError: On HTTP 401.
1255 RWSNotFoundError: On HTTP 404.
1256 RWSHTTPError: On any other HTTP >= 400.
1257 # ABB codes: NOT_FOUND(404) See
1259 Example:
1260 ```python
1261 >>> await get_safety_resources(client)
1262 <Response [200]>
1263 ```
1264 """
1265 return await client.get("/ctrl/safety")
1268async def get_safety_actions(
1269 client: RWSClient,
1270 action: str | None = None,
1271) -> httpx.Response:
1272 """
1273 Get Safety actions.
1275 Route: ``GET /ctrl/safety``
1276 ABB constraints: Not supported in bootserver mode
1278 Args:
1279 client: Open RWSClient instance.
1280 action: Query parameter. Optional.
1282 Returns:
1283 Raw HTTP response. Expected success: HTTP 200.
1285 Raises:
1286 RWSAuthenticationError: On HTTP 401.
1287 RWSNotFoundError: On HTTP 404.
1288 RWSHTTPError: On any other HTTP >= 400.
1289 # ABB codes: BAD_REQUEST(400), see
1291 Example:
1292 ```python
1293 >>> await get_safety_actions(client)
1294 <Response [200]>
1295 ```
1296 """
1297 return await client.get(
1298 "/ctrl/safety",
1299 params={k: v for k, v in {"action": action}.items() if v is not None},
1300 )
1303async def load_safety_configuration_file_to_controller(
1304 client: RWSClient,
1305 action: str | None = None,
1306) -> httpx.Response:
1307 """
1308 Load Safety configuration file to controller.
1310 Route: ``POST /ctrl/safety``
1311 ABB constraints: Not supported in bootserver mode
1313 Args:
1314 client: Open RWSClient instance.
1315 action: Query parameter. Optional.
1317 Returns:
1318 Raw HTTP response. Expected success: HTTP 200.
1320 Raises:
1321 RWSAuthenticationError: On HTTP 401.
1322 RWSNotFoundError: On HTTP 404.
1323 RWSHTTPError: On any other HTTP >= 400.
1324 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404), FORBIDDEN(403)
1326 Example:
1327 ```python
1328 >>> await load_safety_configuration_file_to_controller(client)
1329 <Response [200]>
1330 ```
1331 """
1332 return await client.post(
1333 "/ctrl/safety",
1334 params={k: v for k, v in {"action": action}.items() if v is not None},
1335 data={},
1336 )
1339async def set_safety_mode_of_the_controller(
1340 client: RWSClient,
1341 action: str | None = None,
1342 mode: str | None = None,
1343) -> httpx.Response:
1344 """
1345 Set Safety Mode of the controller.
1347 Route: ``POST /ctrl/safety``
1348 ABB constraints: Not supported in bootserver mode Controller shoul be in manual mode
1350 Args:
1351 client: Open RWSClient instance.
1352 action: Query parameter. Optional.
1353 mode: Body parameter. Optional.
1355 Returns:
1356 Raw HTTP response. Expected success: HTTP 204.
1358 Raises:
1359 RWSAuthenticationError: On HTTP 401.
1360 RWSNotFoundError: On HTTP 404.
1361 RWSHTTPError: On any other HTTP >= 400.
1362 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
1364 Example:
1365 ```python
1366 >>> await set_safety_mode_of_the_controller(client)
1367 <Response [204]>
1368 ```
1369 """
1370 return await client.post(
1371 "/ctrl/safety",
1372 params={k: v for k, v in {"action": action}.items() if v is not None},
1373 data={k: v for k, v in {"mode": mode}.items() if v is not None},
1374 )
1377async def get_config_status(
1378 client: RWSClient,
1379 resource: str | None = None,
1380) -> httpx.Response:
1381 """
1382 Get Config status.
1384 Route: ``GET /ctrl/safety``
1385 ABB constraints: Not supported in bootserver mode
1387 Args:
1388 client: Open RWSClient instance.
1389 resource: Query parameter. Optional.
1391 Returns:
1392 Raw HTTP response. Expected success: HTTP 200.
1394 Raises:
1395 RWSAuthenticationError: On HTTP 401.
1396 RWSNotFoundError: On HTTP 404.
1397 RWSHTTPError: On any other HTTP >= 400.
1398 # ABB codes: BAD_REQUEST(400), see
1400 Example:
1401 ```python
1402 >>> await get_config_status(client)
1403 <Response [200]>
1404 ```
1405 """
1406 return await client.get(
1407 "/ctrl/safety",
1408 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1409 )
1412async def get_safety_mode_status(
1413 client: RWSClient,
1414 resource: str | None = None,
1415) -> httpx.Response:
1416 """
1417 Get Safety Mode status.
1419 Route: ``GET /ctrl/safety``
1420 ABB constraints: Not supported in bootserver mode
1422 Args:
1423 client: Open RWSClient instance.
1424 resource: Query parameter. Optional.
1426 Returns:
1427 Raw HTTP response. Expected success: HTTP 200.
1429 Raises:
1430 RWSAuthenticationError: On HTTP 401.
1431 RWSNotFoundError: On HTTP 404.
1432 RWSHTTPError: On any other HTTP >= 400.
1433 # ABB codes: BAD_REQUEST(400), see
1435 Example:
1436 ```python
1437 >>> await get_safety_mode_status(client)
1438 <Response [200]>
1439 ```
1440 """
1441 return await client.get(
1442 "/ctrl/safety",
1443 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1444 )
1447async def get_safety_cyclic_brake_check_status(
1448 client: RWSClient,
1449 resource: str | None = None,
1450 drivenum: str | None = None,
1451) -> httpx.Response:
1452 """
1453 Get Safety Cyclic Brake Check status.
1455 Route: ``GET /ctrl/safety``
1456 ABB constraints: Not supported in bootserver mode
1458 Args:
1459 client: Open RWSClient instance.
1460 resource: Query parameter. Optional.
1461 drivenum: Query parameter. Optional.
1463 Returns:
1464 Raw HTTP response. Expected success: HTTP 200.
1466 Raises:
1467 RWSAuthenticationError: On HTTP 401.
1468 RWSNotFoundError: On HTTP 404.
1469 RWSHTTPError: On any other HTTP >= 400.
1470 # ABB codes: BAD_REQUEST(400), see
1472 Example:
1473 ```python
1474 >>> await get_safety_cyclic_brake_check_status(client)
1475 <Response [200]>
1476 ```
1477 """
1478 return await client.get(
1479 "/ctrl/safety",
1480 params={
1481 k: v for k, v in {"resource": resource, "drivenum": drivenum}.items() if v is not None
1482 },
1483 )
1486async def get_loadoperation_status(
1487 client: RWSClient,
1488 resource: str | None = None,
1489) -> httpx.Response:
1490 """
1491 Get LoadOperation status.
1493 Route: ``GET /ctrl/safety``
1494 ABB constraints: Not supported in bootserver mode User should have Safety services privileges
1496 Args:
1497 client: Open RWSClient instance.
1498 resource: Query parameter. Optional.
1500 Returns:
1501 Raw HTTP response. Expected success: HTTP 200.
1503 Raises:
1504 RWSAuthenticationError: On HTTP 401.
1505 RWSNotFoundError: On HTTP 404.
1506 RWSHTTPError: On any other HTTP >= 400.
1507 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
1509 Example:
1510 ```python
1511 >>> await get_loadoperation_status(client)
1512 <Response [200]>
1513 ```
1514 """
1515 return await client.get(
1516 "/ctrl/safety",
1517 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1518 )
1521async def get_safety_configurations(
1522 client: RWSClient,
1523 resource: str | None = None,
1524) -> httpx.Response:
1525 """
1526 Get Safety Configurations.
1528 Route: ``GET /ctrl/safety``
1529 ABB constraints: Not supported in bootserver mode
1531 Args:
1532 client: Open RWSClient instance.
1533 resource: Query parameter. Optional.
1535 Returns:
1536 Raw HTTP response. Expected success: HTTP 200.
1538 Raises:
1539 RWSAuthenticationError: On HTTP 401.
1540 RWSNotFoundError: On HTTP 404.
1541 RWSHTTPError: On any other HTTP >= 400.
1543 Example:
1544 ```python
1545 >>> await get_safety_configurations(client)
1546 <Response [200]>
1547 ```
1548 """
1549 return await client.get(
1550 "/ctrl/safety",
1551 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1552 )
1555async def get_safety_violation_info(
1556 client: RWSClient,
1557 resource: str | None = None,
1558) -> httpx.Response:
1559 """
1560 Get Safety Violation Info.
1562 Route: ``GET /ctrl/safety``
1563 ABB constraints: Not supported in bootserver mode User should have Safety services privileges
1565 Args:
1566 client: Open RWSClient instance.
1567 resource: Query parameter. Optional.
1569 Returns:
1570 Raw HTTP response. Expected success: HTTP 200.
1572 Raises:
1573 RWSAuthenticationError: On HTTP 401.
1574 RWSNotFoundError: On HTTP 404.
1575 RWSHTTPError: On any other HTTP >= 400.
1576 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
1578 Example:
1579 ```python
1580 >>> await get_safety_violation_info(client)
1581 <Response [200]>
1582 ```
1583 """
1584 return await client.get(
1585 "/ctrl/safety",
1586 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1587 )
1590async def post_unlock_the_safety_configuration(
1591 client: RWSClient,
1592 action: str | None = None,
1593) -> httpx.Response:
1594 """
1595 Unlock the safety configuration.
1597 Route: ``POST /ctrl/safety``
1598 ABB constraints: Not supported in bootserver mode
1600 Args:
1601 client: Open RWSClient instance.
1602 action: Query parameter. Optional.
1604 Returns:
1605 Raw HTTP response. Expected success: HTTP 204.
1607 Raises:
1608 RWSAuthenticationError: On HTTP 401.
1609 RWSNotFoundError: On HTTP 404.
1610 RWSHTTPError: On any other HTTP >= 400.
1611 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404), FORBIDDEN(403)
1613 Example:
1614 ```python
1615 >>> await post_unlock_the_safety_configuration(client)
1616 <Response [204]>
1617 ```
1618 """
1619 return await client.post(
1620 "/ctrl/safety",
1621 params={k: v for k, v in {"action": action}.items() if v is not None},
1622 data={},
1623 )
1626async def post_software_sync_acknowledgement(
1627 client: RWSClient,
1628 action: str | None = None,
1629 index: str | None = None,
1630) -> httpx.Response:
1631 """
1632 Software Sync Acknowledgement.
1634 Route: ``POST /ctrl/safety``
1635 ABB constraints: Not supported in bootserver mode
1637 Args:
1638 client: Open RWSClient instance.
1639 action: Query parameter. Optional.
1640 index: Body parameter. Optional.
1642 Returns:
1643 Raw HTTP response. Expected success: HTTP 204.
1645 Raises:
1646 RWSAuthenticationError: On HTTP 401.
1647 RWSNotFoundError: On HTTP 404.
1648 RWSHTTPError: On any other HTTP >= 400.
1649 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404), FORBIDDEN(403)
1651 Example:
1652 ```python
1653 >>> await post_software_sync_acknowledgement(client)
1654 <Response [204]>
1655 ```
1656 """
1657 return await client.post(
1658 "/ctrl/safety",
1659 params={k: v for k, v in {"action": action}.items() if v is not None},
1660 data={k: v for k, v in {"index": index}.items() if v is not None},
1661 )
1664async def add_validation_info(
1665 client: RWSClient,
1666 action: str | None = None,
1667 validated_by: str | None = None,
1668) -> httpx.Response:
1669 """
1670 Add Validation info.
1672 Route: ``POST /ctrl/safety``
1673 ABB constraints: Must have grant UAS_SAFETY_SERVICES for method to succeed Not supported in
1674 bootserver mode
1676 Args:
1677 client: Open RWSClient instance.
1678 action: Query parameter. Optional.
1679 validated_by: Body parameter. Optional.
1681 Returns:
1682 Raw HTTP response. Expected success: HTTP 204.
1684 Raises:
1685 RWSAuthenticationError: On HTTP 401.
1686 RWSNotFoundError: On HTTP 404.
1687 RWSHTTPError: On any other HTTP >= 400.
1688 # ABB codes: BAD_REQUEST(400),FORBIDDEN(403)
1690 Example:
1691 ```python
1692 >>> await add_validation_info(client)
1693 <Response [204]>
1694 ```
1695 """
1696 return await client.post(
1697 "/ctrl/safety",
1698 params={k: v for k, v in {"action": action}.items() if v is not None},
1699 data={k: v for k, v in {"validated_by": validated_by}.items() if v is not None},
1700 )
1703async def remove_validation_info(
1704 client: RWSClient,
1705 action: str | None = None,
1706) -> httpx.Response:
1707 """
1708 Remove Validation info.
1710 Route: ``POST /ctrl/safety``
1711 ABB constraints: Must have grant UAS_SAFETY_SERVICES for method to succeed Not supported in
1712 bootserver mode
1714 Args:
1715 client: Open RWSClient instance.
1716 action: Query parameter. Optional.
1718 Returns:
1719 Raw HTTP response. Expected success: HTTP 204.
1721 Raises:
1722 RWSAuthenticationError: On HTTP 401.
1723 RWSNotFoundError: On HTTP 404.
1724 RWSHTTPError: On any other HTTP >= 400.
1725 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
1727 Example:
1728 ```python
1729 >>> await remove_validation_info(client)
1730 <Response [204]>
1731 ```
1732 """
1733 return await client.post(
1734 "/ctrl/safety",
1735 params={k: v for k, v in {"action": action}.items() if v is not None},
1736 data={},
1737 )
1740async def set_reset_safety_controller(
1741 client: RWSClient,
1742 action: str | None = None,
1743) -> httpx.Response:
1744 """
1745 Set Reset Safety Controller.
1747 Route: ``POST /ctrl/safety``
1748 ABB constraints: Not supported in bootserver mode User should have Safety services privileges
1750 Args:
1751 client: Open RWSClient instance.
1752 action: Query parameter. Optional.
1754 Returns:
1755 Raw HTTP response. Expected success: HTTP 204.
1757 Raises:
1758 RWSAuthenticationError: On HTTP 401.
1759 RWSNotFoundError: On HTTP 404.
1760 RWSHTTPError: On any other HTTP >= 400.
1761 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
1763 Example:
1764 ```python
1765 >>> await set_reset_safety_controller(client)
1766 <Response [204]>
1767 ```
1768 """
1769 return await client.post(
1770 "/ctrl/safety",
1771 params={k: v for k, v in {"action": action}.items() if v is not None},
1772 data={},
1773 )
1776async def get_options_resource(
1777 client: RWSClient,
1778 option_to_verify: str,
1779) -> httpx.Response:
1780 """
1781 Get options resource.
1783 Route: ``GET /ctrl/options/{option to verify}``
1784 ABB constraints: The option to be verified is to provided as part of the request url. Also,
1785 the url is case sensitive. see example above. Not Supported in bootserver mode
1787 Args:
1788 client: Open RWSClient instance.
1789 option_to_verify: URL path parameter.
1791 Returns:
1792 Raw HTTP response. Expected success: HTTP 200.
1794 Raises:
1795 RWSAuthenticationError: On HTTP 401.
1796 RWSNotFoundError: On HTTP 404.
1797 RWSHTTPError: On any other HTTP >= 400.
1798 # ABB codes: NOT_FOUND(404)
1800 Example:
1801 ```python
1802 >>> await get_options_resource(client, "option_to_verify_value")
1803 <Response [200]>
1804 ```
1805 """
1806 return await client.get(f"/ctrl/options/{option_to_verify}")
1809async def get_check_robotware_version_compatibility_with_contorller_hardware(
1810 client: RWSClient,
1811 robotware_version: str,
1812) -> httpx.Response:
1813 """
1814 Check Robotware version compatibility with contorller hardware.
1816 Route: ``GET /ctrl/compatibility/{robotware version}``
1817 ABB constraints: Supported only in RC. Supported in bootserver mode.
1819 Args:
1820 client: Open RWSClient instance.
1821 robotware_version: URL path parameter.
1823 Returns:
1824 Raw HTTP response. Expected success: HTTP 200.
1826 Raises:
1827 RWSAuthenticationError: On HTTP 401.
1828 RWSNotFoundError: On HTTP 404.
1829 RWSHTTPError: On any other HTTP >= 400.
1830 # ABB codes: NOT FOUND(404), BAD REQUEST(400)
1832 Example:
1833 ```python
1834 >>> await get_check_robotware_version_compatibility_with_contorller_hardware(
1835 ... client,
1836 ... "robotware_version_value"
1837 ... )
1838 <Response [200]>
1839 ```
1840 """
1841 return await client.get(f"/ctrl/compatibility/{robotware_version}")
1844async def get_virtual_time_resources(client: RWSClient) -> httpx.Response:
1845 """
1846 Get Virtual Time resources.
1848 Route: ``GET /ctrl/virtualtime``
1849 ABB constraints: Not supported in bootserver mode Supported only in VC.
1851 Args:
1852 client: Open RWSClient instance.
1854 Returns:
1855 Raw HTTP response. Expected success: HTTP 200.
1857 Raises:
1858 RWSAuthenticationError: On HTTP 401.
1859 RWSNotFoundError: On HTTP 404.
1860 RWSHTTPError: On any other HTTP >= 400.
1861 # ABB codes: NOT_FOUND(404), see
1863 Example:
1864 ```python
1865 >>> await get_virtual_time_resources(client)
1866 <Response [200]>
1867 ```
1868 """
1869 return await client.get("/ctrl/virtualtime")
1872async def get_virtualtime(client: RWSClient) -> httpx.Response:
1873 """
1874 Get Virtualtime.
1876 Route: ``GET /ctrl/virtualtime/vttime``
1877 ABB constraints: Supported only in VC mode
1879 Args:
1880 client: Open RWSClient instance.
1882 Returns:
1883 Raw HTTP response. Expected success: HTTP 200.
1885 Raises:
1886 RWSAuthenticationError: On HTTP 401.
1887 RWSNotFoundError: On HTTP 404.
1888 RWSHTTPError: On any other HTTP >= 400.
1889 # ABB codes: Not Found(404)
1891 Example:
1892 ```python
1893 >>> await get_virtualtime(client)
1894 <Response [200]>
1895 ```
1896 """
1897 return await client.get("/ctrl/virtualtime/vttime")
1900async def get_vttimeslice_value(client: RWSClient) -> httpx.Response:
1901 """
1902 Get VTTimeslice Value.
1904 Route: ``GET /ctrl/virtualtime/vttimeslice``
1905 ABB constraints: Supported only in VC. vttimeslice value is in ms. Not supported in
1906 bootserver mode.
1908 Args:
1909 client: Open RWSClient instance.
1911 Returns:
1912 Raw HTTP response. Expected success: HTTP 200.
1914 Raises:
1915 RWSAuthenticationError: On HTTP 401.
1916 RWSNotFoundError: On HTTP 404.
1917 RWSHTTPError: On any other HTTP >= 400.
1918 # ABB codes: NOT FOUND(404),
1920 Example:
1921 ```python
1922 >>> await get_vttimeslice_value(client)
1923 <Response [200]>
1924 ```
1925 """
1926 return await client.get("/ctrl/virtualtime/vttimeslice")
1929async def get_actions_on_vttimeslice(
1930 client: RWSClient,
1931 action: str | None = None,
1932) -> httpx.Response:
1933 """
1934 Actions on VTTimeslice.
1936 Route: ``GET /ctrl/virtualtime/vttimeslice``
1937 ABB constraints: Supported only in VC. vttimeslice value is in ms. Not supported in
1938 bootserver mode.
1940 Args:
1941 client: Open RWSClient instance.
1942 action: Query parameter. Optional.
1944 Returns:
1945 Raw HTTP response. Expected success: HTTP 200.
1947 Raises:
1948 RWSAuthenticationError: On HTTP 401.
1949 RWSNotFoundError: On HTTP 404.
1950 RWSHTTPError: On any other HTTP >= 400.
1951 # ABB codes: BAD REQUEST(400)
1953 Example:
1954 ```python
1955 >>> await get_actions_on_vttimeslice(client)
1956 <Response [200]>
1957 ```
1958 """
1959 return await client.get(
1960 "/ctrl/virtualtime/vttimeslice",
1961 params={k: v for k, v in {"action": action}.items() if v is not None},
1962 )
1965async def set_vttimeslice_value(
1966 client: RWSClient,
1967 vttimeslice: str | None = None,
1968) -> httpx.Response:
1969 """
1970 Set VTTimeslice Value.
1972 Route: ``POST /ctrl/virtualtime/vttimeslice``
1973 ABB constraints: Supported only in VC. Value should be in ms. For values < 10 ms. vttimeslice
1974 will be set to a default value of 10 ms. Not supported in bootserver mode.
1976 Args:
1977 client: Open RWSClient instance.
1978 vttimeslice: Body parameter. Optional.
1980 Returns:
1981 Raw HTTP response. Expected success: HTTP 204.
1983 Raises:
1984 RWSAuthenticationError: On HTTP 401.
1985 RWSNotFoundError: On HTTP 404.
1986 RWSHTTPError: On any other HTTP >= 400.
1987 # ABB codes: NOT FOUND(404)
1989 Example:
1990 ```python
1991 >>> await set_vttimeslice_value(client)
1992 <Response [204]>
1993 ```
1994 """
1995 return await client.post(
1996 "/ctrl/virtualtime/vttimeslice",
1997 data={k: v for k, v in {"vttimeslice": vttimeslice}.items() if v is not None},
1998 )
2001async def get_speed_of_virtual_time(client: RWSClient) -> httpx.Response:
2002 """
2003 Get Speed of Virtual Time.
2005 Route: ``GET /ctrl/virtualtime/vtspeed``
2006 ABB constraints: Not supported in bootserver mode Supported only in VC.
2008 Args:
2009 client: Open RWSClient instance.
2011 Returns:
2012 Raw HTTP response. Expected success: HTTP 200.
2014 Raises:
2015 RWSAuthenticationError: On HTTP 401.
2016 RWSNotFoundError: On HTTP 404.
2017 RWSHTTPError: On any other HTTP >= 400.
2018 # ABB codes: BAD_REQUEST(400)
2020 Example:
2021 ```python
2022 >>> await get_speed_of_virtual_time(client)
2023 <Response [200]>
2024 ```
2025 """
2026 return await client.get("/ctrl/virtualtime/vtspeed")
2029async def get_actions_on_vtspeed(
2030 client: RWSClient,
2031 action: str | None = None,
2032) -> httpx.Response:
2033 """
2034 Get actions on a VTSpeed.
2036 Route: ``GET /ctrl/virtualtime/vtspeed``
2037 ABB constraints: Not supported in bootserver mode Supported only in VC.
2039 Args:
2040 client: Open RWSClient instance.
2041 action: Query parameter. Optional.
2043 Returns:
2044 Raw HTTP response. Expected success: HTTP 200.
2046 Raises:
2047 RWSAuthenticationError: On HTTP 401.
2048 RWSNotFoundError: On HTTP 404.
2049 RWSHTTPError: On any other HTTP >= 400.
2050 # ABB codes: HTTP Errors, see
2052 Example:
2053 ```python
2054 >>> await get_actions_on_vtspeed(client)
2055 <Response [200]>
2056 ```
2057 """
2058 return await client.get(
2059 "/ctrl/virtualtime/vtspeed",
2060 params={k: v for k, v in {"action": action}.items() if v is not None},
2061 )
2064async def set_speed_of_virtualtime(
2065 client: RWSClient,
2066 vtspeed: str | None = None,
2067) -> httpx.Response:
2068 """
2069 Set Speed of Virtualtime.
2071 Route: ``POST /ctrl/virtualtime/vtspeed``
2072 ABB constraints: Supported only in VC. Not supported in bootserver mode.
2074 Args:
2075 client: Open RWSClient instance.
2076 vtspeed: Body parameter. Optional.
2078 Returns:
2079 Raw HTTP response. Expected success: HTTP 204.
2081 Raises:
2082 RWSAuthenticationError: On HTTP 401.
2083 RWSNotFoundError: On HTTP 404.
2084 RWSHTTPError: On any other HTTP >= 400.
2085 # ABB codes: BAD REQUEST(400)
2087 Example:
2088 ```python
2089 >>> await set_speed_of_virtualtime(client)
2090 <Response [204]>
2091 ```
2092 """
2093 return await client.post(
2094 "/ctrl/virtualtime/vtspeed",
2095 data={k: v for k, v in {"vtspeed": vtspeed}.items() if v is not None},
2096 )
2099async def get_state_of_virtual_time(client: RWSClient) -> httpx.Response:
2100 """
2101 Get State of Virtual Time.
2103 Route: ``GET /ctrl/virtualtime/vtstate``
2104 ABB constraints: Not supported in bootserver mode Supported only in VC.
2106 Args:
2107 client: Open RWSClient instance.
2109 Returns:
2110 Raw HTTP response. Expected success: HTTP 200.
2112 Raises:
2113 RWSAuthenticationError: On HTTP 401.
2114 RWSNotFoundError: On HTTP 404.
2115 RWSHTTPError: On any other HTTP >= 400.
2116 # ABB codes: BAD_REQUEST(400)
2118 Example:
2119 ```python
2120 >>> await get_state_of_virtual_time(client)
2121 <Response [200]>
2122 ```
2123 """
2124 return await client.get("/ctrl/virtualtime/vtstate")
2127async def get_actions_on_vtstate(
2128 client: RWSClient,
2129 action: str | None = None,
2130) -> httpx.Response:
2131 """
2132 Get actions on a VTState.
2134 Route: ``GET /ctrl/virtualtime/vtstate``
2135 ABB constraints: Not supported in bootserver mode Supported only in VC.
2137 Args:
2138 client: Open RWSClient instance.
2139 action: Query parameter. Optional.
2141 Returns:
2142 Raw HTTP response. Expected success: HTTP 200.
2144 Raises:
2145 RWSAuthenticationError: On HTTP 401.
2146 RWSNotFoundError: On HTTP 404.
2147 RWSHTTPError: On any other HTTP >= 400.
2148 # ABB codes: HTTP Errors, see
2150 Example:
2151 ```python
2152 >>> await get_actions_on_vtstate(client)
2153 <Response [200]>
2154 ```
2155 """
2156 return await client.get(
2157 "/ctrl/virtualtime/vtstate",
2158 params={k: v for k, v in {"action": action}.items() if v is not None},
2159 )
2162async def set_state_of_virtualtime(
2163 client: RWSClient,
2164 vtstate: str | None = None,
2165) -> httpx.Response:
2166 """
2167 Set State of Virtualtime.
2169 Route: ``POST /ctrl/virtualtime/vtstate``
2170 ABB constraints: Supported only in VC. Not supported in bootserver mode.
2172 Args:
2173 client: Open RWSClient instance.
2174 vtstate: Body parameter. Optional.
2176 Returns:
2177 Raw HTTP response. Expected success: HTTP 204.
2179 Raises:
2180 RWSAuthenticationError: On HTTP 401.
2181 RWSNotFoundError: On HTTP 404.
2182 RWSHTTPError: On any other HTTP >= 400.
2183 # ABB codes: BAD REQUEST(400)
2185 Example:
2186 ```python
2187 >>> await set_state_of_virtualtime(client)
2188 <Response [204]>
2189 ```
2190 """
2191 return await client.post(
2192 "/ctrl/virtualtime/vtstate",
2193 data={k: v for k, v in {"vtstate": vtstate}.items() if v is not None},
2194 )
2197async def post_vt_run(client: RWSClient) -> httpx.Response:
2198 """
2199 VT Run.
2201 Route: ``POST /ctrl/virtualtime/vtrun``
2202 ABB constraints: Supported only in VC. Not supported in bootserver mode.
2204 Args:
2205 client: Open RWSClient instance.
2207 Returns:
2208 Raw HTTP response. Expected success: HTTP 204.
2210 Raises:
2211 RWSAuthenticationError: On HTTP 401.
2212 RWSNotFoundError: On HTTP 404.
2213 RWSHTTPError: On any other HTTP >= 400.
2214 # ABB codes: BAD REQUEST(400)
2216 Example:
2217 ```python
2218 >>> await post_vt_run(client)
2219 <Response [204]>
2220 ```
2221 """
2222 return await client.post(
2223 "/ctrl/virtualtime/vtrun",
2224 data={},
2225 )