|
| 1 | +r""" |
| 2 | + This code was generated by |
| 3 | + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ |
| 4 | + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ |
| 5 | + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ |
| 6 | +
|
| 7 | + Twilio - Accounts |
| 8 | + This is the public Twilio REST API. |
| 9 | +
|
| 10 | + NOTE: This class is auto generated by OpenAPI Generator. |
| 11 | + https://openapi-generator.tech |
| 12 | + Do not edit the class manually. |
| 13 | +""" |
| 14 | + |
| 15 | +from typing import Optional |
| 16 | +from twilio.base.version import Version |
| 17 | +from twilio.base.domain import Domain |
| 18 | +from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList |
| 19 | +from twilio.rest.accounts.v1.bulk_consents import BulkConsentsList |
| 20 | +from twilio.rest.accounts.v1.bulk_contacts import BulkContactsList |
| 21 | +from twilio.rest.accounts.v1.credential import CredentialList |
| 22 | +from twilio.rest.accounts.v1.messaging_geopermissions import MessagingGeopermissionsList |
| 23 | +from twilio.rest.accounts.v1.safelist import SafelistList |
| 24 | +from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList |
| 25 | + |
| 26 | + |
| 27 | +class V1(Version): |
| 28 | + |
| 29 | + def __init__(self, domain: Domain): |
| 30 | + """ |
| 31 | + Initialize the V1 version of Accounts |
| 32 | +
|
| 33 | + :param domain: The Twilio.accounts domain |
| 34 | + """ |
| 35 | + super().__init__(domain, "v1") |
| 36 | + self._auth_token_promotion: Optional[AuthTokenPromotionList] = None |
| 37 | + self._bulk_consents: Optional[BulkConsentsList] = None |
| 38 | + self._bulk_contacts: Optional[BulkContactsList] = None |
| 39 | + self._credentials: Optional[CredentialList] = None |
| 40 | + self._messaging_geopermissions: Optional[MessagingGeopermissionsList] = None |
| 41 | + self._safelist: Optional[SafelistList] = None |
| 42 | + self._secondary_auth_token: Optional[SecondaryAuthTokenList] = None |
| 43 | + |
| 44 | + @property |
| 45 | + def auth_token_promotion(self) -> AuthTokenPromotionList: |
| 46 | + if self._auth_token_promotion is None: |
| 47 | + self._auth_token_promotion = AuthTokenPromotionList(self) |
| 48 | + return self._auth_token_promotion |
| 49 | + |
| 50 | + @property |
| 51 | + def bulk_consents(self) -> BulkConsentsList: |
| 52 | + if self._bulk_consents is None: |
| 53 | + self._bulk_consents = BulkConsentsList(self) |
| 54 | + return self._bulk_consents |
| 55 | + |
| 56 | + @property |
| 57 | + def bulk_contacts(self) -> BulkContactsList: |
| 58 | + if self._bulk_contacts is None: |
| 59 | + self._bulk_contacts = BulkContactsList(self) |
| 60 | + return self._bulk_contacts |
| 61 | + |
| 62 | + @property |
| 63 | + def credentials(self) -> CredentialList: |
| 64 | + if self._credentials is None: |
| 65 | + self._credentials = CredentialList(self) |
| 66 | + return self._credentials |
| 67 | + |
| 68 | + @property |
| 69 | + def messaging_geopermissions(self) -> MessagingGeopermissionsList: |
| 70 | + if self._messaging_geopermissions is None: |
| 71 | + self._messaging_geopermissions = MessagingGeopermissionsList(self) |
| 72 | + return self._messaging_geopermissions |
| 73 | + |
| 74 | + @property |
| 75 | + def safelist(self) -> SafelistList: |
| 76 | + if self._safelist is None: |
| 77 | + self._safelist = SafelistList(self) |
| 78 | + return self._safelist |
| 79 | + |
| 80 | + @property |
| 81 | + def secondary_auth_token(self) -> SecondaryAuthTokenList: |
| 82 | + if self._secondary_auth_token is None: |
| 83 | + self._secondary_auth_token = SecondaryAuthTokenList(self) |
| 84 | + return self._secondary_auth_token |
| 85 | + |
| 86 | + def __repr__(self) -> str: |
| 87 | + """ |
| 88 | + Provide a friendly representation |
| 89 | + :returns: Machine friendly representation |
| 90 | + """ |
| 91 | + return "<Twilio.Accounts.V1>" |
0 commit comments