Skip to content

streaming

frequenz.client.common.v1alpha8.streaming ¤

Type wrappers for the generated protobuf messages.

Classes¤

frequenz.client.common.v1alpha8.streaming.Event ¤

Bases: Enum

Enum representing the type of streaming event.

Source code in frequenz/client/common/v1alpha8/streaming/__init__.py
class Event(Enum):
    """Enum representing the type of streaming event."""

    EVENT_UNSPECIFIED = PBEvent.EVENT_UNSPECIFIED
    """Unspecified event type."""

    EVENT_CREATED = PBEvent.EVENT_CREATED
    """Event when a new resource is created."""

    EVENT_UPDATED = PBEvent.EVENT_UPDATED
    """Event when an existing resource is updated."""

    EVENT_DELETED = PBEvent.EVENT_DELETED
    """Event when a resource is deleted."""
Attributes¤
EVENT_CREATED class-attribute instance-attribute ¤
EVENT_CREATED = EVENT_CREATED

Event when a new resource is created.

EVENT_DELETED class-attribute instance-attribute ¤
EVENT_DELETED = EVENT_DELETED

Event when a resource is deleted.

EVENT_UNSPECIFIED class-attribute instance-attribute ¤
EVENT_UNSPECIFIED = EVENT_UNSPECIFIED

Unspecified event type.

EVENT_UPDATED class-attribute instance-attribute ¤
EVENT_UPDATED = EVENT_UPDATED

Event when an existing resource is updated.