Coverage for abb_rws_client_python_rw6/rws/iosystem/iosystem.py: 100%
49 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 → IO Service → Get IO System 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_io_system_resources(client: RWSClient) -> httpx.Response:
20 """
21 Get IO System resources.
23 Route: ``GET /rw/iosystem``
24 ABB constraints: Not 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: BAD REQUEST(400)
38 Example:
39 ```python
40 >>> await get_io_system_resources(client)
41 <Response [200]>
42 ```
43 """
44 return await client.get("/rw/iosystem")
47async def get_io_network(
48 client: RWSClient,
49 network: str,
50) -> httpx.Response:
51 """
52 Get IO Network.
54 Route: ``GET /rw/iosystem/networks/{network}``
55 ABB constraints: Not supported in bootserver mode
57 Args:
58 client: Open RWSClient instance.
59 network: URL path parameter.
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: BAD REQUEST(400)
70 Example:
71 ```python
72 >>> await get_io_network(client, "network_value")
73 <Response [200]>
74 ```
75 """
76 return await client.get(f"/rw/iosystem/networks/{network}")
79async def get_io_network_actions(
80 client: RWSClient,
81 network: str,
82 action: str | None = None,
83) -> httpx.Response:
84 """
85 Get IO Network actions.
87 Route: ``GET /rw/iosystem/networks/{network}``
88 ABB constraints: Not supported in bootserver mode
90 Args:
91 client: Open RWSClient instance.
92 network: URL path parameter.
93 action: Query parameter. Optional.
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: BAD REQUEST(400)
104 Example:
105 ```python
106 >>> await get_io_network_actions(client, "network_value")
107 <Response [200]>
108 ```
109 """
110 return await client.get(
111 f"/rw/iosystem/networks/{network}",
112 params={k: v for k, v in {"action": action}.items() if v is not None},
113 )
116async def update_io_network(
117 client: RWSClient,
118 network: str,
119 action: str | None = None,
120 lstate: str | None = None,
121) -> httpx.Response:
122 """
123 Update IO Network.
125 Route: ``POST /rw/iosystem/networks/{network}``
126 ABB constraints: Not supported in bootserver mode
128 Args:
129 client: Open RWSClient instance.
130 network: URL path parameter.
131 action: Query parameter. Optional.
132 lstate: Body parameter. Optional.
134 Returns:
135 Raw HTTP response. Expected success: HTTP 204.
137 Raises:
138 RWSAuthenticationError: On HTTP 401.
139 RWSNotFoundError: On HTTP 404.
140 RWSHTTPError: On any other HTTP >= 400.
141 # ABB codes: BAD REQUEST(400)
143 Example:
144 ```python
145 >>> await update_io_network(client, "network_value")
146 <Response [204]>
147 ```
148 """
149 return await client.post(
150 f"/rw/iosystem/networks/{network}",
151 params={k: v for k, v in {"action": action}.items() if v is not None},
152 data={k: v for k, v in {"lstate": lstate}.items() if v is not None},
153 )
156async def subscribe_io_network(
157 client: RWSClient,
158 identifier: str | None = None,
159 identifier_p: str | None = None,
160) -> httpx.Response:
161 """
162 Subscribe IO Network.
164 Route: ``POST /subscription``
165 ABB constraints: Not supported in bootserver mode
167 Args:
168 client: Open RWSClient instance.
169 identifier: Body parameter. Optional.
170 identifier_p: Body parameter. Optional.
172 Returns:
173 Raw HTTP response. Expected success: HTTP 201.
175 Raises:
176 RWSAuthenticationError: On HTTP 401.
177 RWSNotFoundError: On HTTP 404.
178 RWSHTTPError: On any other HTTP >= 400.
179 # ABB codes: BAD REQUEST(400)
181 Example:
182 ```python
183 >>> await subscribe_io_network(client)
184 <Response [201]>
185 ```
186 """
187 return await client.post(
188 "/subscription",
189 data={
190 k: v
191 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
192 if v is not None
193 },
194 )
197async def get_io_network_configuration_properties(
198 client: RWSClient,
199 network: str,
200 resource: str | None = None,
201 configtype: str | None = None,
202) -> httpx.Response:
203 """
204 Get IO Network Configuration Properties.
206 Route: ``GET /rw/iosystem/networks/{network}``
207 ABB constraints: "configtype_value" should be 1 (or) 2 (or) 3 (2= general configuration , 1 =
208 runtime configuration, 3 = both) Not supported in bootserver mode
210 Args:
211 client: Open RWSClient instance.
212 network: URL path parameter.
213 resource: Query parameter. Optional.
214 configtype: Query parameter. Optional.
216 Returns:
217 Raw HTTP response. Expected success: HTTP 200.
219 Raises:
220 RWSAuthenticationError: On HTTP 401.
221 RWSNotFoundError: On HTTP 404.
222 RWSHTTPError: On any other HTTP >= 400.
223 # ABB codes: BAD REQUEST(400)
225 Example:
226 ```python
227 >>> await get_io_network_configuration_properties(client, "network_value")
228 <Response [200]>
229 ```
230 """
231 return await client.get(
232 f"/rw/iosystem/networks/{network}",
233 params={
234 k: v
235 for k, v in {"resource": resource, "configtype": configtype}.items()
236 if v is not None
237 },
238 )
241async def update_io_network_configuration_type(
242 client: RWSClient,
243 network: str,
244 action: str | None = None,
245 config_type: str | None = None,
246) -> httpx.Response:
247 """
248 Update IO Network Configuration Type.
250 Route: ``POST /rw/iosystem/networks/{network}``
251 ABB constraints: Not supported in bootserver mode
253 Args:
254 client: Open RWSClient instance.
255 network: URL path parameter.
256 action: Query parameter. Optional.
257 config_type: Body parameter. Optional.
259 Returns:
260 Raw HTTP response. Expected success: HTTP 204.
262 Raises:
263 RWSAuthenticationError: On HTTP 401.
264 RWSNotFoundError: On HTTP 404.
265 RWSHTTPError: On any other HTTP >= 400.
266 # ABB codes: BAD_REQUEST(400)
268 Example:
269 ```python
270 >>> await update_io_network_configuration_type(client, "network_value")
271 <Response [204]>
272 ```
273 """
274 return await client.post(
275 f"/rw/iosystem/networks/{network}",
276 params={k: v for k, v in {"action": action}.items() if v is not None},
277 data={k: v for k, v in {"config_type": config_type}.items() if v is not None},
278 )
281async def get_io_device(
282 client: RWSClient,
283 device: str,
284) -> httpx.Response:
285 """
286 Get IO Device.
288 Route: ``GET /rw/iosystem/devices/{device}``
289 ABB constraints: Not supported in bootserver mode
291 Args:
292 client: Open RWSClient instance.
293 device: URL path parameter.
295 Returns:
296 Raw HTTP response. Expected success: HTTP 200.
298 Raises:
299 RWSAuthenticationError: On HTTP 401.
300 RWSNotFoundError: On HTTP 404.
301 RWSHTTPError: On any other HTTP >= 400.
302 # ABB codes: BAD_REQUEST(400)
304 Example:
305 ```python
306 >>> await get_io_device(client, "device_value")
307 <Response [200]>
308 ```
309 """
310 return await client.get(f"/rw/iosystem/devices/{device}")
313async def get_io_device_actions(
314 client: RWSClient,
315 device: str,
316 action: str | None = None,
317) -> httpx.Response:
318 """
319 Get IO Device actions.
321 Route: ``GET /rw/iosystem/devices/{device}``
322 ABB constraints: Not supported in bootserver mode
324 Args:
325 client: Open RWSClient instance.
326 device: URL path parameter.
327 action: Query parameter. Optional.
329 Returns:
330 Raw HTTP response. Expected success: HTTP 200.
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)
338 Example:
339 ```python
340 >>> await get_io_device_actions(client, "device_value")
341 <Response [200]>
342 ```
343 """
344 return await client.get(
345 f"/rw/iosystem/devices/{device}",
346 params={k: v for k, v in {"action": action}.items() if v is not None},
347 )
350async def update_io_device(
351 client: RWSClient,
352 device: str,
353 action: str | None = None,
354 lstate: str | None = None,
355) -> httpx.Response:
356 """
357 Update IO Device.
359 Route: ``POST /rw/iosystem/devices/{device}``
360 ABB constraints: Not supported in bootserver mode
362 Args:
363 client: Open RWSClient instance.
364 device: URL path parameter.
365 action: Query parameter. Optional.
366 lstate: Body parameter. Optional.
368 Returns:
369 Raw HTTP response. Expected success: HTTP 204.
371 Raises:
372 RWSAuthenticationError: On HTTP 401.
373 RWSNotFoundError: On HTTP 404.
374 RWSHTTPError: On any other HTTP >= 400.
375 # ABB codes: BAD REQUEST(400)
377 Example:
378 ```python
379 >>> await update_io_device(client, "device_value")
380 <Response [204]>
381 ```
382 """
383 return await client.post(
384 f"/rw/iosystem/devices/{device}",
385 params={k: v for k, v in {"action": action}.items() if v is not None},
386 data={k: v for k, v in {"lstate": lstate}.items() if v is not None},
387 )
390async def subscribe_io_device(
391 client: RWSClient,
392 identifier: str | None = None,
393 identifier_p: str | None = None,
394) -> httpx.Response:
395 """
396 Subscribe IO Device.
398 Route: ``POST /subscription``
399 ABB constraints: Not supported in bootserver mode
401 Args:
402 client: Open RWSClient instance.
403 identifier: Body parameter. Optional.
404 identifier_p: Body parameter. Optional.
406 Returns:
407 Raw HTTP response. Expected success: HTTP 201.
409 Raises:
410 RWSAuthenticationError: On HTTP 401.
411 RWSNotFoundError: On HTTP 404.
412 RWSHTTPError: On any other HTTP >= 400.
413 # ABB codes: BAD REQUEST(400)
415 Example:
416 ```python
417 >>> await subscribe_io_device(client)
418 <Response [201]>
419 ```
420 """
421 return await client.post(
422 "/subscription",
423 data={
424 k: v
425 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
426 if v is not None
427 },
428 )
431async def set_input_data(
432 client: RWSClient,
433 device: str,
434 action: str | None = None,
435 startbyte: str | None = None,
436 signaldata: str | None = None,
437 datamask: str | None = None,
438) -> httpx.Response:
439 """
440 Set input data.
442 Route: ``POST /rw/iosystem/devices/{device}``
443 ABB constraints: Only supported in Virtual Controller. If input data is 4 bytes long, start
444 byte can have values ranging from 0 to 3. Datamask/signal data can have values ranging
445 from 0 to 255 (since it is accessed as 1 byte long). If datamask/signal data is greater
446 than 255 (1 byte long), only first 8 bits is us...
448 Args:
449 client: Open RWSClient instance.
450 device: URL path parameter.
451 action: Query parameter. Optional.
452 startbyte: Body parameter. Optional.
453 signaldata: Body parameter. Optional.
454 datamask: Body parameter. Optional.
456 Returns:
457 Raw HTTP response. Expected success: HTTP 204.
459 Raises:
460 RWSAuthenticationError: On HTTP 401.
461 RWSNotFoundError: On HTTP 404.
462 RWSHTTPError: On any other HTTP >= 400.
463 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
465 Example:
466 ```python
467 >>> await set_input_data(client, "device_value")
468 <Response [204]>
469 ```
470 """
471 return await client.post(
472 f"/rw/iosystem/devices/{device}",
473 params={k: v for k, v in {"action": action}.items() if v is not None},
474 data={
475 k: v
476 for k, v in {
477 "startbyte": startbyte,
478 "signaldata": signaldata,
479 "datamask": datamask,
480 }.items()
481 if v is not None
482 },
483 )
486async def set_output_data(
487 client: RWSClient,
488 device: str,
489 action: str | None = None,
490 startbyte: str | None = None,
491 signaldata: str | None = None,
492 datamask: str | None = None,
493) -> httpx.Response:
494 """
495 Set output data.
497 Route: ``POST /rw/iosystem/devices/{device}``
498 ABB constraints: Only supported in Virtual Controller. If input data is 4 bytes long, start
499 byte can have values ranging from 0 to 3. Datamask/signal data can have values ranging
500 from 0 to 255 (since it is accessed as 1 byte long). If datamask/signal data is greater
501 than 255 (1 byte long), only first 8 bits is us...
503 Args:
504 client: Open RWSClient instance.
505 device: URL path parameter.
506 action: Query parameter. Optional.
507 startbyte: Body parameter. Optional.
508 signaldata: Body parameter. Optional.
509 datamask: Body parameter. Optional.
511 Returns:
512 Raw HTTP response. Expected success: HTTP 204.
514 Raises:
515 RWSAuthenticationError: On HTTP 401.
516 RWSNotFoundError: On HTTP 404.
517 RWSHTTPError: On any other HTTP >= 400.
518 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
520 Example:
521 ```python
522 >>> await set_output_data(client, "device_value")
523 <Response [204]>
524 ```
525 """
526 return await client.post(
527 f"/rw/iosystem/devices/{device}",
528 params={k: v for k, v in {"action": action}.items() if v is not None},
529 data={
530 k: v
531 for k, v in {
532 "startbyte": startbyte,
533 "signaldata": signaldata,
534 "datamask": datamask,
535 }.items()
536 if v is not None
537 },
538 )
541async def get_io_device_configuration_properties(
542 client: RWSClient,
543 device: str,
544 resource: str | None = None,
545 configtype: str | None = None,
546) -> httpx.Response:
547 """
548 Get IO Device Configuration Properties.
550 Route: ``GET /rw/iosystem/devices/{device}``
551 ABB constraints: "configtype_value" should be 1 (or) 2 (or) 3 (2= general configuration , 1 =
552 runtime configuration , 3 = both) Not supported in bootserver mode
554 Args:
555 client: Open RWSClient instance.
556 device: URL path parameter.
557 resource: Query parameter. Optional.
558 configtype: Query parameter. Optional.
560 Returns:
561 Raw HTTP response. Expected success: HTTP 200.
563 Raises:
564 RWSAuthenticationError: On HTTP 401.
565 RWSNotFoundError: On HTTP 404.
566 RWSHTTPError: On any other HTTP >= 400.
567 # ABB codes: BAD REQUEST(400)
569 Example:
570 ```python
571 >>> await get_io_device_configuration_properties(client, "device_value")
572 <Response [200]>
573 ```
574 """
575 return await client.get(
576 f"/rw/iosystem/devices/{device}",
577 params={
578 k: v
579 for k, v in {"resource": resource, "configtype": configtype}.items()
580 if v is not None
581 },
582 )
585async def get_eio_device_status_information(
586 client: RWSClient,
587 network: str,
588 device: str,
589) -> httpx.Response:
590 """
591 Get eio device status information.
593 Route: ``GET /rw/iosystem/devices/{network}/{device}/upgradeinfo``
594 ABB constraints: Not supported in bootserver mode Applicable only for RC
596 Args:
597 client: Open RWSClient instance.
598 network: URL path parameter.
599 device: URL path parameter.
601 Returns:
602 Raw HTTP response. Expected success: HTTP 200.
604 Raises:
605 RWSAuthenticationError: On HTTP 401.
606 RWSNotFoundError: On HTTP 404.
607 RWSHTTPError: On any other HTTP >= 400.
608 # ABB codes: BAD_REQUEST(400)
610 Example:
611 ```python
612 >>> await get_eio_device_status_information(client, "network_value", "device_value")
613 <Response [200]>
614 ```
615 """
616 return await client.get(f"/rw/iosystem/devices/{network}/{device}/upgradeinfo")
619async def post_send_device_command(
620 client: RWSClient,
621 device: str,
622 commandname: str | None = None,
623 value: str | None = None,
624 valuelength: str | None = None,
625 timeout: str | None = None,
626) -> httpx.Response:
627 """
628 Send Device Command.
630 Route: ``POST /rw/iosystem/devices/{device}/command``
631 ABB constraints: Applicable only for RC. Not supported in bootserver mode.
633 Args:
634 client: Open RWSClient instance.
635 device: URL path parameter.
636 commandname: Body parameter. Optional.
637 value: Body parameter. Optional.
638 valuelength: Body parameter. Optional.
639 timeout: Body parameter. Optional.
641 Returns:
642 Raw HTTP response. Expected success: HTTP 204.
644 Raises:
645 RWSAuthenticationError: On HTTP 401.
646 RWSNotFoundError: On HTTP 404.
647 RWSHTTPError: On any other HTTP >= 400.
648 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
650 Example:
651 ```python
652 >>> await post_send_device_command(client, "device_value")
653 <Response [204]>
654 ```
655 """
656 return await client.post(
657 f"/rw/iosystem/devices/{device}/command",
658 data={
659 k: v
660 for k, v in {
661 "commandname": commandname,
662 "value": value,
663 "valuelength": valuelength,
664 "timeout": timeout,
665 }.items()
666 if v is not None
667 },
668 )
671async def options_send_device_command_actions(
672 client: RWSClient,
673 device: str,
674) -> httpx.Response:
675 """
676 Send Device Command actions.
678 Route: ``OPTIONS /rw/iosystem/devices/{device}/command``
679 ABB constraints: Not supported in bootserver mode.
681 Args:
682 client: Open RWSClient instance.
683 device: URL path parameter.
685 Returns:
686 Raw HTTP response. Expected success: HTTP 200.
688 Raises:
689 RWSAuthenticationError: On HTTP 401.
690 RWSNotFoundError: On HTTP 404.
691 RWSHTTPError: On any other HTTP >= 400.
692 # ABB codes: See
694 Example:
695 ```python
696 >>> await options_send_device_command_actions(client, "device_value")
697 <Response [200]>
698 ```
699 """
700 return await client.options(f"/rw/iosystem/devices/{device}/command")
703async def get_an_io_signal(
704 client: RWSClient,
705 network: str,
706 unit: str,
707 signal: str,
708) -> httpx.Response:
709 """
710 Get an IO Signal.
712 Route: ``GET /rw/iosystem/signals/{network}/{unit}/{signal}``
713 ABB constraints: Not supported in bootserver mode.
714 /rw/iosystem/signals/{network}/{unit}/{signal};state will return only the IO signal
715 value.
717 Args:
718 client: Open RWSClient instance.
719 network: URL path parameter.
720 unit: URL path parameter.
721 signal: URL path parameter.
723 Returns:
724 Raw HTTP response. Expected success: HTTP 200.
726 Raises:
727 RWSAuthenticationError: On HTTP 401.
728 RWSNotFoundError: On HTTP 404.
729 RWSHTTPError: On any other HTTP >= 400.
730 # ABB codes: BAD REQUEST(400)
732 Example:
733 ```python
734 >>> await get_an_io_signal(client, "network_value", "unit_value", "signal_value")
735 <Response [200]>
736 ```
737 """
738 return await client.get(f"/rw/iosystem/signals/{network}/{unit}/{signal}")
741async def get_io_signal_actions(
742 client: RWSClient,
743 network: str,
744 unit: str,
745 signal: str,
746 action: str | None = None,
747) -> httpx.Response:
748 """
749 Get IO Signal actions.
751 Route: ``GET /rw/iosystem/signals/{network}/{unit}/{signal}``
752 ABB constraints: Not supported in bootserver mode
754 Args:
755 client: Open RWSClient instance.
756 network: URL path parameter.
757 unit: URL path parameter.
758 signal: URL path parameter.
759 action: Query parameter. Optional.
761 Returns:
762 Raw HTTP response. Expected success: HTTP 200.
764 Raises:
765 RWSAuthenticationError: On HTTP 401.
766 RWSNotFoundError: On HTTP 404.
767 RWSHTTPError: On any other HTTP >= 400.
768 # ABB codes: BAD REQUEST(400)
770 Example:
771 ```python
772 >>> await get_io_signal_actions(client, "network_value", "unit_value", "signal_value")
773 <Response [200]>
774 ```
775 """
776 return await client.get(
777 f"/rw/iosystem/signals/{network}/{unit}/{signal}",
778 params={k: v for k, v in {"action": action}.items() if v is not None},
779 )
782async def update_io_signal_state(
783 client: RWSClient,
784 network: str,
785 device: str,
786 signal: str,
787 action: str | None = None,
788 lstate: str | None = None,
789) -> httpx.Response:
790 """
791 Update IO Signal State.
793 Route: ``POST /rw/iosystem/signals/{network}/{device}/{signal}``
794 ABB constraints: Not supported in bootserver mode
796 Args:
797 client: Open RWSClient instance.
798 network: URL path parameter.
799 device: URL path parameter.
800 signal: URL path parameter.
801 action: Query parameter. Optional.
802 lstate: Body parameter. Optional.
804 Returns:
805 Raw HTTP response. Expected success: HTTP 204.
807 Raises:
808 RWSAuthenticationError: On HTTP 401.
809 RWSNotFoundError: On HTTP 404.
810 RWSHTTPError: On any other HTTP >= 400.
811 # ABB codes: BAD_REQUEST(400)
813 Example:
814 ```python
815 >>> await update_io_signal_state(client, "network_value", "device_value", "signal_value")
816 <Response [204]>
817 ```
818 """
819 return await client.post(
820 f"/rw/iosystem/signals/{network}/{device}/{signal}",
821 params={k: v for k, v in {"action": action}.items() if v is not None},
822 data={k: v for k, v in {"lstate": lstate}.items() if v is not None},
823 )
826async def update_io_signal_value(
827 client: RWSClient,
828 network: str,
829 device: str,
830 signal: str,
831 action: str | None = None,
832) -> httpx.Response:
833 """
834 Update IO Signal Value.
836 Route: ``POST /rw/iosystem/signals/{network}/{device}/{signal}``
837 ABB constraints: Not supported in bootserver mode
839 Args:
840 client: Open RWSClient instance.
841 network: URL path parameter.
842 device: URL path parameter.
843 signal: URL path parameter.
844 action: Query parameter. Optional.
846 Returns:
847 Raw HTTP response. Expected success: HTTP 204.
849 Raises:
850 RWSAuthenticationError: On HTTP 401.
851 RWSNotFoundError: On HTTP 404.
852 RWSHTTPError: On any other HTTP >= 400.
853 # ABB codes: BAD_REQUEST(400)
855 Example:
856 ```python
857 >>> await update_io_signal_value(client, "network_value", "device_value", "signal_value")
858 <Response [204]>
859 ```
860 """
861 return await client.post(
862 f"/rw/iosystem/signals/{network}/{device}/{signal}",
863 params={k: v for k, v in {"action": action}.items() if v is not None},
864 data={},
865 )
868async def subscribe_io_signal(
869 client: RWSClient,
870 identifier: str | None = None,
871 identifier_p: str | None = None,
872) -> httpx.Response:
873 """
874 Subscribe IO Signal.
876 Route: ``POST /subscription``
877 ABB constraints: Not supported in bootserver mode
879 Args:
880 client: Open RWSClient instance.
881 identifier: Body parameter. Optional.
882 identifier_p: Body parameter. Optional.
884 Returns:
885 Raw HTTP response. Expected success: HTTP 201.
887 Raises:
888 RWSAuthenticationError: On HTTP 401.
889 RWSNotFoundError: On HTTP 404.
890 RWSHTTPError: On any other HTTP >= 400.
891 # ABB codes: BAD REQUEST(400)
893 Example:
894 ```python
895 >>> await subscribe_io_signal(client)
896 <Response [201]>
897 ```
898 """
899 return await client.post(
900 "/subscription",
901 data={
902 k: v
903 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
904 if v is not None
905 },
906 )
909async def get_io_signal_configuration_properties(
910 client: RWSClient,
911 network: str,
912 unit: str,
913 signal: str,
914 resource: str | None = None,
915 configtype: str | None = None,
916) -> httpx.Response:
917 """
918 Get IO signal Configuration Properties.
920 Route: ``GET /rw/iosystem/signals/{network}/{unit}/{signal}``
921 ABB constraints: "configtype_value" should be 1 (or) 2 (or) 3 (2= general configuration , 1 =
922 runtime configuration , 3 = both) Not supported in bootserver mode
924 Args:
925 client: Open RWSClient instance.
926 network: URL path parameter.
927 unit: URL path parameter.
928 signal: URL path parameter.
929 resource: Query parameter. Optional.
930 configtype: Query parameter. Optional.
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: BAD REQUEST(400)
941 Example:
942 ```python
943 >>> await get_io_signal_configuration_properties(
944 ... client,
945 ... "network_value",
946 ... "unit_value",
947 ... "signal_value"
948 ... )
949 <Response [200]>
950 ```
951 """
952 return await client.get(
953 f"/rw/iosystem/signals/{network}/{unit}/{signal}",
954 params={
955 k: v
956 for k, v in {"resource": resource, "configtype": configtype}.items()
957 if v is not None
958 },
959 )