Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update resources after sorting #488

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions twilio/rest/authy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ def v1(self):
return self._v1

@property
def services(self):
def forms(self):
"""
:rtype: twilio.rest.authy.v1.service.ServiceList
:rtype: twilio.rest.authy.v1.form.FormList
"""
return self.v1.services
return self.v1.forms

@property
def forms(self):
def services(self):
"""
:rtype: twilio.rest.authy.v1.form.FormList
:rtype: twilio.rest.authy.v1.service.ServiceList
"""
return self.v1.forms
return self.v1.services

def __repr__(self):
"""
Expand Down
20 changes: 10 additions & 10 deletions twilio/rest/authy/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,8 @@ def __init__(self, domain):
"""
super(V1, self).__init__(domain)
self.version = 'v1'
self._services = None
self._forms = None

@property
def services(self):
"""
:rtype: twilio.rest.authy.v1.service.ServiceList
"""
if self._services is None:
self._services = ServiceList(self)
return self._services
self._services = None

@property
def forms(self):
Expand All @@ -43,6 +34,15 @@ def forms(self):
self._forms = FormList(self)
return self._forms

@property
def services(self):
"""
:rtype: twilio.rest.authy.v1.service.ServiceList
"""
if self._services is None:
self._services = ServiceList(self)
return self._services

def __repr__(self):
"""
Provide a friendly representation
Expand Down
24 changes: 12 additions & 12 deletions twilio/rest/flex_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,32 @@ def v1(self):
return self._v1

@property
def flex_flow(self):
def channel(self):
"""
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
:rtype: twilio.rest.flex_api.v1.channel.ChannelList
"""
return self.v1.flex_flow
return self.v1.channel

@property
def channel(self):
def configuration(self):
"""
:rtype: twilio.rest.flex_api.v1.channel.ChannelList
:rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList
"""
return self.v1.channel
return self.v1.configuration

@property
def web_channel(self):
def flex_flow(self):
"""
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
"""
return self.v1.web_channel
return self.v1.flex_flow

@property
def configuration(self):
def web_channel(self):
"""
:rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
"""
return self.v1.configuration
return self.v1.web_channel

def __repr__(self):
"""
Expand Down
40 changes: 20 additions & 20 deletions twilio/rest/flex_api/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ def __init__(self, domain):
"""
super(V1, self).__init__(domain)
self.version = 'v1'
self._flex_flow = None
self._channel = None
self._web_channel = None
self._configuration = None

@property
def flex_flow(self):
"""
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
"""
if self._flex_flow is None:
self._flex_flow = FlexFlowList(self)
return self._flex_flow
self._flex_flow = None
self._web_channel = None

@property
def channel(self):
Expand All @@ -47,15 +38,6 @@ def channel(self):
self._channel = ChannelList(self)
return self._channel

@property
def web_channel(self):
"""
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
"""
if self._web_channel is None:
self._web_channel = WebChannelList(self)
return self._web_channel

@property
def configuration(self):
"""
Expand All @@ -65,6 +47,24 @@ def configuration(self):
self._configuration = ConfigurationList(self)
return self._configuration

@property
def flex_flow(self):
"""
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList
"""
if self._flex_flow is None:
self._flex_flow = FlexFlowList(self)
return self._flex_flow

@property
def web_channel(self):
"""
:rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList
"""
if self._web_channel is None:
self._web_channel = WebChannelList(self)
return self._web_channel

def __repr__(self):
"""
Provide a friendly representation
Expand Down
12 changes: 6 additions & 6 deletions twilio/rest/messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ def v1(self):
return self._v1

@property
def sessions(self):
def services(self):
"""
:rtype: twilio.rest.messaging.v1.session.SessionList
:rtype: twilio.rest.messaging.v1.service.ServiceList
"""
return self.v1.sessions
return self.v1.services

@property
def services(self):
def sessions(self):
"""
:rtype: twilio.rest.messaging.v1.service.ServiceList
:rtype: twilio.rest.messaging.v1.session.SessionList
"""
return self.v1.services
return self.v1.sessions

@property
def webhooks(self):
Expand Down
20 changes: 10 additions & 10 deletions twilio/rest/messaging/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@ def __init__(self, domain):
"""
super(V1, self).__init__(domain)
self.version = 'v1'
self._sessions = None
self._services = None
self._sessions = None
self._webhooks = None

@property
def sessions(self):
"""
:rtype: twilio.rest.messaging.v1.session.SessionList
"""
if self._sessions is None:
self._sessions = SessionList(self)
return self._sessions

@property
def services(self):
"""
Expand All @@ -45,6 +36,15 @@ def services(self):
self._services = ServiceList(self)
return self._services

@property
def sessions(self):
"""
:rtype: twilio.rest.messaging.v1.session.SessionList
"""
if self._sessions is None:
self._sessions = SessionList(self)
return self._sessions

@property
def webhooks(self):
"""
Expand Down
36 changes: 18 additions & 18 deletions twilio/rest/preview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ def hosted_number_orders(self):
return self.hosted_numbers.hosted_number_orders

@property
def installed_add_ons(self):
def available_add_ons(self):
"""
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
"""
return self.marketplace.installed_add_ons
return self.marketplace.available_add_ons

@property
def available_add_ons(self):
def installed_add_ons(self):
"""
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
"""
return self.marketplace.available_add_ons
return self.marketplace.installed_add_ons

@property
def services(self):
Expand Down Expand Up @@ -224,32 +224,32 @@ def branded_calls(self):
return self.trusted_comms.branded_calls

@property
def devices(self):
def cps(self):
"""
:rtype: twilio.rest.preview.trusted_comms.device.DeviceList
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
"""
return self.trusted_comms.devices
return self.trusted_comms.cps

@property
def phone_calls(self):
def current_calls(self):
"""
:rtype: twilio.rest.preview.trusted_comms.phone_call.PhoneCallList
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
"""
return self.trusted_comms.phone_calls
return self.trusted_comms.current_calls

@property
def current_calls(self):
def devices(self):
"""
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
:rtype: twilio.rest.preview.trusted_comms.device.DeviceList
"""
return self.trusted_comms.current_calls
return self.trusted_comms.devices

@property
def cps(self):
def phone_calls(self):
"""
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
:rtype: twilio.rest.preview.trusted_comms.phone_call.PhoneCallList
"""
return self.trusted_comms.cps
return self.trusted_comms.phone_calls

def __repr__(self):
"""
Expand Down
20 changes: 10 additions & 10 deletions twilio/rest/preview/marketplace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,8 @@ def __init__(self, domain):
"""
super(Marketplace, self).__init__(domain)
self.version = 'marketplace'
self._installed_add_ons = None
self._available_add_ons = None

@property
def installed_add_ons(self):
"""
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
"""
if self._installed_add_ons is None:
self._installed_add_ons = InstalledAddOnList(self)
return self._installed_add_ons
self._installed_add_ons = None

@property
def available_add_ons(self):
Expand All @@ -43,6 +34,15 @@ def available_add_ons(self):
self._available_add_ons = AvailableAddOnList(self)
return self._available_add_ons

@property
def installed_add_ons(self):
"""
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
"""
if self._installed_add_ons is None:
self._installed_add_ons = InstalledAddOnList(self)
return self._installed_add_ons

def __repr__(self):
"""
Provide a friendly representation
Expand Down
40 changes: 20 additions & 20 deletions twilio/rest/preview/trusted_comms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def __init__(self, domain):
super(TrustedComms, self).__init__(domain)
self.version = 'TrustedComms'
self._branded_calls = None
self._cps = None
self._current_calls = None
self._devices = None
self._phone_calls = None
self._current_calls = None
self._cps = None

@property
def branded_calls(self):
Expand All @@ -40,6 +40,24 @@ def branded_calls(self):
self._branded_calls = BrandedCallList(self)
return self._branded_calls

@property
def cps(self):
"""
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
"""
if self._cps is None:
self._cps = CpsList(self)
return self._cps

@property
def current_calls(self):
"""
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
"""
if self._current_calls is None:
self._current_calls = CurrentCallList(self)
return self._current_calls

@property
def devices(self):
"""
Expand All @@ -58,24 +76,6 @@ def phone_calls(self):
self._phone_calls = PhoneCallList(self)
return self._phone_calls

@property
def current_calls(self):
"""
:rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
"""
if self._current_calls is None:
self._current_calls = CurrentCallList(self)
return self._current_calls

@property
def cps(self):
"""
:rtype: twilio.rest.preview.trusted_comms.cps.CpsList
"""
if self._cps is None:
self._cps = CpsList(self)
return self._cps

def __repr__(self):
"""
Provide a friendly representation
Expand Down
Loading