Skip to content

Commit 8a62877

Browse files
author
childish-sambino
authored
chore: move list implementations to the bottom (#689)
Needed for future work where list methods are typed with instance and context types which must already be defined.
1 parent 6903bfe commit 8a62877

File tree

458 files changed

+145327
-145832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+145327
-145832
lines changed

twilio/rest/accounts/v1/auth_token_promotion.py

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,13 @@
1414

1515

1616
from typing import Optional
17-
from twilio.base import deserialize
18-
from twilio.base import values
17+
from twilio.base import deserialize, values
1918
from twilio.base.instance_context import InstanceContext
2019
from twilio.base.instance_resource import InstanceResource
2120
from twilio.base.list_resource import ListResource
2221
from twilio.base.version import Version
2322

2423

25-
class AuthTokenPromotionList(ListResource):
26-
def __init__(self, version: Version):
27-
"""
28-
Initialize the AuthTokenPromotionList
29-
30-
:param Version version: Version that contains the resource
31-
32-
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList
33-
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList
34-
"""
35-
super().__init__(version)
36-
37-
def get(self):
38-
"""
39-
Constructs a AuthTokenPromotionContext
40-
41-
42-
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
43-
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
44-
"""
45-
return AuthTokenPromotionContext(self._version)
46-
47-
def __call__(self):
48-
"""
49-
Constructs a AuthTokenPromotionContext
50-
51-
52-
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
53-
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
54-
"""
55-
return AuthTokenPromotionContext(self._version)
56-
57-
def __repr__(self):
58-
"""
59-
Provide a friendly representation
60-
61-
:returns: Machine friendly representation
62-
:rtype: str
63-
"""
64-
return "<Twilio.Accounts.V1.AuthTokenPromotionList>"
65-
66-
6724
class AuthTokenPromotionInstance(InstanceResource):
6825
def __init__(self, version, payload):
6926
"""
@@ -230,3 +187,45 @@ def __repr__(self):
230187
"""
231188

232189
return "<Twilio.Accounts.V1.AuthTokenPromotionContext>"
190+
191+
192+
class AuthTokenPromotionList(ListResource):
193+
def __init__(self, version: Version):
194+
"""
195+
Initialize the AuthTokenPromotionList
196+
197+
:param Version version: Version that contains the resource
198+
199+
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList
200+
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList
201+
"""
202+
super().__init__(version)
203+
204+
def get(self):
205+
"""
206+
Constructs a AuthTokenPromotionContext
207+
208+
209+
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
210+
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
211+
"""
212+
return AuthTokenPromotionContext(self._version)
213+
214+
def __call__(self):
215+
"""
216+
Constructs a AuthTokenPromotionContext
217+
218+
219+
:returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
220+
:rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
221+
"""
222+
return AuthTokenPromotionContext(self._version)
223+
224+
def __repr__(self):
225+
"""
226+
Provide a friendly representation
227+
228+
:returns: Machine friendly representation
229+
:rtype: str
230+
"""
231+
return "<Twilio.Accounts.V1.AuthTokenPromotionList>"

0 commit comments

Comments
 (0)