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 (67 lines) | stat: -rw-r--r-- 2,056 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from warnings import warn

from twilio.rest.verify.VerifyBase import VerifyBase
from twilio.rest.verify.v2.form import FormList
from twilio.rest.verify.v2.safelist import SafelistList
from twilio.rest.verify.v2.service import ServiceList
from twilio.rest.verify.v2.template import TemplateList
from twilio.rest.verify.v2.verification_attempt import VerificationAttemptList
from twilio.rest.verify.v2.verification_attempts_summary import (
    VerificationAttemptsSummaryList,
)


class Verify(VerifyBase):
    @property
    def forms(self) -> FormList:
        warn(
            "forms is deprecated. Use v2.forms instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.forms

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

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

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

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

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