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

Method to_dict

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

Source from the content-addressed store, hash-verified

267 return partial(getattr(self.parent.client, name), self)
268
269 def to_dict(self):
270 d = {
271 'kind': self.kind,
272 'name': self.name,
273 'subresource': self.subresource,
274 'namespaced': self.namespaced,
275 'verbs': self.verbs
276 }
277 d.update(self.extra_args)
278 return d
279
280
281class ResourceInstance:

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected