kubernetes_asyncio.dynamic.resource module
- class kubernetes_asyncio.dynamic.resource.Resource(prefix: str | None = None, group: str | None = None, api_version: str | None = None, kind: str | None = None, namespaced: bool = False, verbs: str | None = None, name: str | None = None, preferred: bool = False, client: DynamicClient | None = None, singular_name: str | None = None, short_names: str | None = None, categories: str | None = None, subresources: dict | None = None, **kwargs)
Bases:
objectRepresents an API resource type, containing the information required to build urls for requests
- property group_version: str | None
- path(name: str | None = None, namespace: str | None = None) str
- to_dict() dict[str, Any]
- property urls: dict[str, str]
- class kubernetes_asyncio.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() dict
- class kubernetes_asyncio.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_asyncio.dynamic.resource.ResourceList(client: DynamicClient, group: str | None = None, api_version: str | None = None, base_kind: str | None = None, kind: str | None = 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_asyncio.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: str | None = None, namespace: str | None = None, **kwargs: Any)
- to_dict() dict[str, str]
- property urls: dict[str, str]