kubernetes.client.models.v1_custom_resource_definition_version 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_custom_resource_definition_version.V1CustomResourceDefinitionVersion(*, additional_printer_columns: List[V1CustomResourceColumnDefinition] | None = None, deprecated: Annotated[bool, Strict(strict=True)] | None = None, deprecation_warning: Annotated[str, Strict(strict=True)] | None = None, name: Annotated[str, Strict(strict=True)], schema: V1CustomResourceValidation | None = None, selectable_fields: List[V1SelectableField] | None = None, served: Annotated[bool, Strict(strict=True)], storage: Annotated[bool, Strict(strict=True)], subresources: V1CustomResourceSubresources | None = None)

Bases: BaseModel

CustomResourceDefinitionVersion describes a version for CRD.

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.

additional_printer_columns: List[V1CustomResourceColumnDefinition] | None
attribute_map: ClassVar[Dict[str, str]] = {'additional_printer_columns': 'additionalPrinterColumns', 'deprecated': 'deprecated', 'deprecation_warning': 'deprecationWarning', 'name': 'name', 'schema': 'schema', 'selectable_fields': 'selectableFields', 'served': 'served', 'storage': 'storage', 'subresources': 'subresources'}
deprecated: StrictBool | None
deprecation_warning: StrictStr | None
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1CustomResourceDefinitionVersion from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1CustomResourceDefinitionVersion from a JSON string

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
openapi_types: ClassVar[Dict[str, str]] = {'additional_printer_columns': 'List[V1CustomResourceColumnDefinition]', 'deprecated': 'bool', 'deprecation_warning': 'str', 'name': 'str', 'schema': 'V1CustomResourceValidation', 'selectable_fields': 'List[V1SelectableField]', 'served': 'bool', 'storage': 'bool', 'subresources': 'V1CustomResourceSubresources'}
property schema
selectable_fields: List[V1SelectableField] | None
served: StrictBool
storage: StrictBool
subresources: V1CustomResourceSubresources | 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

var_schema: V1CustomResourceValidation | None