kubernetes.client.models.v1_object_meta 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_object_meta.V1ObjectMeta(*, annotations: Dict[str, Annotated[str, Strict(strict=True)]] | None = None, creation_timestamp: datetime | None = None, deletion_grace_period_seconds: Annotated[int, Strict(strict=True)] | None = None, deletion_timestamp: datetime | None = None, finalizers: List[Annotated[str, Strict(strict=True)]] | None = None, generate_name: Annotated[str, Strict(strict=True)] | None = None, generation: Annotated[int, Strict(strict=True)] | None = None, labels: Dict[str, Annotated[str, Strict(strict=True)]] | None = None, managed_fields: List[V1ManagedFieldsEntry] | None = None, name: Annotated[str, Strict(strict=True)] | None = None, namespace: Annotated[str, Strict(strict=True)] | None = None, owner_references: List[V1OwnerReference] | None = None, resource_version: Annotated[str, Strict(strict=True)] | None = None, self_link: Annotated[str, Strict(strict=True)] | None = None, uid: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

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.

annotations: Dict[str, StrictStr] | None
attribute_map: ClassVar[Dict[str, str]] = {'annotations': 'annotations', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', 'finalizers': 'finalizers', 'generate_name': 'generateName', 'generation': 'generation', 'labels': 'labels', 'managed_fields': 'managedFields', 'name': 'name', 'namespace': 'namespace', 'owner_references': 'ownerReferences', 'resource_version': 'resourceVersion', 'self_link': 'selfLink', 'uid': 'uid'}
creation_timestamp: datetime | None
deletion_grace_period_seconds: StrictInt | None
deletion_timestamp: datetime | None
finalizers: List[StrictStr] | None
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1ObjectMeta from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1ObjectMeta from a JSON string

generate_name: StrictStr | None
generation: StrictInt | None
labels: Dict[str, StrictStr] | None
managed_fields: List[V1ManagedFieldsEntry] | None
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 | None
namespace: StrictStr | None
openapi_types: ClassVar[Dict[str, str]] = {'annotations': 'Dict[str, str]', 'creation_timestamp': 'datetime', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'datetime', 'finalizers': 'List[str]', 'generate_name': 'str', 'generation': 'int', 'labels': 'Dict[str, str]', 'managed_fields': 'List[V1ManagedFieldsEntry]', 'name': 'str', 'namespace': 'str', 'owner_references': 'List[V1OwnerReference]', 'resource_version': 'str', 'self_link': 'str', 'uid': 'str'}
owner_references: List[V1OwnerReference] | None
resource_version: 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

uid: StrictStr | None