MCPcopy Index your code
hub / github.com/kubernetes-client/python / convert

Method convert

kubernetes/client/models/v1_taint.py:171–179  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

169 result = {}
170
171 def convert(x):
172 if hasattr(x, "to_dict"):
173 args = getfullargspec(x.to_dict).args
174 if len(args) == 1:
175 return x.to_dict()
176 else:
177 return x.to_dict(serialize)
178 else:
179 return x
180
181 for attr, _ in six.iteritems(self.openapi_types):
182 value = getattr(self, attr)

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected