Skip to content

Commit 542b8de

Browse files
chore: test changes
1 parent f408b89 commit 542b8de

File tree

13 files changed

+268
-1792
lines changed

13 files changed

+268
-1792
lines changed

twilio/base/version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ def _parse_create(self, method: str, uri: str, response: Response) -> Any:
434434
if response.status_code < 200 or response.status_code >= 300:
435435
raise self.exception(method, uri, response, "Unable to create record")
436436

437+
if response.status_code == 204:
438+
return True
439+
437440
return json.loads(response.text)
438441

439442
def create(

twilio/rest/accounts/AccountsBase.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

twilio/rest/accounts/__init__.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

twilio/rest/accounts/v1/__init__.py

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
from typing import Optional
1616
from twilio.base.version import Version
1717
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
2118
from twilio.rest.accounts.v1.credential import CredentialList
22-
from twilio.rest.accounts.v1.safelist import SafelistList
23-
from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList
2419

2520

2621
class V1(Version):
@@ -32,49 +27,14 @@ def __init__(self, domain: Domain):
3227
:param domain: The Twilio.accounts domain
3328
"""
3429
super().__init__(domain, "v1")
35-
self._auth_token_promotion: Optional[AuthTokenPromotionList] = None
36-
self._bulk_consents: Optional[BulkConsentsList] = None
37-
self._bulk_contacts: Optional[BulkContactsList] = None
3830
self._credentials: Optional[CredentialList] = None
39-
self._safelist: Optional[SafelistList] = None
40-
self._secondary_auth_token: Optional[SecondaryAuthTokenList] = None
41-
42-
@property
43-
def auth_token_promotion(self) -> AuthTokenPromotionList:
44-
if self._auth_token_promotion is None:
45-
self._auth_token_promotion = AuthTokenPromotionList(self)
46-
return self._auth_token_promotion
47-
48-
@property
49-
def bulk_consents(self) -> BulkConsentsList:
50-
if self._bulk_consents is None:
51-
self._bulk_consents = BulkConsentsList(self)
52-
return self._bulk_consents
53-
54-
@property
55-
def bulk_contacts(self) -> BulkContactsList:
56-
if self._bulk_contacts is None:
57-
self._bulk_contacts = BulkContactsList(self)
58-
return self._bulk_contacts
59-
31+
6032
@property
6133
def credentials(self) -> CredentialList:
6234
if self._credentials is None:
6335
self._credentials = CredentialList(self)
6436
return self._credentials
6537

66-
@property
67-
def safelist(self) -> SafelistList:
68-
if self._safelist is None:
69-
self._safelist = SafelistList(self)
70-
return self._safelist
71-
72-
@property
73-
def secondary_auth_token(self) -> SecondaryAuthTokenList:
74-
if self._secondary_auth_token is None:
75-
self._secondary_auth_token = SecondaryAuthTokenList(self)
76-
return self._secondary_auth_token
77-
7838
def __repr__(self) -> str:
7939
"""
8040
Provide a friendly representation

twilio/rest/accounts/v1/auth_token_promotion.py

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)