Source code for RsSmw.Implementations.System.Security.Network.RemSupport

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


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

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

[docs] def get_state(self) -> bool: """ ``SYSTem:SECurity:NETWork:REMSupport:[STATe]`` \n Snippet: ``value: bool = driver.system.security.network.remSupport.get_state()`` \n Disables communication over SSH (SCP) for service purposes. :return: net_rem_support: 1 | ON | 0| OFF """ response = self._core.io.query_str('SYSTem:SECurity:NETWork:REMSupport:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, net_rem_support: bool) -> None: """ ``SYSTem:SECurity:NETWork:REMSupport:[STATe]`` \n Snippet: ``driver.system.security.network.remSupport.set_state(net_rem_support = False)`` \n Disables communication over SSH (SCP) for service purposes. :param net_rem_support: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(net_rem_support) self._core.io.write(f'SYSTem:SECurity:NETWork:REMSupport:STATe {param}')