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 (26 lines) | stat: -rw-r--r-- 662 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
from twilio.rest.preview_iam.PreviewIamBase import PreviewIamBase

from twilio.rest.preview_iam.v1.authorize import (
    AuthorizeList,
)
from twilio.rest.preview_iam.v1.token import (
    TokenList,
)
from twilio.rest.preview_iam.versionless.organization import (
    OrganizationList,
)
from twilio.rest.preview_iam.versionless import Versionless


class PreviewIam(PreviewIamBase):
    @property
    def organization(self) -> OrganizationList:
        return Versionless(self).organization

    @property
    def authorize(self) -> AuthorizeList:
        return self.v1.authorize

    @property
    def token(self) -> TokenList:
        return self.v1.token