Source code for RsFsw.Implementations.System.Communicate.Snmp.Location

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


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

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

[docs] def set(self, location: str) -> None: """ ``SYSTem:COMMunicate:SNMP:LOCation`` \n Snippet: ``driver.system.communicate.snmp.location.set(location = 'abc')`` \n Defines the SNMP location information for the administrator. You can also set the location information via SNMP if you do not set it via SCPI. :param location: String containing SNMP location. """ param = Conversions.value_to_quoted_str(location) self._core.io.write(f'SYSTem:COMMunicate:SNMP:LOCation {param}')
[docs] def get(self) -> str: """ ``SYSTem:COMMunicate:SNMP:LOCation`` \n Snippet: ``value: str = driver.system.communicate.snmp.location.get()`` \n Defines the SNMP location information for the administrator. You can also set the location information via SNMP if you do not set it via SCPI. """ response = self._core.io.query_str(f'SYSTem:COMMunicate:SNMP:LOCation?') return trim_str_response(response)