Source code for rsrtx.Implementations.System.Communicate.Rest

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RestCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("rest", core, parent)

[docs] def get_enable(self) -> bool: """ ``SYSTem:COMMunicate:REST:ENABle`` \n Snippet: ``value: bool = driver.system.communicate.rest.get_enable()`` \n No help available """ response = self._core.io.query_str('SYSTem:COMMunicate:REST:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, rest_enabled: bool) -> None: """ ``SYSTem:COMMunicate:REST:ENABle`` \n Snippet: ``driver.system.communicate.rest.set_enable(rest_enabled = False)`` \n No help available """ param = Conversions.bool_to_str(rest_enabled) self._core.io.write(f'SYSTem:COMMunicate:REST:ENABle {param}')