HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib64/python3.10/site-packages/twilio/rest/studio/__init__.py
from warnings import warn

from twilio.rest.studio.StudioBase import StudioBase
from twilio.rest.studio.v2.flow import FlowList
from twilio.rest.studio.v2.flow_validate import FlowValidateList


class Studio(StudioBase):
    @property
    def flows(self) -> FlowList:
        warn(
            "flows is deprecated. Use v2.flows instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.flows

    @property
    def flow_validate(self) -> FlowValidateList:
        warn(
            "flow_validate is deprecated. Use v2.flow_validate instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.flow_validate