(self, body=None, name=None, namespace=None, **kwargs)
| 248 | |
| 249 | #TODO(fabianvf): Determine proper way to handle differences between resources + subresources |
| 250 | def create(self, body=None, name=None, namespace=None, **kwargs): |
| 251 | name = name or body.get('metadata', {}).get('name') |
| 252 | body = self.parent.client.serialize_body(body) |
| 253 | if self.parent.namespaced: |
| 254 | namespace = self.parent.client.ensure_namespace(self.parent, namespace, body) |
| 255 | path = self.path(name=name, namespace=namespace) |
| 256 | return self.parent.client.request('post', path, body=body, **kwargs) |
| 257 | |
| 258 | @property |
| 259 | def urls(self): |
nothing calls this directly
no test coverage detected