kubernetes.aio.dynamic.resource module¶
- class kubernetes.aio.dynamic.resource.Resource(prefix=None, group=None, api_version=None, kind=None, namespaced=False, verbs=None, name=None, preferred=False, client=None, singular_name=None, short_names=None, categories=None, subresources=None, **kwargs)¶
Bases:
objectRepresents an API resource type, containing the information required to build urls for requests
- property group_version¶
- path(name=None, namespace=None)¶
- to_dict()¶
- property urls¶
- class kubernetes.aio.dynamic.resource.ResourceField(params)¶
Bases:
objectA parsed instance of an API resource attribute. It exists solely to ease interaction with API objects by allowing attributes to be accessed with ‘.’ notation
- to_dict()¶
- class kubernetes.aio.dynamic.resource.ResourceInstance(client, instance)¶
Bases:
objectA parsed instance of an API resource. It exists solely to ease interaction with API objects by allowing attributes to be accessed with ‘.’ notation.
- to_dict()¶
- to_str()¶
- class kubernetes.aio.dynamic.resource.ResourceList(client, group='', api_version='v1', base_kind='', kind=None, base_resource_lookup=None)¶
Bases:
ResourceRepresents a list of API objects
- async base_resource()¶
- async create(*args, **kwargs)¶
- async classmethod create_list(client, group='', api_version='v1', base_kind='', kind=None)¶
- async delete(body, name=None, namespace=None, **kwargs)¶
- async get(body, name=None, namespace=None, **kwargs)¶
- async patch(*args, **kwargs)¶
- async replace(*args, **kwargs)¶
- to_dict()¶
- async verb_mapper(verb, body, **kwargs)¶
- class kubernetes.aio.dynamic.resource.Subresource(parent, **kwargs)¶
Bases:
ResourceRepresents a subresource of an API resource. This generally includes operations like scale, as well as status objects for an instantiated resource
- async create(body=None, name=None, namespace=None, **kwargs)¶
- to_dict()¶
- property urls¶