in if/py/gen-py/fbnet/command_runner_asyncio/CommandRunner/ttypes.py [0:0]
def __repr__(self):
L = []
padding = ' ' * 4
if self.hostname is not None:
value = pprint.pformat(self.hostname, indent=0)
value = padding.join(value.splitlines(True))
L.append(' hostname=%s' % (value))
if self.username is not None:
value = pprint.pformat(self.username, indent=0)
value = padding.join(value.splitlines(True))
L.append(' username=%s' % (value))
if self.password is not None:
value = pprint.pformat(self.password, indent=0)
value = padding.join(value.splitlines(True))
L.append(' password=%s' % (value))
if self.console is not None:
value = pprint.pformat(self.console, indent=0)
value = padding.join(value.splitlines(True))
L.append(' console=%s' % (value))
if self.mgmt_ip is not None:
value = pprint.pformat(self.mgmt_ip, indent=0)
value = padding.join(value.splitlines(True))
L.append(' mgmt_ip=%s' % (value))
if self.command_prompts is not None:
value = pprint.pformat(self.command_prompts, indent=0)
value = padding.join(value.splitlines(True))
L.append(' command_prompts=%s' % (value))
if self.ip_address is not None:
value = pprint.pformat(self.ip_address, indent=0)
value = padding.join(value.splitlines(True))
L.append(' ip_address=%s' % (value))
if self.session_type is not None:
value = pprint.pformat(self.session_type, indent=0)
value = padding.join(value.splitlines(True))
L.append(' session_type=%s' % (value))
if self.session_data is not None:
value = pprint.pformat(self.session_data, indent=0)
value = padding.join(value.splitlines(True))
L.append(' session_data=%s' % (value))
return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')