MCPcopy Create free account
hub / github.com/kubernetes-client/python / __repr__

Method __repr__

kubernetes/base/dynamic/resource.py:333–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

331 return repr(self)
332
333 def __repr__(self):
334 return "ResourceInstance[{}]:\n {}".format(
335 self.attributes.kind,
336 ' '.join(yaml.safe_dump(self.to_dict()).splitlines(True))
337 )
338
339 def __getattr__(self, name):
340 if not '_ResourceInstance__initialised' in self.__dict__:

Callers

nothing calls this directly

Calls 2

to_dictMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected