File: __init__.py

package info (click to toggle)
python-twilio 9.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,756 kB
  • sloc: python: 8,281; makefile: 65
file content (25 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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