Skip to content
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
6 changes: 3 additions & 3 deletions twilio/rest/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class Accounts(AccountsBase):

@property
def auth_token_promotion(self):
warn('auth_token_promotion() is deprecated. Use v1.auth_token_promotion() instead.', DeprecationWarning, stacklevel=2)
warn('auth_token_promotion is deprecated. Use v1.auth_token_promotion instead.', DeprecationWarning, stacklevel=2)
return self.v1.auth_token_promotion

@property
def credentials(self):
warn('credentials() is deprecated. Use v1.credentials() instead.', DeprecationWarning, stacklevel=2)
warn('credentials is deprecated. Use v1.credentials instead.', DeprecationWarning, stacklevel=2)
return self.v1.credentials

@property
def secondary_auth_token(self):
warn('secondary_auth_token() is deprecated. Use v1.secondary_auth_token() instead.', DeprecationWarning, stacklevel=2)
warn('secondary_auth_token is deprecated. Use v1.secondary_auth_token instead.', DeprecationWarning, stacklevel=2)
return self.v1.secondary_auth_token
52 changes: 26 additions & 26 deletions twilio/rest/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,130 +6,130 @@ class Api(ApiBase):

@property
def account(self):
warn('account() is deprecated. Use v2010.account() instead.', DeprecationWarning, stacklevel=2)
warn('account is deprecated. Use v2010.account instead.', DeprecationWarning, stacklevel=2)
return self.v2010.account

def accounts(self):
warn('accounts() is deprecated. Use v2010.accounts() instead.', DeprecationWarning, stacklevel=2)
warn('accounts is deprecated. Use v2010.accounts instead.', DeprecationWarning, stacklevel=2)
return self.v2010.accounts

@property
def addresses(self):
warn('addresses() is deprecated. Use v2010.addresses() instead.', DeprecationWarning, stacklevel=2)
warn('addresses is deprecated. Use v2010.addresses instead.', DeprecationWarning, stacklevel=2)
return self.account.addresses

@property
def applications(self):
warn('applications() is deprecated. Use v2010.applications() instead.', DeprecationWarning, stacklevel=2)
warn('applications is deprecated. Use v2010.applications instead.', DeprecationWarning, stacklevel=2)
return self.account.applications

@property
def authorized_connect_apps(self):
warn('authorized_connect_apps() is deprecated. Use v2010.authorized_connect_apps() instead.', DeprecationWarning, stacklevel=2)
warn('authorized_connect_apps is deprecated. Use v2010.authorized_connect_apps instead.', DeprecationWarning, stacklevel=2)
return self.account.authorized_connect_apps

@property
def available_phone_numbers(self):
warn('available_phone_numbers() is deprecated. Use v2010.available_phone_numbers() instead.', DeprecationWarning, stacklevel=2)
warn('available_phone_numbers is deprecated. Use v2010.available_phone_numbers instead.', DeprecationWarning, stacklevel=2)
return self.account.available_phone_numbers

@property
def balance(self):
warn('balance() is deprecated. Use v2010.balance() instead.', DeprecationWarning, stacklevel=2)
warn('balance is deprecated. Use v2010.balance instead.', DeprecationWarning, stacklevel=2)
return self.account.balance

@property
def calls(self):
warn('calls() is deprecated. Use v2010.calls() instead.', DeprecationWarning, stacklevel=2)
warn('calls is deprecated. Use v2010.calls instead.', DeprecationWarning, stacklevel=2)
return self.account.calls

@property
def conferences(self):
warn('conferences() is deprecated. Use v2010.conferences() instead.', DeprecationWarning, stacklevel=2)
warn('conferences is deprecated. Use v2010.conferences instead.', DeprecationWarning, stacklevel=2)
return self.account.conferences

@property
def connect_apps(self):
warn('connect_apps() is deprecated. Use v2010.connect_apps() instead.', DeprecationWarning, stacklevel=2)
warn('connect_apps is deprecated. Use v2010.connect_apps instead.', DeprecationWarning, stacklevel=2)
return self.account.connect_apps

@property
def incoming_phone_numbers(self):
warn('incoming_phone_numbers() is deprecated. Use incoming_phone_numbers.calls() instead.', DeprecationWarning, stacklevel=2)
warn('incoming_phone_numbers is deprecated. Use incoming_phone_numbers.calls instead.', DeprecationWarning, stacklevel=2)
return self.account.incoming_phone_numbers

@property
def keys(self):
warn('keys() is deprecated. Use v2010.keys() instead.', DeprecationWarning, stacklevel=2)
warn('keys is deprecated. Use v2010.keys instead.', DeprecationWarning, stacklevel=2)
return self.account.keys

@property
def messages(self):
warn('messages() is deprecated. Use v2010.messages() instead.', DeprecationWarning, stacklevel=2)
warn('messages is deprecated. Use v2010.messages instead.', DeprecationWarning, stacklevel=2)
return self.account.messages

@property
def new_keys(self):
warn('new_keys() is deprecated. Use new_keys.calls() instead.', DeprecationWarning, stacklevel=2)
warn('new_keys is deprecated. Use new_keys.calls instead.', DeprecationWarning, stacklevel=2)
return self.account.new_keys

@property
def new_signing_keys(self):
warn('new_signing_keys() is deprecated. Use v2010.new_signing_keys() instead.', DeprecationWarning, stacklevel=2)
warn('new_signing_keys is deprecated. Use v2010.new_signing_keys instead.', DeprecationWarning, stacklevel=2)
return self.account.new_signing_keys

@property
def notifications(self):
warn('notifications() is deprecated. Use v2010.notifications() instead.', DeprecationWarning, stacklevel=2)
warn('notifications is deprecated. Use v2010.notifications instead.', DeprecationWarning, stacklevel=2)
return self.account.notifications

@property
def outgoing_caller_ids(self):
warn('outgoing_caller_ids() is deprecated. Use v2010.outgoing_caller_ids() instead.', DeprecationWarning, stacklevel=2)
warn('outgoing_caller_ids is deprecated. Use v2010.outgoing_caller_ids instead.', DeprecationWarning, stacklevel=2)
return self.account.outgoing_caller_ids

@property
def queues(self):
warn('queues() is deprecated. Use v2010.queues() instead.', DeprecationWarning, stacklevel=2)
warn('queues is deprecated. Use v2010.queues instead.', DeprecationWarning, stacklevel=2)
return self.account.queues

@property
def recordings(self):
warn('recordings() is deprecated. Use v2010.recordings() instead.', DeprecationWarning, stacklevel=2)
warn('recordings is deprecated. Use v2010.recordings instead.', DeprecationWarning, stacklevel=2)
return self.account.recordings

@property
def signing_keys(self):
warn('signing_keys() is deprecated. Use v2010.signing_keys() instead.', DeprecationWarning, stacklevel=2)
warn('signing_keys is deprecated. Use v2010.signing_keys instead.', DeprecationWarning, stacklevel=2)
return self.account.signing_keys

@property
def sip(self):
warn('sip() is deprecated. Use v2010.sip() instead.', DeprecationWarning, stacklevel=2)
warn('sip is deprecated. Use v2010.sip instead.', DeprecationWarning, stacklevel=2)
return self.account.sip

@property
def short_codes(self):
warn('short_codes() is deprecated. Use v2010.short_codes() instead.', DeprecationWarning, stacklevel=2)
warn('short_codes is deprecated. Use v2010.short_codes instead.', DeprecationWarning, stacklevel=2)
return self.account.short_codes

@property
def tokens(self):
warn('tokens() is deprecated. Use v2010.tokens() instead.', DeprecationWarning, stacklevel=2)
warn('tokens is deprecated. Use v2010.tokens instead.', DeprecationWarning, stacklevel=2)
return self.account.tokens

@property
def transcriptions(self):
warn('transcriptions() is deprecated. Use v2010.transcriptions() instead.', DeprecationWarning, stacklevel=2)
warn('transcriptions is deprecated. Use v2010.transcriptions instead.', DeprecationWarning, stacklevel=2)
return self.account.transcriptions

@property
def usage(self):
warn('usage() is deprecated. Use v2010.usage() instead.', DeprecationWarning, stacklevel=2)
warn('usage is deprecated. Use v2010.usage instead.', DeprecationWarning, stacklevel=2)
return self.account.usage

@property
def validation_requests(self):
warn('validation_requests() is deprecated. Use v2010.validation_requests() instead.', DeprecationWarning, stacklevel=2)
warn('validation_requests is deprecated. Use v2010.validation_requests instead.', DeprecationWarning, stacklevel=2)
return self.account.validation_requests

4 changes: 2 additions & 2 deletions twilio/rest/autopilot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class Autopilot(AutopilotBase):

@property
def assistants(self):
warn('assistants() is deprecated. Use v1.assistants() instead.', DeprecationWarning, stacklevel=2)
warn('assistants is deprecated. Use v1.assistants instead.', DeprecationWarning, stacklevel=2)
return self.v1.assistants

@property
def restore_assistant(self):
warn('restore_assistant() is deprecated. Use v1.restore_assistant() instead.', DeprecationWarning, stacklevel=2)
warn('restore_assistant is deprecated. Use v1.restore_assistant instead.', DeprecationWarning, stacklevel=2)
return self.v1.restore_assistant
4 changes: 2 additions & 2 deletions twilio/rest/bulkexports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class Bulkexports(BulkexportsBase):

@property
def exports(self):
warn('exports() is deprecated. Use v1.exports() instead.', DeprecationWarning, stacklevel=2)
warn('exports is deprecated. Use v1.exports instead.', DeprecationWarning, stacklevel=2)
return self.v1.exports

@property
def export_configuration(self):
warn('export_configuration() is deprecated. Use v1.export_configuration() instead.', DeprecationWarning, stacklevel=2)
warn('export_configuration is deprecated. Use v1.export_configuration instead.', DeprecationWarning, stacklevel=2)
return self.v1.export_configuration
6 changes: 3 additions & 3 deletions twilio/rest/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class Chat(ChatBase):

@property
def credentials(self):
warn('credentials() is deprecated. Use v2.credentials() instead.', DeprecationWarning, stacklevel=2)
warn('credentials is deprecated. Use v2.credentials instead.', DeprecationWarning, stacklevel=2)
return self.v2.credentials

@property
def services(self):
warn('services() is deprecated. Use v2.services() instead.', DeprecationWarning, stacklevel=2)
warn('services is deprecated. Use v2.services instead.', DeprecationWarning, stacklevel=2)
return self.v2.services

@property
def channels(self):
warn('channels() is deprecated. Use v3.channels() instead.', DeprecationWarning, stacklevel=2)
warn('channels is deprecated. Use v3.channels instead.', DeprecationWarning, stacklevel=2)
return self.v3.channels
2 changes: 1 addition & 1 deletion twilio/rest/content/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class Content(ContentBase):

@property
def contents(self):
warn('contents() is deprecated. Use v1.contents() instead.', DeprecationWarning, stacklevel=2)
warn('contents is deprecated. Use v1.contents instead.', DeprecationWarning, stacklevel=2)
return self.v1.contents
16 changes: 8 additions & 8 deletions twilio/rest/conversations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ class Conversations(ConversationsBase):

@property
def configuration(self):
warn('configuration() is deprecated. Use v1.configuration() instead.', DeprecationWarning, stacklevel=2)
warn('configuration is deprecated. Use v1.configuration instead.', DeprecationWarning, stacklevel=2)
return self.v1.configuration

@property
def address_configurations(self):
warn('address_configurations() is deprecated. Use v1.address_configurations() instead.', DeprecationWarning, stacklevel=2)
warn('address_configurations is deprecated. Use v1.address_configurations instead.', DeprecationWarning, stacklevel=2)
return self.v1.address_configurations

@property
def conversations(self):
warn('conversations() is deprecated. Use v1.conversations() instead.', DeprecationWarning, stacklevel=2)
warn('conversations is deprecated. Use v1.conversations instead.', DeprecationWarning, stacklevel=2)
return self.v1.conversations

@property
def credentials(self):
warn('credentials() is deprecated. Use v1.credentials() instead.', DeprecationWarning, stacklevel=2)
warn('credentials is deprecated. Use v1.credentials instead.', DeprecationWarning, stacklevel=2)
return self.v1.credentials

@property
def participant_conversations(self):
warn('participant_conversations() is deprecated. Use v1.participant_conversations() instead.', DeprecationWarning, stacklevel=2)
warn('participant_conversations is deprecated. Use v1.participant_conversations instead.', DeprecationWarning, stacklevel=2)
return self.v1.participant_conversations

@property
def roles(self):
warn('roles() is deprecated. Use v1.roles() instead.', DeprecationWarning, stacklevel=2)
warn('roles is deprecated. Use v1.roles instead.', DeprecationWarning, stacklevel=2)
return self.v1.roles

@property
def services(self):
warn('services() is deprecated. Use v1.services() instead.', DeprecationWarning, stacklevel=2)
warn('services is deprecated. Use v1.services instead.', DeprecationWarning, stacklevel=2)
return self.v1.services

@property
def users(self):
warn('users() is deprecated. Use v1.users() instead.', DeprecationWarning, stacklevel=2)
warn('users is deprecated. Use v1.users instead.', DeprecationWarning, stacklevel=2)
return self.v1.users
8 changes: 4 additions & 4 deletions twilio/rest/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ class Events(EventsBase):

@property
def event_types(self):
warn('event_types() is deprecated. Use v1.event_types() instead.', DeprecationWarning, stacklevel=2)
warn('event_types is deprecated. Use v1.event_types instead.', DeprecationWarning, stacklevel=2)
return self.v1.event_types

@property
def schemas(self):
warn('schemas() is deprecated. Use v1.schemas() instead.', DeprecationWarning, stacklevel=2)
warn('schemas is deprecated. Use v1.schemas instead.', DeprecationWarning, stacklevel=2)
return self.v1.schemas

@property
def sinks(self):
warn('sinks() is deprecated. Use v1.sinks() instead.', DeprecationWarning, stacklevel=2)
warn('sinks is deprecated. Use v1.sinks instead.', DeprecationWarning, stacklevel=2)
return self.v1.sinks

@property
def subscriptions(self):
warn('subscriptions() is deprecated. Use v1.subscriptions() instead.', DeprecationWarning, stacklevel=2)
warn('subscriptions is deprecated. Use v1.subscriptions instead.', DeprecationWarning, stacklevel=2)
return self.v1.subscriptions
14 changes: 7 additions & 7 deletions twilio/rest/flex_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ class FlexApi(FlexApiBase):

@property
def assessments(self):
warn('assessments() is deprecated. Use v1.assessments() instead.', DeprecationWarning, stacklevel=2)
warn('assessments is deprecated. Use v1.assessments instead.', DeprecationWarning, stacklevel=2)
return self.v1.assessments

@property
def channel(self):
warn('channel() is deprecated. Use v1.channel() instead.', DeprecationWarning, stacklevel=2)
warn('channel is deprecated. Use v1.channel instead.', DeprecationWarning, stacklevel=2)
return self.v1.channel

@property
def configuration(self):
warn('configuration() is deprecated. Use v1.configuration() instead.', DeprecationWarning, stacklevel=2)
warn('configuration is deprecated. Use v1.configuration instead.', DeprecationWarning, stacklevel=2)
return self.v1.configuration

@property
def flex_flow(self):
warn('flex_flow() is deprecated. Use v1.flex_flow() instead.', DeprecationWarning, stacklevel=2)
warn('flex_flow is deprecated. Use v1.flex_flow instead.', DeprecationWarning, stacklevel=2)
return self.v1.flex_flow

@property
def interaction(self):
warn('interaction() is deprecated. Use v1.interaction() instead.', DeprecationWarning, stacklevel=2)
warn('interaction is deprecated. Use v1.interaction instead.', DeprecationWarning, stacklevel=2)
return self.v1.interaction

@property
def web_channel(self):
warn('web_channel() is deprecated. Use v1.web_channel() instead.', DeprecationWarning, stacklevel=2)
warn('web_channel is deprecated. Use v1.web_channel instead.', DeprecationWarning, stacklevel=2)
return self.v1.web_channel

@property
def web_channels(self):
warn('web_channels() is deprecated. Use v2.web_channels() instead.', DeprecationWarning, stacklevel=2)
warn('web_channels is deprecated. Use v2.web_channels instead.', DeprecationWarning, stacklevel=2)
return self.v2.web_channels
2 changes: 1 addition & 1 deletion twilio/rest/frontline_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class FrontlineApi(FrontlineApiBase):

@property
def users(self):
warn('users() is deprecated. Use v1.users() instead.', DeprecationWarning, stacklevel=2)
warn('users is deprecated. Use v1.users instead.', DeprecationWarning, stacklevel=2)
return self.v1.users
10 changes: 5 additions & 5 deletions twilio/rest/insights/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ class Insights(InsightsBase):

@property
def settings(self):
warn('settings() is deprecated. Use v1.settings() instead.', DeprecationWarning, stacklevel=2)
warn('settings is deprecated. Use v1.settings instead.', DeprecationWarning, stacklevel=2)
return self.v1.settings

@property
def calls(self):
warn('calls() is deprecated. Use v1.calls() instead.', DeprecationWarning, stacklevel=2)
warn('calls is deprecated. Use v1.calls instead.', DeprecationWarning, stacklevel=2)
return self.v1.calls

@property
def call_summaries(self):
warn('call_summaries() is deprecated. Use v1.call_summaries() instead.', DeprecationWarning, stacklevel=2)
warn('call_summaries is deprecated. Use v1.call_summaries instead.', DeprecationWarning, stacklevel=2)
return self.v1.call_summaries

@property
def conferences(self):
warn('conferences() is deprecated. Use v1.conferences() instead.', DeprecationWarning, stacklevel=2)
warn('conferences is deprecated. Use v1.conferences instead.', DeprecationWarning, stacklevel=2)
return self.v1.conferences

@property
def rooms(self):
warn('rooms() is deprecated. Use v1.rooms() instead.', DeprecationWarning, stacklevel=2)
warn('rooms is deprecated. Use v1.rooms instead.', DeprecationWarning, stacklevel=2)
return self.v1.rooms
4 changes: 2 additions & 2 deletions twilio/rest/ip_messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class IpMessaging(IpMessagingBase):

@property
def credentials(self):
warn('credentials() is deprecated. Use v2.credentials() instead.', DeprecationWarning, stacklevel=2)
warn('credentials is deprecated. Use v2.credentials instead.', DeprecationWarning, stacklevel=2)
return self.v2.credentials

@property
def services(self):
warn('services() is deprecated. Use v2.services() instead.', DeprecationWarning, stacklevel=2)
warn('services is deprecated. Use v2.services instead.', DeprecationWarning, stacklevel=2)
return self.v2.services
Loading