Skip to content

Commit 7c85ffd

Browse files
author
childish-sambino
authored
Update resources after sorting (#488)
1 parent eadbcba commit 7c85ffd

File tree

13 files changed

+146
-146
lines changed

13 files changed

+146
-146
lines changed

twilio/rest/authy/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ def v1(self):
3737
return self._v1
3838

3939
@property
40-
def services(self):
40+
def forms(self):
4141
"""
42-
:rtype: twilio.rest.authy.v1.service.ServiceList
42+
:rtype: twilio.rest.authy.v1.form.FormList
4343
"""
44-
return self.v1.services
44+
return self.v1.forms
4545

4646
@property
47-
def forms(self):
47+
def services(self):
4848
"""
49-
:rtype: twilio.rest.authy.v1.form.FormList
49+
:rtype: twilio.rest.authy.v1.service.ServiceList
5050
"""
51-
return self.v1.forms
51+
return self.v1.services
5252

5353
def __repr__(self):
5454
"""

twilio/rest/authy/v1/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ def __init__(self, domain):
2222
"""
2323
super(V1, self).__init__(domain)
2424
self.version = 'v1'
25-
self._services = None
2625
self._forms = None
27-
28-
@property
29-
def services(self):
30-
"""
31-
:rtype: twilio.rest.authy.v1.service.ServiceList
32-
"""
33-
if self._services is None:
34-
self._services = ServiceList(self)
35-
return self._services
26+
self._services = None
3627

3728
@property
3829
def forms(self):
@@ -43,6 +34,15 @@ def forms(self):
4334
self._forms = FormList(self)
4435
return self._forms
4536

37+
@property
38+
def services(self):
39+
"""
40+
:rtype: twilio.rest.authy.v1.service.ServiceList
41+
"""
42+
if self._services is None:
43+
self._services = ServiceList(self)
44+
return self._services
45+
4646
def __repr__(self):
4747
"""
4848
Provide a friendly representation

twilio/rest/flex_api/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,32 +37,32 @@ def v1(self):
3737
return self._v1
3838

3939
@property
40-
def flex_flow(self):
40+
def channel(self):
4141
"""
42-
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
42+
:rtype: twilio.rest.flex_api.v1.channel.ChannelList
4343
"""
44-
return self.v1.flex_flow
44+
return self.v1.channel
4545

4646
@property
47-
def channel(self):
47+
def configuration(self):
4848
"""
49-
:rtype: twilio.rest.flex_api.v1.channel.ChannelList
49+
:rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList
5050
"""
51-
return self.v1.channel
51+
return self.v1.configuration
5252

5353
@property
54-
def web_channel(self):
54+
def flex_flow(self):
5555
"""
56-
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
56+
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
5757
"""
58-
return self.v1.web_channel
58+
return self.v1.flex_flow
5959

6060
@property
61-
def configuration(self):
61+
def web_channel(self):
6262
"""
63-
:rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList
63+
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
6464
"""
65-
return self.v1.configuration
65+
return self.v1.web_channel
6666

6767
def __repr__(self):
6868
"""

twilio/rest/flex_api/v1/__init__.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,10 @@ def __init__(self, domain):
2424
"""
2525
super(V1, self).__init__(domain)
2626
self.version = 'v1'
27-
self._flex_flow = None
2827
self._channel = None
29-
self._web_channel = None
3028
self._configuration = None
31-
32-
@property
33-
def flex_flow(self):
34-
"""
35-
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
36-
"""
37-
if self._flex_flow is None:
38-
self._flex_flow = FlexFlowList(self)
39-
return self._flex_flow
29+
self._flex_flow = None
30+
self._web_channel = None
4031

4132
@property
4233
def channel(self):
@@ -47,15 +38,6 @@ def channel(self):
4738
self._channel = ChannelList(self)
4839
return self._channel
4940

50-
@property
51-
def web_channel(self):
52-
"""
53-
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
54-
"""
55-
if self._web_channel is None:
56-
self._web_channel = WebChannelList(self)
57-
return self._web_channel
58-
5941
@property
6042
def configuration(self):
6143
"""
@@ -65,6 +47,24 @@ def configuration(self):
6547
self._configuration = ConfigurationList(self)
6648
return self._configuration
6749

50+
@property
51+
def flex_flow(self):
52+
"""
53+
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
54+
"""
55+
if self._flex_flow is None:
56+
self._flex_flow = FlexFlowList(self)
57+
return self._flex_flow
58+
59+
@property
60+
def web_channel(self):
61+
"""
62+
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
63+
"""
64+
if self._web_channel is None:
65+
self._web_channel = WebChannelList(self)
66+
return self._web_channel
67+
6868
def __repr__(self):
6969
"""
7070
Provide a friendly representation

twilio/rest/messaging/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ def v1(self):
3737
return self._v1
3838

3939
@property
40-
def sessions(self):
40+
def services(self):
4141
"""
42-
:rtype: twilio.rest.messaging.v1.session.SessionList
42+
:rtype: twilio.rest.messaging.v1.service.ServiceList
4343
"""
44-
return self.v1.sessions
44+
return self.v1.services
4545

4646
@property
47-
def services(self):
47+
def sessions(self):
4848
"""
49-
:rtype: twilio.rest.messaging.v1.service.ServiceList
49+
:rtype: twilio.rest.messaging.v1.session.SessionList
5050
"""
51-
return self.v1.services
51+
return self.v1.sessions
5252

5353
@property
5454
def webhooks(self):

twilio/rest/messaging/v1/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,10 @@ def __init__(self, domain):
2323
"""
2424
super(V1, self).__init__(domain)
2525
self.version = 'v1'
26-
self._sessions = None
2726
self._services = None
27+
self._sessions = None
2828
self._webhooks = None
2929

30-
@property
31-
def sessions(self):
32-
"""
33-
:rtype: twilio.rest.messaging.v1.session.SessionList
34-
"""
35-
if self._sessions is None:
36-
self._sessions = SessionList(self)
37-
return self._sessions
38-
3930
@property
4031
def services(self):
4132
"""
@@ -45,6 +36,15 @@ def services(self):
4536
self._services = ServiceList(self)
4637
return self._services
4738

39+
@property
40+
def sessions(self):
41+
"""
42+
:rtype: twilio.rest.messaging.v1.session.SessionList
43+
"""
44+
if self._sessions is None:
45+
self._sessions = SessionList(self)
46+
return self._sessions
47+
4848
@property
4949
def webhooks(self):
5050
"""

twilio/rest/preview/__init__.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,18 @@ def hosted_number_orders(self):
168168
return self.hosted_numbers.hosted_number_orders
169169

170170
@property
171-
def installed_add_ons(self):
171+
def available_add_ons(self):
172172
"""
173-
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
173+
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
174174
"""
175-
return self.marketplace.installed_add_ons
175+
return self.marketplace.available_add_ons
176176

177177
@property
178-
def available_add_ons(self):
178+
def installed_add_ons(self):
179179
"""
180-
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
180+
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
181181
"""
182-
return self.marketplace.available_add_ons
182+
return self.marketplace.installed_add_ons
183183

184184
@property
185185
def services(self):
@@ -224,32 +224,32 @@ def branded_calls(self):
224224
return self.trusted_comms.branded_calls
225225

226226
@property
227-
def devices(self):
227+
def cps(self):
228228
"""
229-
:rtype: twilio.rest.preview.trusted_comms.device.DeviceList
229+
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
230230
"""
231-
return self.trusted_comms.devices
231+
return self.trusted_comms.cps
232232

233233
@property
234-
def phone_calls(self):
234+
def current_calls(self):
235235
"""
236-
:rtype: twilio.rest.preview.trusted_comms.phone_call.PhoneCallList
236+
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
237237
"""
238-
return self.trusted_comms.phone_calls
238+
return self.trusted_comms.current_calls
239239

240240
@property
241-
def current_calls(self):
241+
def devices(self):
242242
"""
243-
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
243+
:rtype: twilio.rest.preview.trusted_comms.device.DeviceList
244244
"""
245-
return self.trusted_comms.current_calls
245+
return self.trusted_comms.devices
246246

247247
@property
248-
def cps(self):
248+
def phone_calls(self):
249249
"""
250-
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
250+
:rtype: twilio.rest.preview.trusted_comms.phone_call.PhoneCallList
251251
"""
252-
return self.trusted_comms.cps
252+
return self.trusted_comms.phone_calls
253253

254254
def __repr__(self):
255255
"""

twilio/rest/preview/marketplace/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ def __init__(self, domain):
2222
"""
2323
super(Marketplace, self).__init__(domain)
2424
self.version = 'marketplace'
25-
self._installed_add_ons = None
2625
self._available_add_ons = None
27-
28-
@property
29-
def installed_add_ons(self):
30-
"""
31-
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
32-
"""
33-
if self._installed_add_ons is None:
34-
self._installed_add_ons = InstalledAddOnList(self)
35-
return self._installed_add_ons
26+
self._installed_add_ons = None
3627

3728
@property
3829
def available_add_ons(self):
@@ -43,6 +34,15 @@ def available_add_ons(self):
4334
self._available_add_ons = AvailableAddOnList(self)
4435
return self._available_add_ons
4536

37+
@property
38+
def installed_add_ons(self):
39+
"""
40+
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
41+
"""
42+
if self._installed_add_ons is None:
43+
self._installed_add_ons = InstalledAddOnList(self)
44+
return self._installed_add_ons
45+
4646
def __repr__(self):
4747
"""
4848
Provide a friendly representation

twilio/rest/preview/trusted_comms/__init__.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def __init__(self, domain):
2626
super(TrustedComms, self).__init__(domain)
2727
self.version = 'TrustedComms'
2828
self._branded_calls = None
29+
self._cps = None
30+
self._current_calls = None
2931
self._devices = None
3032
self._phone_calls = None
31-
self._current_calls = None
32-
self._cps = None
3333

3434
@property
3535
def branded_calls(self):
@@ -40,6 +40,24 @@ def branded_calls(self):
4040
self._branded_calls = BrandedCallList(self)
4141
return self._branded_calls
4242

43+
@property
44+
def cps(self):
45+
"""
46+
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
47+
"""
48+
if self._cps is None:
49+
self._cps = CpsList(self)
50+
return self._cps
51+
52+
@property
53+
def current_calls(self):
54+
"""
55+
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
56+
"""
57+
if self._current_calls is None:
58+
self._current_calls = CurrentCallList(self)
59+
return self._current_calls
60+
4361
@property
4462
def devices(self):
4563
"""
@@ -58,24 +76,6 @@ def phone_calls(self):
5876
self._phone_calls = PhoneCallList(self)
5977
return self._phone_calls
6078

61-
@property
62-
def current_calls(self):
63-
"""
64-
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
65-
"""
66-
if self._current_calls is None:
67-
self._current_calls = CurrentCallList(self)
68-
return self._current_calls
69-
70-
@property
71-
def cps(self):
72-
"""
73-
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
74-
"""
75-
if self._cps is None:
76-
self._cps = CpsList(self)
77-
return self._cps
78-
7979
def __repr__(self):
8080
"""
8181
Provide a friendly representation

0 commit comments

Comments
 (0)