kubernetes.client.models.v1_api_resource module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class kubernetes.client.models.v1_api_resource.V1APIResource(*, categories: List[Annotated[str, Strict(strict=True)]] | None = None, group: Annotated[str, Strict(strict=True)] | None = None, kind: Annotated[str, Strict(strict=True)], name: Annotated[str, Strict(strict=True)], namespaced: Annotated[bool, Strict(strict=True)], short_names: List[Annotated[str, Strict(strict=True)]] | None = None, singular_name: Annotated[str, Strict(strict=True)], storage_version_hash: Annotated[str, Strict(strict=True)] | None = None, verbs: List[Annotated[str, Strict(strict=True)]], version: Annotated[str, Strict(strict=True)] | None = None)¶
Bases:
BaseModelAPIResource specifies the name of a resource and whether it is namespaced.
- Attributes:
- openapi_types (dict): The key is attribute name
and the value is attribute type.
- attribute_map (dict): The key is attribute name
and the value is json key in definition.
- attribute_map: ClassVar[Dict[str, str]] = {'categories': 'categories', 'group': 'group', 'kind': 'kind', 'name': 'name', 'namespaced': 'namespaced', 'short_names': 'shortNames', 'singular_name': 'singularName', 'storage_version_hash': 'storageVersionHash', 'verbs': 'verbs', 'version': 'version'}¶
- categories: List[StrictStr] | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1APIResource from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1APIResource from a JSON string
- group: StrictStr | None¶
- kind: StrictStr¶
- model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: StrictStr¶
- namespaced: StrictBool¶
- openapi_types: ClassVar[Dict[str, str]] = {'categories': 'List[str]', 'group': 'str', 'kind': 'str', 'name': 'str', 'namespaced': 'bool', 'short_names': 'List[str]', 'singular_name': 'str', 'storage_version_hash': 'str', 'verbs': 'List[str]', 'version': 'str'}¶
- short_names: List[StrictStr] | None¶
- singular_name: StrictStr¶
- storage_version_hash: StrictStr | None¶
- to_dict(serialize: bool = False) Dict[str, Any]¶
Return all declared model fields using public or wire names.
- to_json() str¶
Returns the JSON representation of the model using alias
- to_str() str¶
Returns the string representation of the model
- verbs: List[StrictStr]¶
- version: StrictStr | None¶