HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/twilio/rest/events/__init__.py
from warnings import warn

from twilio.rest.events.EventsBase import EventsBase
from twilio.rest.events.v1.event_type import EventTypeList
from twilio.rest.events.v1.schema import SchemaList
from twilio.rest.events.v1.sink import SinkList
from twilio.rest.events.v1.subscription import SubscriptionList


class Events(EventsBase):
    @property
    def event_types(self) -> EventTypeList:
        warn(
            "event_types is deprecated. Use v1.event_types instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.event_types

    @property
    def schemas(self) -> SchemaList:
        warn(
            "schemas is deprecated. Use v1.schemas instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.schemas

    @property
    def sinks(self) -> SinkList:
        warn(
            "sinks is deprecated. Use v1.sinks instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.sinks

    @property
    def subscriptions(self) -> SubscriptionList:
        warn(
            "subscriptions is deprecated. Use v1.subscriptions instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.subscriptions