kubernetes.client.models.events_v1_event 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.events_v1_event.EventsV1Event(*, action: Annotated[str, Strict(strict=True)] | None = None, api_version: Annotated[str, Strict(strict=True)] | None = None, deprecated_count: Annotated[int, Strict(strict=True)] | None = None, deprecated_first_timestamp: datetime | None = None, deprecated_last_timestamp: datetime | None = None, deprecated_source: V1EventSource | None = None, event_time: datetime, kind: Annotated[str, Strict(strict=True)] | None = None, metadata: V1ObjectMeta | None = None, note: Annotated[str, Strict(strict=True)] | None = None, reason: Annotated[str, Strict(strict=True)] | None = None, regarding: V1ObjectReference | None = None, related: V1ObjectReference | None = None, reporting_controller: Annotated[str, Strict(strict=True)] | None = None, reporting_instance: Annotated[str, Strict(strict=True)] | None = None, series: EventsV1EventSeries | None = None, type: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.

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.

action: StrictStr | None
api_version: StrictStr | None
attribute_map: ClassVar[Dict[str, str]] = {'action': 'action', 'api_version': 'apiVersion', 'deprecated_count': 'deprecatedCount', 'deprecated_first_timestamp': 'deprecatedFirstTimestamp', 'deprecated_last_timestamp': 'deprecatedLastTimestamp', 'deprecated_source': 'deprecatedSource', 'event_time': 'eventTime', 'kind': 'kind', 'metadata': 'metadata', 'note': 'note', 'reason': 'reason', 'regarding': 'regarding', 'related': 'related', 'reporting_controller': 'reportingController', 'reporting_instance': 'reportingInstance', 'series': 'series', 'type': 'type'}
deprecated_count: StrictInt | None
deprecated_first_timestamp: datetime | None
deprecated_last_timestamp: datetime | None
deprecated_source: V1EventSource | None
event_time: datetime
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of EventsV1Event from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of EventsV1Event from a JSON string

kind: StrictStr | None
metadata: V1ObjectMeta | 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].

note: StrictStr | None
openapi_types: ClassVar[Dict[str, str]] = {'action': 'str', 'api_version': 'str', 'deprecated_count': 'int', 'deprecated_first_timestamp': 'datetime', 'deprecated_last_timestamp': 'datetime', 'deprecated_source': 'V1EventSource', 'event_time': 'datetime', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'note': 'str', 'reason': 'str', 'regarding': 'V1ObjectReference', 'related': 'V1ObjectReference', 'reporting_controller': 'str', 'reporting_instance': 'str', 'series': 'EventsV1EventSeries', 'type': 'str'}
reason: StrictStr | None
regarding: V1ObjectReference | None
related: V1ObjectReference | None
reporting_controller: StrictStr | None
reporting_instance: StrictStr | None
series: EventsV1EventSeries | 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

type: StrictStr | None