kubernetes.client.models.version_info 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.version_info.VersionInfo(*, build_date: Annotated[str, Strict(strict=True)], compiler: Annotated[str, Strict(strict=True)], emulation_major: Annotated[str, Strict(strict=True)] | None = None, emulation_minor: Annotated[str, Strict(strict=True)] | None = None, git_commit: Annotated[str, Strict(strict=True)], git_tree_state: Annotated[str, Strict(strict=True)], git_version: Annotated[str, Strict(strict=True)], go_version: Annotated[str, Strict(strict=True)], major: Annotated[str, Strict(strict=True)], min_compatibility_major: Annotated[str, Strict(strict=True)] | None = None, min_compatibility_minor: Annotated[str, Strict(strict=True)] | None = None, minor: Annotated[str, Strict(strict=True)], platform: Annotated[str, Strict(strict=True)])¶
Bases:
BaseModelInfo contains versioning information. how we’ll want to distribute that information.
- 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]] = {'build_date': 'buildDate', 'compiler': 'compiler', 'emulation_major': 'emulationMajor', 'emulation_minor': 'emulationMinor', 'git_commit': 'gitCommit', 'git_tree_state': 'gitTreeState', 'git_version': 'gitVersion', 'go_version': 'goVersion', 'major': 'major', 'min_compatibility_major': 'minCompatibilityMajor', 'min_compatibility_minor': 'minCompatibilityMinor', 'minor': 'minor', 'platform': 'platform'}¶
- build_date: StrictStr¶
- compiler: StrictStr¶
- emulation_major: StrictStr | None¶
- emulation_minor: StrictStr | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of VersionInfo from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of VersionInfo from a JSON string
- git_commit: StrictStr¶
- git_tree_state: StrictStr¶
- git_version: StrictStr¶
- go_version: StrictStr¶
- major: StrictStr¶
- min_compatibility_major: StrictStr | None¶
- min_compatibility_minor: StrictStr | None¶
- minor: 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].
- openapi_types: ClassVar[Dict[str, str]] = {'build_date': 'str', 'compiler': 'str', 'emulation_major': 'str', 'emulation_minor': 'str', 'git_commit': 'str', 'git_tree_state': 'str', 'git_version': 'str', 'go_version': 'str', 'major': 'str', 'min_compatibility_major': 'str', 'min_compatibility_minor': 'str', 'minor': 'str', 'platform': 'str'}¶
- platform: StrictStr¶
- 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