From 5eda709b9348f249e40efa626889a2d807c6a8c8 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 11:02:59 -0500 Subject: [PATCH 01/11] chore: generate version files --- twilio/rest/accounts/v1/__init__.py | 62 +++-- twilio/rest/api/v2010/__init__.py | 227 ++---------------- twilio/rest/api/v2010/account/application.py | 1 + twilio/rest/autopilot/v1/__init__.py | 53 ++-- twilio/rest/bulkexports/v1/__init__.py | 53 ++-- twilio/rest/chat/v1/__init__.py | 53 ++-- twilio/rest/chat/v2/__init__.py | 53 ++-- twilio/rest/chat/v3/__init__.py | 44 ++-- twilio/rest/content/v1/__init__.py | 44 ++-- twilio/rest/conversations/v1/__init__.py | 115 ++++----- twilio/rest/events/v1/__init__.py | 71 +++--- twilio/rest/flex_api/v1/__init__.py | 155 ++++++------ .../v1/insights_questionnaires_category.py | 140 +++++++++++ .../v1/insights_questionnaires_question.py | 144 +++++++++++ twilio/rest/flex_api/v1/insights_session.py | 110 +++++++++ .../v1/insights_settings_answer_sets.py | 90 +++++++ .../flex_api/v1/insights_settings_comment.py | 88 +++++++ .../rest/flex_api/v1/insights_user_roles.py | 116 +++++++++ twilio/rest/flex_api/v2/__init__.py | 44 ++-- twilio/rest/frontline_api/v1/__init__.py | 44 ++-- twilio/rest/insights/v1/__init__.py | 90 +++---- twilio/rest/ip_messaging/v1/__init__.py | 53 ++-- twilio/rest/ip_messaging/v2/__init__.py | 53 ++-- twilio/rest/lookups/v1/__init__.py | 44 ++-- twilio/rest/lookups/v2/__init__.py | 44 ++-- twilio/rest/media/v1/__init__.py | 62 +++-- twilio/rest/messaging/v1/__init__.py | 107 ++++----- .../messaging/v1/tollfree_verification.py | 1 + twilio/rest/microvisor/v1/__init__.py | 53 ++-- twilio/rest/monitor/v1/__init__.py | 53 ++-- twilio/rest/notify/v1/__init__.py | 53 ++-- twilio/rest/numbers/v2/__init__.py | 44 ++-- twilio/rest/oauth/v1/__init__.py | 88 +++---- twilio/rest/preview/DeployedDevices.py | 45 ++-- twilio/rest/preview/HostedNumbers.py | 57 ++--- twilio/rest/preview/Marketplace.py | 57 ++--- twilio/rest/preview/Sync.py | 45 ++-- twilio/rest/preview/Understand.py | 45 ++-- twilio/rest/preview/Wireless.py | 69 +++--- twilio/rest/pricing/v1/__init__.py | 62 +++-- twilio/rest/pricing/v2/__init__.py | 62 +++-- twilio/rest/proxy/v1/__init__.py | 44 ++-- twilio/rest/routes/v2/__init__.py | 62 +++-- twilio/rest/serverless/v1/__init__.py | 44 ++-- twilio/rest/studio/v1/__init__.py | 44 ++-- twilio/rest/studio/v2/__init__.py | 53 ++-- twilio/rest/supersim/v1/__init__.py | 116 ++++----- twilio/rest/sync/v1/__init__.py | 44 ++-- twilio/rest/taskrouter/v1/__init__.py | 44 ++-- twilio/rest/trunking/v1/__init__.py | 44 ++-- twilio/rest/trusthub/v1/__init__.py | 98 ++++---- twilio/rest/verify/v2/__init__.py | 99 ++++---- twilio/rest/video/v1/__init__.py | 89 +++---- twilio/rest/voice/v1/__init__.py | 89 +++---- twilio/rest/wireless/v1/__init__.py | 81 +++---- 55 files changed, 2075 insertions(+), 1770 deletions(-) create mode 100644 twilio/rest/flex_api/v1/insights_questionnaires_category.py create mode 100644 twilio/rest/flex_api/v1/insights_questionnaires_question.py create mode 100644 twilio/rest/flex_api/v1/insights_session.py create mode 100644 twilio/rest/flex_api/v1/insights_settings_answer_sets.py create mode 100644 twilio/rest/flex_api/v1/insights_settings_comment.py create mode 100644 twilio/rest/flex_api/v1/insights_user_roles.py diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index 51abfd926d..3581e2ead8 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -1,64 +1,60 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Accounts + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList -from twilio.rest.accounts.v1.credential import CredentialList -from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList +from twilio.base.domain import Domain +from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionListInstance +from twilio.rest.accounts.v1.credential import CredentialListInstance +from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Accounts + Initialize the V1 version of accounts - :returns: V1 version of Accounts - :rtype: twilio.rest.accounts.v1.V1.V1 + :param domain: The Twilio.accounts domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._auth_token_promotion = None self._credentials = None self._secondary_auth_token = None - + @property - def auth_token_promotion(self): - """ - :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList - """ + def auth_token_promotion(self) -> AuthTokenPromotionListInstance: if self._auth_token_promotion is None: - self._auth_token_promotion = AuthTokenPromotionList(self) + self._auth_token_promotion = AuthTokenPromotionListInstance(self) return self._auth_token_promotion @property - def credentials(self): - """ - :rtype: twilio.rest.accounts.v1.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def secondary_auth_token(self): - """ - :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList - """ + def secondary_auth_token(self) -> SecondaryAuthTokenListInstance: if self._secondary_auth_token is None: - self._secondary_auth_token = SecondaryAuthTokenList(self) + self._secondary_auth_token = SecondaryAuthTokenListInstance(self) return self._secondary_auth_token - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index de7d181ec4..0b307f9f42 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -1,231 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Api + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version +from twilio.base.domain import Domain +from twilio.rest.api.v2010.account import AccountListInstance from twilio.rest.api.v2010.account import AccountContext -from twilio.rest.api.v2010.account import AccountList class V2010(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2010 version of Api + Initialize the V2010 version of api - :returns: V2010 version of Api - :rtype: twilio.rest.api.v2010.V2010.V2010 + :param domain: The Twilio.api domain """ - super(V2010, self).__init__(domain) + super().__init__(domain) self.version = '2010-04-01' self._accounts = None self._account = None - + @property - def accounts(self): - """ - :rtype: twilio.rest.api.v2010.account.AccountList - """ + def accounts(self) -> AccountListInstance: if self._accounts is None: - self._accounts = AccountList(self) + self._accounts = AccountListInstance(self) return self._accounts @property - def account(self): - """ - :returns: Account provided as the authenticating account - :rtype: AccountContext - """ + def account(self) -> AccountContext: if self._account is None: self._account = AccountContext(self, self.domain.twilio.account_sid) return self._account - @account.setter - def account(self, value): - """ - Setter to override the primary account - - :param AccountContext|AccountInstance value: account to use as primary account - """ - self._account = value - - @property - def addresses(self): - """ - :rtype: twilio.rest.api.v2010.account.address.AddressList - """ - return self.account.addresses - - @property - def applications(self): - """ - :rtype: twilio.rest.api.v2010.account.application.ApplicationList - """ - return self.account.applications - - @property - def authorized_connect_apps(self): - """ - :rtype: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList - """ - return self.account.authorized_connect_apps - - @property - def available_phone_numbers(self): - """ - :rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList - """ - return self.account.available_phone_numbers - - @property - def balance(self): - """ - :rtype: twilio.rest.api.v2010.account.balance.BalanceList - """ - return self.account.balance - - @property - def calls(self): - """ - :rtype: twilio.rest.api.v2010.account.call.CallList - """ - return self.account.calls - - @property - def conferences(self): - """ - :rtype: twilio.rest.api.v2010.account.conference.ConferenceList - """ - return self.account.conferences - - @property - def connect_apps(self): - """ - :rtype: twilio.rest.api.v2010.account.connect_app.ConnectAppList - """ - return self.account.connect_apps - - @property - def incoming_phone_numbers(self): - """ - :rtype: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList - """ - return self.account.incoming_phone_numbers - - @property - def keys(self): - """ - :rtype: twilio.rest.api.v2010.account.key.KeyList - """ - return self.account.keys - - @property - def messages(self): - """ - :rtype: twilio.rest.api.v2010.account.message.MessageList - """ - return self.account.messages - - @property - def new_keys(self): - """ - :rtype: twilio.rest.api.v2010.account.new_key.NewKeyList - """ - return self.account.new_keys - - @property - def new_signing_keys(self): - """ - :rtype: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList - """ - return self.account.new_signing_keys - - @property - def notifications(self): - """ - :rtype: twilio.rest.api.v2010.account.notification.NotificationList - """ - return self.account.notifications - - @property - def outgoing_caller_ids(self): - """ - :rtype: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList - """ - return self.account.outgoing_caller_ids - - @property - def queues(self): - """ - :rtype: twilio.rest.api.v2010.account.queue.QueueList - """ - return self.account.queues - - @property - def recordings(self): - """ - :rtype: twilio.rest.api.v2010.account.recording.RecordingList - """ - return self.account.recordings - - @property - def signing_keys(self): - """ - :rtype: twilio.rest.api.v2010.account.signing_key.SigningKeyList - """ - return self.account.signing_keys - - @property - def sip(self): - """ - :rtype: twilio.rest.api.v2010.account.sip.SipList - """ - return self.account.sip - - @property - def short_codes(self): - """ - :rtype: twilio.rest.api.v2010.account.short_code.ShortCodeList - """ - return self.account.short_codes - - @property - def tokens(self): - """ - :rtype: twilio.rest.api.v2010.account.token.TokenList - """ - return self.account.tokens - - @property - def transcriptions(self): - """ - :rtype: twilio.rest.api.v2010.account.transcription.TranscriptionList - """ - return self.account.transcriptions - - @property - def usage(self): - """ - :rtype: twilio.rest.api.v2010.account.usage.UsageList - """ - return self.account.usage - - @property - def validation_requests(self): - """ - :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList - """ - return self.account.validation_requests - - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/api/v2010/account/application.py b/twilio/rest/api/v2010/account/application.py index 6f374cef28..2ed6bf9a14 100644 --- a/twilio/rest/api/v2010/account/application.py +++ b/twilio/rest/api/v2010/account/application.py @@ -111,6 +111,7 @@ def __init__(self, version, payload, account_sid: str, sid: str): 'voice_fallback_url' : payload.get('voice_fallback_url'), 'voice_method' : payload.get('voice_method'), 'voice_url' : payload.get('voice_url'), + 'public_application_connect_enabled' : payload.get('public_application_connect_enabled'), } self._context = None diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index ff9390e4f3..ebe95782be 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Autopilot + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.autopilot.v1.assistant import AssistantList -from twilio.rest.autopilot.v1.restore_assistant import RestoreAssistantList +from twilio.base.domain import Domain +from twilio.rest.autopilot.v1.assistant import AssistantListInstance +from twilio.rest.autopilot.v1.restore_assistant import RestoreAssistantListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Autopilot + Initialize the V1 version of autopilot - :returns: V1 version of Autopilot - :rtype: twilio.rest.autopilot.v1.V1.V1 + :param domain: The Twilio.autopilot domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._assistants = None self._restore_assistant = None - + @property - def assistants(self): - """ - :rtype: twilio.rest.autopilot.v1.assistant.AssistantList - """ + def assistants(self) -> AssistantListInstance: if self._assistants is None: - self._assistants = AssistantList(self) + self._assistants = AssistantListInstance(self) return self._assistants @property - def restore_assistant(self): - """ - :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantList - """ + def restore_assistant(self) -> RestoreAssistantListInstance: if self._restore_assistant is None: - self._restore_assistant = RestoreAssistantList(self) + self._restore_assistant = RestoreAssistantListInstance(self) return self._restore_assistant - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index 471184c727..a223b3abc7 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Bulkexports + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.bulkexports.v1.export import ExportList -from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationList +from twilio.base.domain import Domain +from twilio.rest.bulkexports.v1.export import ExportListInstance +from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Bulkexports + Initialize the V1 version of bulkexports - :returns: V1 version of Bulkexports - :rtype: twilio.rest.bulkexports.v1.V1.V1 + :param domain: The Twilio.bulkexports domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._exports = None self._export_configuration = None - + @property - def exports(self): - """ - :rtype: twilio.rest.bulkexports.v1.export.ExportList - """ + def exports(self) -> ExportListInstance: if self._exports is None: - self._exports = ExportList(self) + self._exports = ExportListInstance(self) return self._exports @property - def export_configuration(self): - """ - :rtype: twilio.rest.bulkexports.v1.export_configuration.ExportConfigurationList - """ + def export_configuration(self) -> ExportConfigurationListInstance: if self._export_configuration is None: - self._export_configuration = ExportConfigurationList(self) + self._export_configuration = ExportConfigurationListInstance(self) return self._export_configuration - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index 317a2bf1e5..e0d090dfa9 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Chat + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.chat.v1.credential import CredentialList -from twilio.rest.chat.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.chat.v1.credential import CredentialListInstance +from twilio.rest.chat.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Chat + Initialize the V1 version of chat - :returns: V1 version of Chat - :rtype: twilio.rest.chat.v1.V1.V1 + :param domain: The Twilio.chat domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._credentials = None self._services = None - + @property - def credentials(self): - """ - :rtype: twilio.rest.chat.v1.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.chat.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index 589cb55646..7b89eccf12 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Chat + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.chat.v2.credential import CredentialList -from twilio.rest.chat.v2.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.chat.v2.credential import CredentialListInstance +from twilio.rest.chat.v2.service import ServiceListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Chat + Initialize the V2 version of chat - :returns: V2 version of Chat - :rtype: twilio.rest.chat.v2.V2.V2 + :param domain: The Twilio.chat domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._credentials = None self._services = None - + @property - def credentials(self): - """ - :rtype: twilio.rest.chat.v2.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.chat.v2.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index 51c334ed86..d0445ec700 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Chat + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.chat.v3.channel import ChannelList +from twilio.base.domain import Domain +from twilio.rest.chat.v3.channel import ChannelListInstance class V3(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V3 version of Chat + Initialize the V3 version of chat - :returns: V3 version of Chat - :rtype: twilio.rest.chat.v3.V3.V3 + :param domain: The Twilio.chat domain """ - super(V3, self).__init__(domain) + super().__init__(domain) self.version = 'v3' self._channels = None - + @property - def channels(self): - """ - :rtype: twilio.rest.chat.v3.channel.ChannelList - """ + def channels(self) -> ChannelListInstance: if self._channels is None: - self._channels = ChannelList(self) + self._channels = ChannelListInstance(self) return self._channels - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index 871f0511da..2e07bc76e6 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Content + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.content.v1.content import ContentList +from twilio.base.domain import Domain +from twilio.rest.content.v1.content import ContentListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Content + Initialize the V1 version of content - :returns: V1 version of Content - :rtype: twilio.rest.content.v1.V1.V1 + :param domain: The Twilio.content domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._contents = None - + @property - def contents(self): - """ - :rtype: twilio.rest.content.v1.content.ContentList - """ + def contents(self) -> ContentListInstance: if self._contents is None: - self._contents = ContentList(self) + self._contents = ContentListInstance(self) return self._contents - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index 8c2ef119a5..6dfd70dfe8 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -1,119 +1,100 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Conversations + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.conversations.v1.address_configuration import AddressConfigurationList -from twilio.rest.conversations.v1.configuration import ConfigurationList -from twilio.rest.conversations.v1.conversation import ConversationList -from twilio.rest.conversations.v1.credential import CredentialList -from twilio.rest.conversations.v1.participant_conversation import ParticipantConversationList -from twilio.rest.conversations.v1.role import RoleList -from twilio.rest.conversations.v1.service import ServiceList -from twilio.rest.conversations.v1.user import UserList +from twilio.base.domain import Domain +from twilio.rest.conversations.v1.address_configuration import AddressConfigurationListInstance +from twilio.rest.conversations.v1.configuration import ConfigurationListInstance +from twilio.rest.conversations.v1.conversation import ConversationListInstance +from twilio.rest.conversations.v1.credential import CredentialListInstance +from twilio.rest.conversations.v1.participant_conversation import ParticipantConversationListInstance +from twilio.rest.conversations.v1.role import RoleListInstance +from twilio.rest.conversations.v1.service import ServiceListInstance +from twilio.rest.conversations.v1.user import UserListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Conversations + Initialize the V1 version of conversations - :returns: V1 version of Conversations - :rtype: twilio.rest.conversations.v1.V1.V1 + :param domain: The Twilio.conversations domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' - self._configuration = None self._address_configurations = None + self._configuration = None self._conversations = None self._credentials = None self._participant_conversations = None self._roles = None self._services = None self._users = None + + @property + def address_configurations(self) -> AddressConfigurationListInstance: + if self._address_configurations is None: + self._address_configurations = AddressConfigurationListInstance(self) + return self._address_configurations @property - def configuration(self): - """ - :rtype: twilio.rest.conversations.v1.configuration.ConfigurationList - """ + def configuration(self) -> ConfigurationListInstance: if self._configuration is None: - self._configuration = ConfigurationList(self) + self._configuration = ConfigurationListInstance(self) return self._configuration @property - def address_configurations(self): - """ - :rtype: twilio.rest.conversations.v1.address_configuration.AddressConfigurationList - """ - if self._address_configurations is None: - self._address_configurations = AddressConfigurationList(self) - return self._address_configurations - - @property - def conversations(self): - """ - :rtype: twilio.rest.conversations.v1.conversation.ConversationList - """ + def conversations(self) -> ConversationListInstance: if self._conversations is None: - self._conversations = ConversationList(self) + self._conversations = ConversationListInstance(self) return self._conversations @property - def credentials(self): - """ - :rtype: twilio.rest.conversations.v1.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def participant_conversations(self): - """ - :rtype: twilio.rest.conversations.v1.participant_conversation.ParticipantConversationList - """ + def participant_conversations(self) -> ParticipantConversationListInstance: if self._participant_conversations is None: - self._participant_conversations = ParticipantConversationList(self) + self._participant_conversations = ParticipantConversationListInstance(self) return self._participant_conversations @property - def roles(self): - """ - :rtype: twilio.rest.conversations.v1.role.RoleList - """ + def roles(self) -> RoleListInstance: if self._roles is None: - self._roles = RoleList(self) + self._roles = RoleListInstance(self) return self._roles @property - def services(self): - """ - :rtype: twilio.rest.conversations.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def users(self): - """ - :rtype: twilio.rest.conversations.v1.user.UserList - """ + def users(self) -> UserListInstance: if self._users is None: - self._users = UserList(self) + self._users = UserListInstance(self) return self._users - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index 82bdde88f4..9aec64b1f0 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -1,75 +1,68 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Events + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.events.v1.event_type import EventTypeList -from twilio.rest.events.v1.schema import SchemaList -from twilio.rest.events.v1.sink import SinkList -from twilio.rest.events.v1.subscription import SubscriptionList +from twilio.base.domain import Domain +from twilio.rest.events.v1.event_type import EventTypeListInstance +from twilio.rest.events.v1.schema import SchemaListInstance +from twilio.rest.events.v1.sink import SinkListInstance +from twilio.rest.events.v1.subscription import SubscriptionListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Events + Initialize the V1 version of events - :returns: V1 version of Events - :rtype: twilio.rest.events.v1.V1.V1 + :param domain: The Twilio.events domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._event_types = None self._schemas = None self._sinks = None self._subscriptions = None - + @property - def event_types(self): - """ - :rtype: twilio.rest.events.v1.event_type.EventTypeList - """ + def event_types(self) -> EventTypeListInstance: if self._event_types is None: - self._event_types = EventTypeList(self) + self._event_types = EventTypeListInstance(self) return self._event_types @property - def schemas(self): - """ - :rtype: twilio.rest.events.v1.schema.SchemaList - """ + def schemas(self) -> SchemaListInstance: if self._schemas is None: - self._schemas = SchemaList(self) + self._schemas = SchemaListInstance(self) return self._schemas @property - def sinks(self): - """ - :rtype: twilio.rest.events.v1.sink.SinkList - """ + def sinks(self) -> SinkListInstance: if self._sinks is None: - self._sinks = SinkList(self) + self._sinks = SinkListInstance(self) return self._sinks @property - def subscriptions(self): - """ - :rtype: twilio.rest.events.v1.subscription.SubscriptionList - """ + def subscriptions(self) -> SubscriptionListInstance: if self._subscriptions is None: - self._subscriptions = SubscriptionList(self) + self._subscriptions = SubscriptionListInstance(self) return self._subscriptions - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index 58096faeb7..3f29179c5d 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -1,119 +1,132 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.flex_api.v1.assessments import AssessmentsList -from twilio.rest.flex_api.v1.channel import ChannelList -from twilio.rest.flex_api.v1.configuration import ConfigurationList -from twilio.rest.flex_api.v1.flex_flow import FlexFlowList -from twilio.rest.flex_api.v1.good_data import GoodDataList -from twilio.rest.flex_api.v1.interaction import InteractionList -from twilio.rest.flex_api.v1.user_roles import UserRolesList -from twilio.rest.flex_api.v1.web_channel import WebChannelList +from twilio.base.domain import Domain +from twilio.rest.flex_api.v1.assessments import AssessmentsListInstance +from twilio.rest.flex_api.v1.channel import ChannelListInstance +from twilio.rest.flex_api.v1.configuration import ConfigurationListInstance +from twilio.rest.flex_api.v1.flex_flow import FlexFlowListInstance +from twilio.rest.flex_api.v1.insights_questionnaires_category import InsightsQuestionnairesCategoryListInstance +from twilio.rest.flex_api.v1.insights_questionnaires_question import InsightsQuestionnairesQuestionListInstance +from twilio.rest.flex_api.v1.insights_session import InsightsSessionListInstance +from twilio.rest.flex_api.v1.insights_settings_answer_sets import InsightsSettingsAnswerSetsListInstance +from twilio.rest.flex_api.v1.insights_settings_comment import InsightsSettingsCommentListInstance +from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesListInstance +from twilio.rest.flex_api.v1.interaction import InteractionListInstance +from twilio.rest.flex_api.v1.web_channel import WebChannelListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of FlexApi + Initialize the V1 version of flex_api - :returns: V1 version of FlexApi - :rtype: twilio.rest.flex_api.v1.V1.V1 + :param domain: The Twilio.flex_api domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._assessments = None self._channel = None self._configuration = None self._flex_flow = None - self._good_data = None + self._insights_questionnaires_category = None + self._insights_questionnaires_question = None + self._insights_session = None + self._insights_settings_answer_sets = None + self._insights_settings_comment = None + self._insights_user_roles = None self._interaction = None - self._user_roles = None self._web_channel = None - + @property - def assessments(self): - """ - :rtype: twilio.rest.flex_api.v1.assessments.AssessmentsList - """ + def assessments(self) -> AssessmentsListInstance: if self._assessments is None: - self._assessments = AssessmentsList(self) + self._assessments = AssessmentsListInstance(self) return self._assessments @property - def channel(self): - """ - :rtype: twilio.rest.flex_api.v1.channel.ChannelList - """ + def channel(self) -> ChannelListInstance: if self._channel is None: - self._channel = ChannelList(self) + self._channel = ChannelListInstance(self) return self._channel @property - def configuration(self): - """ - :rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList - """ + def configuration(self) -> ConfigurationListInstance: if self._configuration is None: - self._configuration = ConfigurationList(self) + self._configuration = ConfigurationListInstance(self) return self._configuration @property - def flex_flow(self): - """ - :rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList - """ + def flex_flow(self) -> FlexFlowListInstance: if self._flex_flow is None: - self._flex_flow = FlexFlowList(self) + self._flex_flow = FlexFlowListInstance(self) return self._flex_flow @property - def good_data(self): - """ - :rtype: twilio.rest.flex_api.v1.good_data.GoodDataList - """ - if self._good_data is None: - self._good_data = GoodDataList(self) - return self._good_data + def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryListInstance: + if self._insights_questionnaires_category is None: + self._insights_questionnaires_category = InsightsQuestionnairesCategoryListInstance(self) + return self._insights_questionnaires_category @property - def interaction(self): - """ - :rtype: twilio.rest.flex_api.v1.interaction.InteractionList - """ - if self._interaction is None: - self._interaction = InteractionList(self) - return self._interaction + def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionListInstance: + if self._insights_questionnaires_question is None: + self._insights_questionnaires_question = InsightsQuestionnairesQuestionListInstance(self) + return self._insights_questionnaires_question @property - def user_roles(self): - """ - :rtype: twilio.rest.flex_api.v1.user_roles.UserRolesList - """ - if self._user_roles is None: - self._user_roles = UserRolesList(self) - return self._user_roles + def insights_session(self) -> InsightsSessionListInstance: + if self._insights_session is None: + self._insights_session = InsightsSessionListInstance(self) + return self._insights_session @property - def web_channel(self): - """ - :rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList - """ + def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsListInstance: + if self._insights_settings_answer_sets is None: + self._insights_settings_answer_sets = InsightsSettingsAnswerSetsListInstance(self) + return self._insights_settings_answer_sets + + @property + def insights_settings_comment(self) -> InsightsSettingsCommentListInstance: + if self._insights_settings_comment is None: + self._insights_settings_comment = InsightsSettingsCommentListInstance(self) + return self._insights_settings_comment + + @property + def insights_user_roles(self) -> InsightsUserRolesListInstance: + if self._insights_user_roles is None: + self._insights_user_roles = InsightsUserRolesListInstance(self) + return self._insights_user_roles + + @property + def interaction(self) -> InteractionListInstance: + if self._interaction is None: + self._interaction = InteractionListInstance(self) + return self._interaction + + @property + def web_channel(self) -> WebChannelListInstance: if self._web_channel is None: - self._web_channel = WebChannelList(self) + self._web_channel = WebChannelListInstance(self) return self._web_channel - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_category.py b/twilio/rest/flex_api/v1/insights_questionnaires_category.py new file mode 100644 index 0000000000..ddf20765d6 --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_questionnaires_category.py @@ -0,0 +1,140 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + +class InsightsQuestionnairesCategoryContext(InstanceContext): + def __init__(self, version: Version, category_id: str): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { 'category_id': category_id, } + self._uri = '/Insights/QM/Categories/${category_id}' + + + def delete(self, token): + + + + """ + Deletes the InsightsQuestionnairesCategoryInstance + + :returns: True if delete succeeds, False otherwise + :rtype: bool + """ + return self._version.delete(method='DELETE', uri=self._uri, ) + + def update(self, token, body): + data = values.of({ + 'token': token,'body': body, + }) + + payload = self._version.update(method='post', uri=self._uri, data=data, ) + + return InsightsQuestionnairesCategoryInstance(self._version, payload, category_id=self._solution['category_id'], ) + + + + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + + + +class InsightsQuestionnairesCategoryInstance(InstanceResource): + def __init__(self, version, payload, category_id: str): + super().__init__(version) + self._properties = { + 'account_sid' : payload.get('account_sid'), + 'category_id' : payload.get('category_id'), + 'name' : payload.get('name'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + 'category_id': category_id or self._properties['category_id'], + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsQuestionnairesCategoryContext( + self._version, + category_id=self._solution['category_id'], + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsQuestionnairesCategoryListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/QM/Categories' + + + """ + def create(self, token, body): + data = values.of({ + 'token': token,'body': body, + }) + + payload = self._version.create(method='post', uri=self._uri, data=data, ) + + return InsightsQuestionnairesCategoryInstance(self._version, payload, ) + + """ + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_question.py b/twilio/rest/flex_api/v1/insights_questionnaires_question.py new file mode 100644 index 0000000000..a72b7183b8 --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_questionnaires_question.py @@ -0,0 +1,144 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + +class InsightsQuestionnairesQuestionContext(InstanceContext): + def __init__(self, version: Version, question_id: str): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { 'question_id': question_id, } + self._uri = '/Insights/QM/Questions/${question_id}' + + + def delete(self, token): + + + + """ + Deletes the InsightsQuestionnairesQuestionInstance + + :returns: True if delete succeeds, False otherwise + :rtype: bool + """ + return self._version.delete(method='DELETE', uri=self._uri, ) + + def update(self, token, body): + data = values.of({ + 'token': token,'body': body, + }) + + payload = self._version.update(method='post', uri=self._uri, data=data, ) + + return InsightsQuestionnairesQuestionInstance(self._version, payload, question_id=self._solution['question_id'], ) + + + + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + + + +class InsightsQuestionnairesQuestionInstance(InstanceResource): + def __init__(self, version, payload, question_id: str): + super().__init__(version) + self._properties = { + 'account_sid' : payload.get('account_sid'), + 'question_id' : payload.get('question_id'), + 'question' : payload.get('question'), + 'description' : payload.get('description'), + 'category' : payload.get('category'), + 'answer_set_id' : payload.get('answer_set_id'), + 'allow_na' : payload.get('allow_na'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + 'question_id': question_id or self._properties['question_id'], + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsQuestionnairesQuestionContext( + self._version, + question_id=self._solution['question_id'], + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsQuestionnairesQuestionListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/QM/Questions' + + + """ + def create(self, token, body): + data = values.of({ + 'token': token,'body': body, + }) + + payload = self._version.create(method='post', uri=self._uri, data=data, ) + + return InsightsQuestionnairesQuestionInstance(self._version, payload, ) + + """ + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v1/insights_session.py b/twilio/rest/flex_api/v1/insights_session.py new file mode 100644 index 0000000000..b1785c0df2 --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_session.py @@ -0,0 +1,110 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + +class InsightsSessionContext(InstanceContext): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/Session' + + + def create(self, token): + + + + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + + + +class InsightsSessionInstance(InstanceResource): + def __init__(self, version, payload): + super().__init__(version) + self._properties = { + 'workspace_id' : payload.get('workspace_id'), + 'session_expiry' : payload.get('session_expiry'), + 'session_id' : payload.get('session_id'), + 'base_url' : payload.get('base_url'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsSessionContext( + self._version, + + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsSessionListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '' + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v1/insights_settings_answer_sets.py b/twilio/rest/flex_api/v1/insights_settings_answer_sets.py new file mode 100644 index 0000000000..1957b94eae --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_settings_answer_sets.py @@ -0,0 +1,90 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + + +class InsightsSettingsAnswerSetsInstance(InstanceResource): + def __init__(self, version, payload): + super().__init__(version) + self._properties = { + 'account_sid' : payload.get('account_sid'), + 'answer_sets' : payload.get('answer_sets'), + 'answer_set_categories' : payload.get('answer_set_categories'), + 'not_applicable' : payload.get('not_applicable'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsSettingsAnswerSetsContext( + self._version, + + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsSettingsAnswerSetsListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/QM/Settings/AnswerSets' + + + """ + def fetch(self, token): + + + """ + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v1/insights_settings_comment.py b/twilio/rest/flex_api/v1/insights_settings_comment.py new file mode 100644 index 0000000000..72d05eab15 --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_settings_comment.py @@ -0,0 +1,88 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + + +class InsightsSettingsCommentInstance(InstanceResource): + def __init__(self, version, payload): + super().__init__(version) + self._properties = { + 'account_sid' : payload.get('account_sid'), + 'comments' : payload.get('comments'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsSettingsCommentContext( + self._version, + + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsSettingsCommentListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/QM/Settings/CommentTags' + + + """ + def fetch(self, token): + + + """ + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v1/insights_user_roles.py b/twilio/rest/flex_api/v1/insights_user_roles.py new file mode 100644 index 0000000000..ae086e4e3d --- /dev/null +++ b/twilio/rest/flex_api/v1/insights_user_roles.py @@ -0,0 +1,116 @@ +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. +""" + + +from twilio.base import deserialize +from twilio.base import serialize +from twilio.base import values +from twilio.base.instance_context import InstanceContext +from twilio.base.instance_resource import InstanceResource +from twilio.base.list_resource import ListResource +from twilio.base.version import Version + +# + + +class InsightsUserRolesContext(InstanceContext): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '/Insights/UserRoles' + + + def fetch(self, token): + + """ + Fetch the InsightsUserRolesInstance + + :returns: The fetched InsightsUserRolesInstance + #TODO: add rtype docs + """ + payload = self._version.fetch(method='GET', uri=self._uri, ) + + return InsightsUserRolesInstance(self._version, payload, ) + + + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + + + +class InsightsUserRolesInstance(InstanceResource): + def __init__(self, version, payload): + super().__init__(version) + self._properties = { + 'roles' : payload.get('roles'), + 'url' : payload.get('url'), + } + + self._context = None + self._solution = { + + } + + @property + def _proxy(self): + if self._context is None: + self._context = InsightsUserRolesContext( + self._version, + + ) + return self._context + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) + return ''.format(context) + + + +class InsightsUserRolesListInstance(ListResource): + def __init__(self, version: Version): + # TODO: needs autogenerated docs + super().__init__(version) + + # Path Solution + self._solution = { } + self._uri = '' + + + + def __repr__(self): + """ + Provide a friendly representation + :returns: Machine friendly representation + :rtype: str + """ + return '' + diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index e202a42b07..4f35c06690 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Flex + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.flex_api.v2.web_channels import WebChannelsList +from twilio.base.domain import Domain +from twilio.rest.flex_api.v2.web_channels import WebChannelsListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of FlexApi + Initialize the V2 version of flex_api - :returns: V2 version of FlexApi - :rtype: twilio.rest.flex_api.v2.V2.V2 + :param domain: The Twilio.flex_api domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._web_channels = None - + @property - def web_channels(self): - """ - :rtype: twilio.rest.flex_api.v2.web_channels.WebChannelsList - """ + def web_channels(self) -> WebChannelsListInstance: if self._web_channels is None: - self._web_channels = WebChannelsList(self) + self._web_channels = WebChannelsListInstance(self) return self._web_channels - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index 8753545638..a83dee03ac 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Frontline + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.frontline_api.v1.user import UserList +from twilio.base.domain import Domain +from twilio.rest.frontline_api.v1.user import UserListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of FrontlineApi + Initialize the V1 version of frontline_api - :returns: V1 version of FrontlineApi - :rtype: twilio.rest.frontline_api.v1.V1.V1 + :param domain: The Twilio.frontline_api domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._users = None - + @property - def users(self): - """ - :rtype: twilio.rest.frontline_api.v1.user.UserList - """ + def users(self) -> UserListInstance: if self._users is None: - self._users = UserList(self) + self._users = UserListInstance(self) return self._users - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 03a62ed777..577e4d12a4 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -1,86 +1,76 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Insights + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.insights.v1.call import CallList -from twilio.rest.insights.v1.call_summaries import CallSummariesList -from twilio.rest.insights.v1.conference import ConferenceList -from twilio.rest.insights.v1.room import RoomList -from twilio.rest.insights.v1.setting import SettingList +from twilio.base.domain import Domain +from twilio.rest.insights.v1.call import CallListInstance +from twilio.rest.insights.v1.call_summaries import CallSummariesListInstance +from twilio.rest.insights.v1.conference import ConferenceListInstance +from twilio.rest.insights.v1.room import RoomListInstance +from twilio.rest.insights.v1.setting import SettingListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Insights + Initialize the V1 version of insights - :returns: V1 version of Insights - :rtype: twilio.rest.insights.v1.V1.V1 + :param domain: The Twilio.insights domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' - self._settings = None self._calls = None self._call_summaries = None self._conferences = None self._rooms = None - - @property - def settings(self): - """ - :rtype: twilio.rest.insights.v1.setting.SettingList - """ - if self._settings is None: - self._settings = SettingList(self) - return self._settings - + self._settings = None + @property - def calls(self): - """ - :rtype: twilio.rest.insights.v1.call.CallList - """ + def calls(self) -> CallListInstance: if self._calls is None: - self._calls = CallList(self) + self._calls = CallListInstance(self) return self._calls @property - def call_summaries(self): - """ - :rtype: twilio.rest.insights.v1.call_summaries.CallSummariesList - """ + def call_summaries(self) -> CallSummariesListInstance: if self._call_summaries is None: - self._call_summaries = CallSummariesList(self) + self._call_summaries = CallSummariesListInstance(self) return self._call_summaries @property - def conferences(self): - """ - :rtype: twilio.rest.insights.v1.conference.ConferenceList - """ + def conferences(self) -> ConferenceListInstance: if self._conferences is None: - self._conferences = ConferenceList(self) + self._conferences = ConferenceListInstance(self) return self._conferences @property - def rooms(self): - """ - :rtype: twilio.rest.insights.v1.room.RoomList - """ + def rooms(self) -> RoomListInstance: if self._rooms is None: - self._rooms = RoomList(self) + self._rooms = RoomListInstance(self) return self._rooms - def __repr__(self): + @property + def settings(self) -> SettingListInstance: + if self._settings is None: + self._settings = SettingListInstance(self) + return self._settings + + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index 998af85a0d..8dd8fc2893 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Ip_messaging + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.ip_messaging.v1.credential import CredentialList -from twilio.rest.ip_messaging.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.ip_messaging.v1.credential import CredentialListInstance +from twilio.rest.ip_messaging.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of IpMessaging + Initialize the V1 version of ip_messaging - :returns: V1 version of IpMessaging - :rtype: twilio.rest.ip_messaging.v1.V1.V1 + :param domain: The Twilio.ip_messaging domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._credentials = None self._services = None - + @property - def credentials(self): - """ - :rtype: twilio.rest.ip_messaging.v1.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.ip_messaging.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index 9248a90f23..cad59903f2 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Ip_messaging + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.ip_messaging.v2.credential import CredentialList -from twilio.rest.ip_messaging.v2.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.ip_messaging.v2.credential import CredentialListInstance +from twilio.rest.ip_messaging.v2.service import ServiceListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of IpMessaging + Initialize the V2 version of ip_messaging - :returns: V2 version of IpMessaging - :rtype: twilio.rest.ip_messaging.v2.V2.V2 + :param domain: The Twilio.ip_messaging domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._credentials = None self._services = None - + @property - def credentials(self): - """ - :rtype: twilio.rest.ip_messaging.v2.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.ip_messaging.v2.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index b5a74c806c..48d8af0984 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Lookups + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.lookups.v1.phone_number import PhoneNumberList +from twilio.base.domain import Domain +from twilio.rest.lookups.v1.phone_number import PhoneNumberListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Lookups + Initialize the V1 version of lookups - :returns: V1 version of Lookups - :rtype: twilio.rest.lookups.v1.V1.V1 + :param domain: The Twilio.lookups domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._phone_numbers = None - + @property - def phone_numbers(self): - """ - :rtype: twilio.rest.lookups.v1.phone_number.PhoneNumberList - """ + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index c09cb2a4b2..0cf832787f 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Lookups + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.lookups.v2.phone_number import PhoneNumberList +from twilio.base.domain import Domain +from twilio.rest.lookups.v2.phone_number import PhoneNumberListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Lookups + Initialize the V2 version of lookups - :returns: V2 version of Lookups - :rtype: twilio.rest.lookups.v2.V2.V2 + :param domain: The Twilio.lookups domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._phone_numbers = None - + @property - def phone_numbers(self): - """ - :rtype: twilio.rest.lookups.v2.phone_number.PhoneNumberList - """ + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index 73fcc7f52d..401a045c83 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -1,64 +1,60 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Media + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.media.v1.media_processor import MediaProcessorList -from twilio.rest.media.v1.media_recording import MediaRecordingList -from twilio.rest.media.v1.player_streamer import PlayerStreamerList +from twilio.base.domain import Domain +from twilio.rest.media.v1.media_processor import MediaProcessorListInstance +from twilio.rest.media.v1.media_recording import MediaRecordingListInstance +from twilio.rest.media.v1.player_streamer import PlayerStreamerListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Media + Initialize the V1 version of media - :returns: V1 version of Media - :rtype: twilio.rest.media.v1.V1.V1 + :param domain: The Twilio.media domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._media_processor = None self._media_recording = None self._player_streamer = None - + @property - def media_processor(self): - """ - :rtype: twilio.rest.media.v1.media_processor.MediaProcessorList - """ + def media_processor(self) -> MediaProcessorListInstance: if self._media_processor is None: - self._media_processor = MediaProcessorList(self) + self._media_processor = MediaProcessorListInstance(self) return self._media_processor @property - def media_recording(self): - """ - :rtype: twilio.rest.media.v1.media_recording.MediaRecordingList - """ + def media_recording(self) -> MediaRecordingListInstance: if self._media_recording is None: - self._media_recording = MediaRecordingList(self) + self._media_recording = MediaRecordingListInstance(self) return self._media_recording @property - def player_streamer(self): - """ - :rtype: twilio.rest.media.v1.player_streamer.PlayerStreamerList - """ + def player_streamer(self) -> PlayerStreamerListInstance: if self._player_streamer is None: - self._player_streamer = PlayerStreamerList(self) + self._player_streamer = PlayerStreamerListInstance(self) return self._player_streamer - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index 2aa36fabfb..de289e562f 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -1,32 +1,38 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Messaging + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.messaging.v1.brand_registration import BrandRegistrationList -from twilio.rest.messaging.v1.deactivation import DeactivationsList -from twilio.rest.messaging.v1.domain_cert import DomainCertsList -from twilio.rest.messaging.v1.domain_config import DomainConfigList -from twilio.rest.messaging.v1.external_campaign import ExternalCampaignList -from twilio.rest.messaging.v1.service import ServiceList -from twilio.rest.messaging.v1.tollfree_verification import TollfreeVerificationList -from twilio.rest.messaging.v1.usecase import UsecaseList +from twilio.base.domain import Domain +from twilio.rest.messaging.v1.brand_registration import BrandRegistrationListInstance +from twilio.rest.messaging.v1.deactivations import DeactivationsListInstance +from twilio.rest.messaging.v1.domain_certs import DomainCertsListInstance +from twilio.rest.messaging.v1.domain_config import DomainConfigListInstance +from twilio.rest.messaging.v1.external_campaign import ExternalCampaignListInstance +from twilio.rest.messaging.v1.service import ServiceListInstance +from twilio.rest.messaging.v1.tollfree_verification import TollfreeVerificationListInstance +from twilio.rest.messaging.v1.usecase import UsecaseListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Messaging + Initialize the V1 version of messaging - :returns: V1 version of Messaging - :rtype: twilio.rest.messaging.v1.V1.V1 + :param domain: The Twilio.messaging domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._brand_registrations = None self._deactivations = None @@ -36,84 +42,59 @@ def __init__(self, domain): self._services = None self._tollfree_verifications = None self._usecases = None - + @property - def brand_registrations(self): - """ - :rtype: twilio.rest.messaging.v1.brand_registration.BrandRegistrationList - """ + def brand_registrations(self) -> BrandRegistrationListInstance: if self._brand_registrations is None: - self._brand_registrations = BrandRegistrationList(self) + self._brand_registrations = BrandRegistrationListInstance(self) return self._brand_registrations @property - def deactivations(self): - """ - :rtype: twilio.rest.messaging.v1.deactivation.DeactivationsList - """ + def deactivations(self) -> DeactivationsListInstance: if self._deactivations is None: - self._deactivations = DeactivationsList(self) + self._deactivations = DeactivationsListInstance(self) return self._deactivations @property - def domain_certs(self): - """ - :rtype: twilio.rest.messaging.v1.domain_cert.DomainCertsList - """ + def domain_certs(self) -> DomainCertsListInstance: if self._domain_certs is None: - self._domain_certs = DomainCertsList(self) + self._domain_certs = DomainCertsListInstance(self) return self._domain_certs @property - def domain_config(self): - """ - :rtype: twilio.rest.messaging.v1.domain_config.DomainConfigList - """ + def domain_config(self) -> DomainConfigListInstance: if self._domain_config is None: - self._domain_config = DomainConfigList(self) + self._domain_config = DomainConfigListInstance(self) return self._domain_config @property - def external_campaign(self): - """ - :rtype: twilio.rest.messaging.v1.external_campaign.ExternalCampaignList - """ + def external_campaign(self) -> ExternalCampaignListInstance: if self._external_campaign is None: - self._external_campaign = ExternalCampaignList(self) + self._external_campaign = ExternalCampaignListInstance(self) return self._external_campaign @property - def services(self): - """ - :rtype: twilio.rest.messaging.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def tollfree_verifications(self): - """ - :rtype: twilio.rest.messaging.v1.tollfree_verification.TollfreeVerificationList - """ + def tollfree_verifications(self) -> TollfreeVerificationListInstance: if self._tollfree_verifications is None: - self._tollfree_verifications = TollfreeVerificationList(self) + self._tollfree_verifications = TollfreeVerificationListInstance(self) return self._tollfree_verifications @property - def usecases(self): - """ - :rtype: twilio.rest.messaging.v1.usecase.UsecaseList - """ + def usecases(self) -> UsecaseListInstance: if self._usecases is None: - self._usecases = UsecaseList(self) + self._usecases = UsecaseListInstance(self) return self._usecases - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/messaging/v1/tollfree_verification.py b/twilio/rest/messaging/v1/tollfree_verification.py index b60e4bb520..2ac501434e 100644 --- a/twilio/rest/messaging/v1/tollfree_verification.py +++ b/twilio/rest/messaging/v1/tollfree_verification.py @@ -110,6 +110,7 @@ def __init__(self, version, payload, sid: str): 'status' : payload.get('status'), 'url' : payload.get('url'), 'resource_links' : payload.get('resource_links'), + 'external_reference_id' : payload.get('external_reference_id'), } self._context = None diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index 97bf4b6d27..406c26bdb4 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Microvisor + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.microvisor.v1.app import AppList -from twilio.rest.microvisor.v1.device import DeviceList +from twilio.base.domain import Domain +from twilio.rest.microvisor.v1.app import AppListInstance +from twilio.rest.microvisor.v1.device import DeviceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Microvisor + Initialize the V1 version of microvisor - :returns: V1 version of Microvisor - :rtype: twilio.rest.microvisor.v1.V1.V1 + :param domain: The Twilio.microvisor domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._apps = None self._devices = None - + @property - def apps(self): - """ - :rtype: twilio.rest.microvisor.v1.app.AppList - """ + def apps(self) -> AppListInstance: if self._apps is None: - self._apps = AppList(self) + self._apps = AppListInstance(self) return self._apps @property - def devices(self): - """ - :rtype: twilio.rest.microvisor.v1.device.DeviceList - """ + def devices(self) -> DeviceListInstance: if self._devices is None: - self._devices = DeviceList(self) + self._devices = DeviceListInstance(self) return self._devices - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index b0a876cdce..d05729e539 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Monitor + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.monitor.v1.alert import AlertList -from twilio.rest.monitor.v1.event import EventList +from twilio.base.domain import Domain +from twilio.rest.monitor.v1.alert import AlertListInstance +from twilio.rest.monitor.v1.event import EventListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Monitor + Initialize the V1 version of monitor - :returns: V1 version of Monitor - :rtype: twilio.rest.monitor.v1.V1.V1 + :param domain: The Twilio.monitor domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._alerts = None self._events = None - + @property - def alerts(self): - """ - :rtype: twilio.rest.monitor.v1.alert.AlertList - """ + def alerts(self) -> AlertListInstance: if self._alerts is None: - self._alerts = AlertList(self) + self._alerts = AlertListInstance(self) return self._alerts @property - def events(self): - """ - :rtype: twilio.rest.monitor.v1.event.EventList - """ + def events(self) -> EventListInstance: if self._events is None: - self._events = EventList(self) + self._events = EventListInstance(self) return self._events - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index ee3a97ab0a..e933962db2 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Notify + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.notify.v1.credential import CredentialList -from twilio.rest.notify.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.notify.v1.credential import CredentialListInstance +from twilio.rest.notify.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Notify + Initialize the V1 version of notify - :returns: V1 version of Notify - :rtype: twilio.rest.notify.v1.V1.V1 + :param domain: The Twilio.notify domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._credentials = None self._services = None - + @property - def credentials(self): - """ - :rtype: twilio.rest.notify.v1.credential.CredentialList - """ + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.notify.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index ad0251f460..f16ebe632f 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Numbers + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.numbers.v2.regulatory_compliance import RegulatoryComplianceList +from twilio.base.domain import Domain +from twilio.rest.numbers.v2.regulatory_compliance import RegulatoryComplianceListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Numbers + Initialize the V2 version of numbers - :returns: V2 version of Numbers - :rtype: twilio.rest.numbers.v2.V2.V2 + :param domain: The Twilio.numbers domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._regulatory_compliance = None - + @property - def regulatory_compliance(self): - """ - :rtype: twilio.rest.numbers.v2.regulatory_compliance.RegulatoryComplianceList - """ + def regulatory_compliance(self) -> RegulatoryComplianceListInstance: if self._regulatory_compliance is None: - self._regulatory_compliance = RegulatoryComplianceList(self) + self._regulatory_compliance = RegulatoryComplianceListInstance(self) return self._regulatory_compliance - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index 659676cf2b..7af00503b7 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -1,86 +1,76 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Oauth + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.oauth.v1.device_code import DeviceCodeList -from twilio.rest.oauth.v1.oauth import OauthList -from twilio.rest.oauth.v1.openid_discovery import OpenidDiscoveryList -from twilio.rest.oauth.v1.token import TokenList -from twilio.rest.oauth.v1.user_info import UserInfoList +from twilio.base.domain import Domain +from twilio.rest.oauth.v1.device_code import DeviceCodeListInstance +from twilio.rest.oauth.v1.oauth import OauthListInstance +from twilio.rest.oauth.v1.openid_discovery import OpenidDiscoveryListInstance +from twilio.rest.oauth.v1.token import TokenListInstance +from twilio.rest.oauth.v1.user_info import UserInfoListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Oauth + Initialize the V1 version of oauth - :returns: V1 version of Oauth - :rtype: twilio.rest.oauth.v1.V1.V1 + :param domain: The Twilio.oauth domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' - self._oauth = None self._device_code = None + self._oauth = None self._openid_discovery = None self._token = None self._user_info = None + + @property + def device_code(self) -> DeviceCodeListInstance: + if self._device_code is None: + self._device_code = DeviceCodeListInstance(self) + return self._device_code @property - def oauth(self): - """ - :rtype: twilio.rest.oauth.v1.oauth.OauthList - """ + def oauth(self) -> OauthListInstance: if self._oauth is None: - self._oauth = OauthList(self) + self._oauth = OauthListInstance(self) return self._oauth @property - def device_code(self): - """ - :rtype: twilio.rest.oauth.v1.device_code.DeviceCodeList - """ - if self._device_code is None: - self._device_code = DeviceCodeList(self) - return self._device_code - - @property - def openid_discovery(self): - """ - :rtype: twilio.rest.oauth.v1.openid_discovery.OpenidDiscoveryList - """ + def openid_discovery(self) -> OpenidDiscoveryListInstance: if self._openid_discovery is None: - self._openid_discovery = OpenidDiscoveryList(self) + self._openid_discovery = OpenidDiscoveryListInstance(self) return self._openid_discovery @property - def token(self): - """ - :rtype: twilio.rest.oauth.v1.token.TokenList - """ + def token(self) -> TokenListInstance: if self._token is None: - self._token = TokenList(self) + self._token = TokenListInstance(self) return self._token @property - def user_info(self): - """ - :rtype: twilio.rest.oauth.v1.user_info.UserInfoList - """ + def user_info(self) -> UserInfoListInstance: if self._user_info is None: - self._user_info = UserInfoList(self) + self._user_info = UserInfoListInstance(self) return self._user_info - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/DeployedDevices.py b/twilio/rest/preview/DeployedDevices.py index 7d4dbd5f1a..1aa36da537 100644 --- a/twilio/rest/preview/DeployedDevices.py +++ b/twilio/rest/preview/DeployedDevices.py @@ -12,44 +12,33 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.deployed_devices import DeployedDevices +from twilio.rest.preview.deployed_devices.fleet import FleetListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.deployed_devices.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._DeployedDevices = None +class DeployedDevices(Version): - @property - def DeployedDevices(self): - """ - :returns: Versions deployed_devices of Preview - :rtype: twilio.rest.Preview.deployed_devices + def __init__(self, domain: Domain): """ - if self._DeployedDevices is None: - self._DeployedDevices = DeployedDevices(self) - return self._DeployedDevices - + Initialize the DeployedDevices version of preview - @property - def fleets(self): - """ - :rtype: twilio.rest.deployed_devices.fleets + :param domain: The Twilio.preview domain """ - return self.deployed_devices.fleets - + super().__init__(domain) + self.version = 'DeployedDevices' + self._fleets = None + + @property + def fleets(self) -> FleetListInstance: + if self._fleets is None: + self._fleets = FleetListInstance(self) + return self._fleets - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/HostedNumbers.py b/twilio/rest/preview/HostedNumbers.py index f4ce213032..0e09b09e12 100644 --- a/twilio/rest/preview/HostedNumbers.py +++ b/twilio/rest/preview/HostedNumbers.py @@ -12,52 +12,41 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.hosted_numbers import HostedNumbers +from twilio.rest.preview.hosted_numbers.authorization_document import AuthorizationDocumentListInstance +from twilio.rest.preview.hosted_numbers.hosted_number_order import HostedNumberOrderListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.hosted_numbers.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._HostedNumbers = None +class HostedNumbers(Version): - @property - def HostedNumbers(self): + def __init__(self, domain: Domain): """ - :returns: Versions hosted_numbers of Preview - :rtype: twilio.rest.Preview.hosted_numbers - """ - if self._HostedNumbers is None: - self._HostedNumbers = HostedNumbers(self) - return self._HostedNumbers - + Initialize the HostedNumbers version of preview - @property - def authorization_documents(self): + :param domain: The Twilio.preview domain """ - :rtype: twilio.rest.hosted_numbers.authorization_documents - """ - return self.hosted_numbers.authorization_documents - + super().__init__(domain) + self.version = 'HostedNumbers' + self._authorization_documents = None + self._hosted_number_orders = None + + @property + def authorization_documents(self) -> AuthorizationDocumentListInstance: + if self._authorization_documents is None: + self._authorization_documents = AuthorizationDocumentListInstance(self) + return self._authorization_documents @property - def hosted_number_orders(self): - """ - :rtype: twilio.rest.hosted_numbers.hosted_number_orders - """ - return self.hosted_numbers.hosted_number_orders - + def hosted_number_orders(self) -> HostedNumberOrderListInstance: + if self._hosted_number_orders is None: + self._hosted_number_orders = HostedNumberOrderListInstance(self) + return self._hosted_number_orders - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/Marketplace.py b/twilio/rest/preview/Marketplace.py index f5f05158f8..7f0a94c56f 100644 --- a/twilio/rest/preview/Marketplace.py +++ b/twilio/rest/preview/Marketplace.py @@ -12,52 +12,41 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.marketplace import Marketplace +from twilio.rest.preview.marketplace.available_add_on import AvailableAddOnListInstance +from twilio.rest.preview.marketplace.installed_add_on import InstalledAddOnListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.marketplace.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._Marketplace = None +class Marketplace(Version): - @property - def Marketplace(self): + def __init__(self, domain: Domain): """ - :returns: Versions marketplace of Preview - :rtype: twilio.rest.Preview.marketplace - """ - if self._Marketplace is None: - self._Marketplace = Marketplace(self) - return self._Marketplace - + Initialize the Marketplace version of preview - @property - def available_add_ons(self): + :param domain: The Twilio.preview domain """ - :rtype: twilio.rest.marketplace.available_add_ons - """ - return self.marketplace.available_add_ons - + super().__init__(domain) + self.version = 'marketplace' + self._available_add_ons = None + self._installed_add_ons = None + + @property + def available_add_ons(self) -> AvailableAddOnListInstance: + if self._available_add_ons is None: + self._available_add_ons = AvailableAddOnListInstance(self) + return self._available_add_ons @property - def installed_add_ons(self): - """ - :rtype: twilio.rest.marketplace.installed_add_ons - """ - return self.marketplace.installed_add_ons - + def installed_add_ons(self) -> InstalledAddOnListInstance: + if self._installed_add_ons is None: + self._installed_add_ons = InstalledAddOnListInstance(self) + return self._installed_add_ons - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/Sync.py b/twilio/rest/preview/Sync.py index ee41f214af..df05ccfdd8 100644 --- a/twilio/rest/preview/Sync.py +++ b/twilio/rest/preview/Sync.py @@ -12,44 +12,33 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.sync import Sync +from twilio.rest.preview.sync.service import ServiceListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.sync.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._Sync = None +class Sync(Version): - @property - def Sync(self): - """ - :returns: Versions sync of Preview - :rtype: twilio.rest.Preview.sync + def __init__(self, domain: Domain): """ - if self._Sync is None: - self._Sync = Sync(self) - return self._Sync - + Initialize the Sync version of preview - @property - def services(self): - """ - :rtype: twilio.rest.sync.services + :param domain: The Twilio.preview domain """ - return self.sync.services - + super().__init__(domain) + self.version = 'Sync' + self._services = None + + @property + def services(self) -> ServiceListInstance: + if self._services is None: + self._services = ServiceListInstance(self) + return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/Understand.py b/twilio/rest/preview/Understand.py index bcebe4617f..3825dfef4c 100644 --- a/twilio/rest/preview/Understand.py +++ b/twilio/rest/preview/Understand.py @@ -12,44 +12,33 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.understand import Understand +from twilio.rest.preview.understand.assistant import AssistantListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.understand.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._Understand = None +class Understand(Version): - @property - def Understand(self): - """ - :returns: Versions understand of Preview - :rtype: twilio.rest.Preview.understand + def __init__(self, domain: Domain): """ - if self._Understand is None: - self._Understand = Understand(self) - return self._Understand - + Initialize the Understand version of preview - @property - def assistants(self): - """ - :rtype: twilio.rest.understand.assistants + :param domain: The Twilio.preview domain """ - return self.understand.assistants - + super().__init__(domain) + self.version = 'understand' + self._assistants = None + + @property + def assistants(self) -> AssistantListInstance: + if self._assistants is None: + self._assistants = AssistantListInstance(self) + return self._assistants - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/preview/Wireless.py b/twilio/rest/preview/Wireless.py index 2a80fa04e8..e3402dce73 100644 --- a/twilio/rest/preview/Wireless.py +++ b/twilio/rest/preview/Wireless.py @@ -12,60 +12,49 @@ Do not edit the class manually. """ +from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.preview.wireless import Wireless +from twilio.rest.preview.wireless.command import CommandListInstance +from twilio.rest.preview.wireless.rate_plan import RatePlanListInstance +from twilio.rest.preview.wireless.sim import SimListInstance -class Preview(Domain): - def __init__(self, twilio): - """ - Initialize the Preview Domain - :returns: Domain for Preview - :rtype: twilio.rest.wireless.Preview - """ - super(Preview, self).__init__(twilio) - self.base_url = 'https://Preview.twilio.com' - self._Wireless = None +class Wireless(Version): - @property - def Wireless(self): + def __init__(self, domain: Domain): """ - :returns: Versions wireless of Preview - :rtype: twilio.rest.Preview.wireless - """ - if self._Wireless is None: - self._Wireless = Wireless(self) - return self._Wireless - + Initialize the Wireless version of preview - @property - def commands(self): - """ - :rtype: twilio.rest.wireless.commands + :param domain: The Twilio.preview domain """ - return self.wireless.commands - + super().__init__(domain) + self.version = 'wireless' + self._commands = None + self._rate_plans = None + self._sims = None + + @property + def commands(self) -> CommandListInstance: + if self._commands is None: + self._commands = CommandListInstance(self) + return self._commands @property - def rate_plans(self): - """ - :rtype: twilio.rest.wireless.rate_plans - """ - return self.wireless.rate_plans - + def rate_plans(self) -> RatePlanListInstance: + if self._rate_plans is None: + self._rate_plans = RatePlanListInstance(self) + return self._rate_plans @property - def sims(self): - """ - :rtype: twilio.rest.wireless.sims - """ - return self.wireless.sims - + def sims(self) -> SimListInstance: + if self._sims is None: + self._sims = SimListInstance(self) + return self._sims - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/pricing/v1/__init__.py b/twilio/rest/pricing/v1/__init__.py index 68d31d007f..f878cec759 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -1,64 +1,60 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Pricing + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.pricing.v1.messaging import MessagingList -from twilio.rest.pricing.v1.phone_number import PhoneNumberList -from twilio.rest.pricing.v1.voice import VoiceList +from twilio.base.domain import Domain +from twilio.rest.pricing.v1.messaging import MessagingListInstance +from twilio.rest.pricing.v1.phone_number import PhoneNumberListInstance +from twilio.rest.pricing.v1.voice import VoiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Pricing + Initialize the V1 version of pricing - :returns: V1 version of Pricing - :rtype: twilio.rest.pricing.v1.V1.V1 + :param domain: The Twilio.pricing domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._messaging = None self._phone_numbers = None self._voice = None - + @property - def messaging(self): - """ - :rtype: twilio.rest.pricing.v1.messaging.MessagingList - """ + def messaging(self) -> MessagingListInstance: if self._messaging is None: - self._messaging = MessagingList(self) + self._messaging = MessagingListInstance(self) return self._messaging @property - def phone_numbers(self): - """ - :rtype: twilio.rest.pricing.v1.phone_number.PhoneNumberList - """ + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers @property - def voice(self): - """ - :rtype: twilio.rest.pricing.v1.voice.VoiceList - """ + def voice(self) -> VoiceListInstance: if self._voice is None: - self._voice = VoiceList(self) + self._voice = VoiceListInstance(self) return self._voice - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index 6afa8f6402..55b47683d7 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -1,64 +1,60 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Pricing + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.pricing.v2.country import CountryList -from twilio.rest.pricing.v2.number import NumberList -from twilio.rest.pricing.v2.voice import VoiceList +from twilio.base.domain import Domain +from twilio.rest.pricing.v2.country import CountryListInstance +from twilio.rest.pricing.v2.number import NumberListInstance +from twilio.rest.pricing.v2.voice import VoiceListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Pricing + Initialize the V2 version of pricing - :returns: V2 version of Pricing - :rtype: twilio.rest.pricing.v2.V2.V2 + :param domain: The Twilio.pricing domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._countries = None self._numbers = None self._voice = None - + @property - def countries(self): - """ - :rtype: twilio.rest.pricing.v2.country.CountryList - """ + def countries(self) -> CountryListInstance: if self._countries is None: - self._countries = CountryList(self) + self._countries = CountryListInstance(self) return self._countries @property - def numbers(self): - """ - :rtype: twilio.rest.pricing.v2.number.NumberList - """ + def numbers(self) -> NumberListInstance: if self._numbers is None: - self._numbers = NumberList(self) + self._numbers = NumberListInstance(self) return self._numbers @property - def voice(self): - """ - :rtype: twilio.rest.pricing.v2.voice.VoiceList - """ + def voice(self) -> VoiceListInstance: if self._voice is None: - self._voice = VoiceList(self) + self._voice = VoiceListInstance(self) return self._voice - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index ee5122ab0d..d755c850dc 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Proxy + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.proxy.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.proxy.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Proxy + Initialize the V1 version of proxy - :returns: V1 version of Proxy - :rtype: twilio.rest.proxy.v1.V1.V1 + :param domain: The Twilio.proxy domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._services = None - + @property - def services(self): - """ - :rtype: twilio.rest.proxy.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index d234120077..3ec483f4fd 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -1,64 +1,60 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Routes + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.routes.v2.phone_number import PhoneNumberList -from twilio.rest.routes.v2.sip_domain import SipDomainList -from twilio.rest.routes.v2.trunk import TrunkList +from twilio.base.domain import Domain +from twilio.rest.routes.v2.phone_number import PhoneNumberListInstance +from twilio.rest.routes.v2.sip_domain import SipDomainListInstance +from twilio.rest.routes.v2.trunk import TrunkListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Routes + Initialize the V2 version of routes - :returns: V2 version of Routes - :rtype: twilio.rest.routes.v2.V2.V2 + :param domain: The Twilio.routes domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._phone_numbers = None self._sip_domains = None self._trunks = None - + @property - def phone_numbers(self): - """ - :rtype: twilio.rest.routes.v2.phone_number.PhoneNumberList - """ + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers @property - def sip_domains(self): - """ - :rtype: twilio.rest.routes.v2.sip_domain.SipDomainList - """ + def sip_domains(self) -> SipDomainListInstance: if self._sip_domains is None: - self._sip_domains = SipDomainList(self) + self._sip_domains = SipDomainListInstance(self) return self._sip_domains @property - def trunks(self): - """ - :rtype: twilio.rest.routes.v2.trunk.TrunkList - """ + def trunks(self) -> TrunkListInstance: if self._trunks is None: - self._trunks = TrunkList(self) + self._trunks = TrunkListInstance(self) return self._trunks - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index 6f4d5cbe95..ad17644583 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Serverless + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.serverless.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.serverless.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Serverless + Initialize the V1 version of serverless - :returns: V1 version of Serverless - :rtype: twilio.rest.serverless.v1.V1.V1 + :param domain: The Twilio.serverless domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._services = None - + @property - def services(self): - """ - :rtype: twilio.rest.serverless.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index e1d0705da1..166b349a8e 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Studio + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.studio.v1.flow import FlowList +from twilio.base.domain import Domain +from twilio.rest.studio.v1.flow import FlowListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Studio + Initialize the V1 version of studio - :returns: V1 version of Studio - :rtype: twilio.rest.studio.v1.V1.V1 + :param domain: The Twilio.studio domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._flows = None - + @property - def flows(self): - """ - :rtype: twilio.rest.studio.v1.flow.FlowList - """ + def flows(self) -> FlowListInstance: if self._flows is None: - self._flows = FlowList(self) + self._flows = FlowListInstance(self) return self._flows - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index 5818742739..5eee9c3b55 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -1,53 +1,52 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Studio + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.studio.v2.flow import FlowList -from twilio.rest.studio.v2.flow_validate import FlowValidateList +from twilio.base.domain import Domain +from twilio.rest.studio.v2.flow import FlowListInstance +from twilio.rest.studio.v2.flow_validate import FlowValidateListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Studio + Initialize the V2 version of studio - :returns: V2 version of Studio - :rtype: twilio.rest.studio.v2.V2.V2 + :param domain: The Twilio.studio domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._flows = None self._flow_validate = None - + @property - def flows(self): - """ - :rtype: twilio.rest.studio.v2.flow.FlowList - """ + def flows(self) -> FlowListInstance: if self._flows is None: - self._flows = FlowList(self) + self._flows = FlowListInstance(self) return self._flows @property - def flow_validate(self): - """ - :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateList - """ + def flow_validate(self) -> FlowValidateListInstance: if self._flow_validate is None: - self._flow_validate = FlowValidateList(self) + self._flow_validate = FlowValidateListInstance(self) return self._flow_validate - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index bd94987e74..235460c1fa 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -1,33 +1,39 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Supersim + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.supersim.v1.esim_profile import EsimProfileList -from twilio.rest.supersim.v1.fleet import FleetList -from twilio.rest.supersim.v1.ip_command import IpCommandList -from twilio.rest.supersim.v1.network import NetworkList -from twilio.rest.supersim.v1.network_access_profile import NetworkAccessProfileList -from twilio.rest.supersim.v1.settings_update import SettingsUpdateList -from twilio.rest.supersim.v1.sim import SimList -from twilio.rest.supersim.v1.sms_command import SmsCommandList -from twilio.rest.supersim.v1.usage_record import UsageRecordList +from twilio.base.domain import Domain +from twilio.rest.supersim.v1.esim_profile import EsimProfileListInstance +from twilio.rest.supersim.v1.fleet import FleetListInstance +from twilio.rest.supersim.v1.ip_command import IpCommandListInstance +from twilio.rest.supersim.v1.network import NetworkListInstance +from twilio.rest.supersim.v1.network_access_profile import NetworkAccessProfileListInstance +from twilio.rest.supersim.v1.settings_update import SettingsUpdateListInstance +from twilio.rest.supersim.v1.sim import SimListInstance +from twilio.rest.supersim.v1.sms_command import SmsCommandListInstance +from twilio.rest.supersim.v1.usage_record import UsageRecordListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Supersim + Initialize the V1 version of supersim - :returns: V1 version of Supersim - :rtype: twilio.rest.supersim.v1.V1.V1 + :param domain: The Twilio.supersim domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._esim_profiles = None self._fleets = None @@ -38,93 +44,65 @@ def __init__(self, domain): self._sims = None self._sms_commands = None self._usage_records = None - + @property - def esim_profiles(self): - """ - :rtype: twilio.rest.supersim.v1.esim_profile.EsimProfileList - """ + def esim_profiles(self) -> EsimProfileListInstance: if self._esim_profiles is None: - self._esim_profiles = EsimProfileList(self) + self._esim_profiles = EsimProfileListInstance(self) return self._esim_profiles @property - def fleets(self): - """ - :rtype: twilio.rest.supersim.v1.fleet.FleetList - """ + def fleets(self) -> FleetListInstance: if self._fleets is None: - self._fleets = FleetList(self) + self._fleets = FleetListInstance(self) return self._fleets @property - def ip_commands(self): - """ - :rtype: twilio.rest.supersim.v1.ip_command.IpCommandList - """ + def ip_commands(self) -> IpCommandListInstance: if self._ip_commands is None: - self._ip_commands = IpCommandList(self) + self._ip_commands = IpCommandListInstance(self) return self._ip_commands @property - def networks(self): - """ - :rtype: twilio.rest.supersim.v1.network.NetworkList - """ + def networks(self) -> NetworkListInstance: if self._networks is None: - self._networks = NetworkList(self) + self._networks = NetworkListInstance(self) return self._networks @property - def network_access_profiles(self): - """ - :rtype: twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileList - """ + def network_access_profiles(self) -> NetworkAccessProfileListInstance: if self._network_access_profiles is None: - self._network_access_profiles = NetworkAccessProfileList(self) + self._network_access_profiles = NetworkAccessProfileListInstance(self) return self._network_access_profiles @property - def settings_updates(self): - """ - :rtype: twilio.rest.supersim.v1.settings_update.SettingsUpdateList - """ + def settings_updates(self) -> SettingsUpdateListInstance: if self._settings_updates is None: - self._settings_updates = SettingsUpdateList(self) + self._settings_updates = SettingsUpdateListInstance(self) return self._settings_updates @property - def sims(self): - """ - :rtype: twilio.rest.supersim.v1.sim.SimList - """ + def sims(self) -> SimListInstance: if self._sims is None: - self._sims = SimList(self) + self._sims = SimListInstance(self) return self._sims @property - def sms_commands(self): - """ - :rtype: twilio.rest.supersim.v1.sms_command.SmsCommandList - """ + def sms_commands(self) -> SmsCommandListInstance: if self._sms_commands is None: - self._sms_commands = SmsCommandList(self) + self._sms_commands = SmsCommandListInstance(self) return self._sms_commands @property - def usage_records(self): - """ - :rtype: twilio.rest.supersim.v1.usage_record.UsageRecordList - """ + def usage_records(self) -> UsageRecordListInstance: if self._usage_records is None: - self._usage_records = UsageRecordList(self) + self._usage_records = UsageRecordListInstance(self) return self._usage_records - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index aaf86f5c69..e85dac5fd9 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Sync + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.sync.v1.service import ServiceList +from twilio.base.domain import Domain +from twilio.rest.sync.v1.service import ServiceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Sync + Initialize the V1 version of sync - :returns: V1 version of Sync - :rtype: twilio.rest.sync.v1.V1.V1 + :param domain: The Twilio.sync domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._services = None - + @property - def services(self): - """ - :rtype: twilio.rest.sync.v1.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 091bb146d5..1ec94ee175 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Taskrouter + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.taskrouter.v1.workspace import WorkspaceList +from twilio.base.domain import Domain +from twilio.rest.taskrouter.v1.workspace import WorkspaceListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Taskrouter + Initialize the V1 version of taskrouter - :returns: V1 version of Taskrouter - :rtype: twilio.rest.taskrouter.v1.V1.V1 + :param domain: The Twilio.taskrouter domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._workspaces = None - + @property - def workspaces(self): - """ - :rtype: twilio.rest.taskrouter.v1.workspace.WorkspaceList - """ + def workspaces(self) -> WorkspaceListInstance: if self._workspaces is None: - self._workspaces = WorkspaceList(self) + self._workspaces = WorkspaceListInstance(self) return self._workspaces - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index 6f28ed7a7e..624785342e 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -1,42 +1,44 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Trunking + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.trunking.v1.trunk import TrunkList +from twilio.base.domain import Domain +from twilio.rest.trunking.v1.trunk import TrunkListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Trunking + Initialize the V1 version of trunking - :returns: V1 version of Trunking - :rtype: twilio.rest.trunking.v1.V1.V1 + :param domain: The Twilio.trunking domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._trunks = None - + @property - def trunks(self): - """ - :rtype: twilio.rest.trunking.v1.trunk.TrunkList - """ + def trunks(self) -> TrunkListInstance: if self._trunks is None: - self._trunks = TrunkList(self) + self._trunks = TrunkListInstance(self) return self._trunks - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index 006bc0561d..5bc2df1444 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -1,31 +1,37 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Trusthub + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesList -from twilio.rest.trusthub.v1.end_user import EndUserList -from twilio.rest.trusthub.v1.end_user_type import EndUserTypeList -from twilio.rest.trusthub.v1.policies import PoliciesList -from twilio.rest.trusthub.v1.supporting_document import SupportingDocumentList -from twilio.rest.trusthub.v1.supporting_document_type import SupportingDocumentTypeList -from twilio.rest.trusthub.v1.trust_products import TrustProductsList +from twilio.base.domain import Domain +from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesListInstance +from twilio.rest.trusthub.v1.end_user import EndUserListInstance +from twilio.rest.trusthub.v1.end_user_type import EndUserTypeListInstance +from twilio.rest.trusthub.v1.policies import PoliciesListInstance +from twilio.rest.trusthub.v1.supporting_document import SupportingDocumentListInstance +from twilio.rest.trusthub.v1.supporting_document_type import SupportingDocumentTypeListInstance +from twilio.rest.trusthub.v1.trust_products import TrustProductsListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Trusthub + Initialize the V1 version of trusthub - :returns: V1 version of Trusthub - :rtype: twilio.rest.trusthub.v1.V1.V1 + :param domain: The Twilio.trusthub domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._customer_profiles = None self._end_users = None @@ -34,75 +40,53 @@ def __init__(self, domain): self._supporting_documents = None self._supporting_document_types = None self._trust_products = None - + @property - def customer_profiles(self): - """ - :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesList - """ + def customer_profiles(self) -> CustomerProfilesListInstance: if self._customer_profiles is None: - self._customer_profiles = CustomerProfilesList(self) + self._customer_profiles = CustomerProfilesListInstance(self) return self._customer_profiles @property - def end_users(self): - """ - :rtype: twilio.rest.trusthub.v1.end_user.EndUserList - """ + def end_users(self) -> EndUserListInstance: if self._end_users is None: - self._end_users = EndUserList(self) + self._end_users = EndUserListInstance(self) return self._end_users @property - def end_user_types(self): - """ - :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypeList - """ + def end_user_types(self) -> EndUserTypeListInstance: if self._end_user_types is None: - self._end_user_types = EndUserTypeList(self) + self._end_user_types = EndUserTypeListInstance(self) return self._end_user_types @property - def policies(self): - """ - :rtype: twilio.rest.trusthub.v1.policies.PoliciesList - """ + def policies(self) -> PoliciesListInstance: if self._policies is None: - self._policies = PoliciesList(self) + self._policies = PoliciesListInstance(self) return self._policies @property - def supporting_documents(self): - """ - :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentList - """ + def supporting_documents(self) -> SupportingDocumentListInstance: if self._supporting_documents is None: - self._supporting_documents = SupportingDocumentList(self) + self._supporting_documents = SupportingDocumentListInstance(self) return self._supporting_documents @property - def supporting_document_types(self): - """ - :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeList - """ + def supporting_document_types(self) -> SupportingDocumentTypeListInstance: if self._supporting_document_types is None: - self._supporting_document_types = SupportingDocumentTypeList(self) + self._supporting_document_types = SupportingDocumentTypeListInstance(self) return self._supporting_document_types @property - def trust_products(self): - """ - :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsList - """ + def trust_products(self) -> TrustProductsListInstance: if self._trust_products is None: - self._trust_products = TrustProductsList(self) + self._trust_products = TrustProductsListInstance(self) return self._trust_products - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index 80ba37f9db..7c69eaa329 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -1,97 +1,84 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Verify + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.verify.v2.form import FormList -from twilio.rest.verify.v2.safelist import SafelistList -from twilio.rest.verify.v2.service import ServiceList -from twilio.rest.verify.v2.template import TemplateList -from twilio.rest.verify.v2.verification_attempt import VerificationAttemptList -from twilio.rest.verify.v2.verification_attempts_summary import VerificationAttemptsSummaryList +from twilio.base.domain import Domain +from twilio.rest.verify.v2.form import FormListInstance +from twilio.rest.verify.v2.safelist import SafelistListInstance +from twilio.rest.verify.v2.service import ServiceListInstance +from twilio.rest.verify.v2.template import TemplateListInstance +from twilio.rest.verify.v2.verification_attempt import VerificationAttemptListInstance +from twilio.rest.verify.v2.verification_attempts_summary import VerificationAttemptsSummaryListInstance class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V2 version of Verify + Initialize the V2 version of verify - :returns: V2 version of Verify - :rtype: twilio.rest.verify.v2.V2.V2 + :param domain: The Twilio.verify domain """ - super(V2, self).__init__(domain) + super().__init__(domain) self.version = 'v2' self._forms = None self._safelist = None self._services = None + self._templates = None self._verification_attempts = None self._verification_attempts_summary = None - self._templates = None - + @property - def forms(self): - """ - :rtype: twilio.rest.verify.v2.form.FormList - """ + def forms(self) -> FormListInstance: if self._forms is None: - self._forms = FormList(self) + self._forms = FormListInstance(self) return self._forms @property - def safelist(self): - """ - :rtype: twilio.rest.verify.v2.safelist.SafelistList - """ + def safelist(self) -> SafelistListInstance: if self._safelist is None: - self._safelist = SafelistList(self) + self._safelist = SafelistListInstance(self) return self._safelist @property - def services(self): - """ - :rtype: twilio.rest.verify.v2.service.ServiceList - """ + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def verification_attempts(self): - """ - :rtype: twilio.rest.verify.v2.verification_attempt.VerificationAttemptList - """ + def templates(self) -> TemplateListInstance: + if self._templates is None: + self._templates = TemplateListInstance(self) + return self._templates + + @property + def verification_attempts(self) -> VerificationAttemptListInstance: if self._verification_attempts is None: - self._verification_attempts = VerificationAttemptList(self) + self._verification_attempts = VerificationAttemptListInstance(self) return self._verification_attempts @property - def verification_attempts_summary(self): - """ - :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryList - """ + def verification_attempts_summary(self) -> VerificationAttemptsSummaryListInstance: if self._verification_attempts_summary is None: - self._verification_attempts_summary = VerificationAttemptsSummaryList(self) + self._verification_attempts_summary = VerificationAttemptsSummaryListInstance(self) return self._verification_attempts_summary - @property - def templates(self): - """ - :rtype: twilio.rest.verify.v2.template.TemplateList - """ - if self._templates is None: - self._templates = TemplateList(self) - return self._templates - - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index d238ca7446..75ee16b5a4 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -1,30 +1,36 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Video + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.video.v1.composition import CompositionList -from twilio.rest.video.v1.composition_hook import CompositionHookList -from twilio.rest.video.v1.composition_settings import CompositionSettingsList -from twilio.rest.video.v1.recording import RecordingList -from twilio.rest.video.v1.recording_settings import RecordingSettingsList -from twilio.rest.video.v1.room import RoomList +from twilio.base.domain import Domain +from twilio.rest.video.v1.composition import CompositionListInstance +from twilio.rest.video.v1.composition_hook import CompositionHookListInstance +from twilio.rest.video.v1.composition_settings import CompositionSettingsListInstance +from twilio.rest.video.v1.recording import RecordingListInstance +from twilio.rest.video.v1.recording_settings import RecordingSettingsListInstance +from twilio.rest.video.v1.room import RoomListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Video + Initialize the V1 version of video - :returns: V1 version of Video - :rtype: twilio.rest.video.v1.V1.V1 + :param domain: The Twilio.video domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._compositions = None self._composition_hooks = None @@ -32,66 +38,47 @@ def __init__(self, domain): self._recordings = None self._recording_settings = None self._rooms = None - + @property - def compositions(self): - """ - :rtype: twilio.rest.video.v1.composition.CompositionList - """ + def compositions(self) -> CompositionListInstance: if self._compositions is None: - self._compositions = CompositionList(self) + self._compositions = CompositionListInstance(self) return self._compositions @property - def composition_hooks(self): - """ - :rtype: twilio.rest.video.v1.composition_hook.CompositionHookList - """ + def composition_hooks(self) -> CompositionHookListInstance: if self._composition_hooks is None: - self._composition_hooks = CompositionHookList(self) + self._composition_hooks = CompositionHookListInstance(self) return self._composition_hooks @property - def composition_settings(self): - """ - :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsList - """ + def composition_settings(self) -> CompositionSettingsListInstance: if self._composition_settings is None: - self._composition_settings = CompositionSettingsList(self) + self._composition_settings = CompositionSettingsListInstance(self) return self._composition_settings @property - def recordings(self): - """ - :rtype: twilio.rest.video.v1.recording.RecordingList - """ + def recordings(self) -> RecordingListInstance: if self._recordings is None: - self._recordings = RecordingList(self) + self._recordings = RecordingListInstance(self) return self._recordings @property - def recording_settings(self): - """ - :rtype: twilio.rest.video.v1.recording_settings.RecordingSettingsList - """ + def recording_settings(self) -> RecordingSettingsListInstance: if self._recording_settings is None: - self._recording_settings = RecordingSettingsList(self) + self._recording_settings = RecordingSettingsListInstance(self) return self._recording_settings @property - def rooms(self): - """ - :rtype: twilio.rest.video.v1.room.RoomList - """ + def rooms(self) -> RoomListInstance: if self._rooms is None: - self._rooms = RoomList(self) + self._rooms = RoomListInstance(self) return self._rooms - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index f82a89b00a..3abc7c41ba 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -1,30 +1,36 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Voice + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.voice.v1.archived_call import ArchivedCallList -from twilio.rest.voice.v1.byoc_trunk import ByocTrunkList -from twilio.rest.voice.v1.connection_policy import ConnectionPolicyList -from twilio.rest.voice.v1.dialing_permissions import DialingPermissionsList -from twilio.rest.voice.v1.ip_record import IpRecordList -from twilio.rest.voice.v1.source_ip_mapping import SourceIpMappingList +from twilio.base.domain import Domain +from twilio.rest.voice.v1.archived_call import ArchivedCallListInstance +from twilio.rest.voice.v1.byoc_trunk import ByocTrunkListInstance +from twilio.rest.voice.v1.connection_policy import ConnectionPolicyListInstance +from twilio.rest.voice.v1.dialing_permissions import DialingPermissionsListInstance +from twilio.rest.voice.v1.ip_record import IpRecordListInstance +from twilio.rest.voice.v1.source_ip_mapping import SourceIpMappingListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Voice + Initialize the V1 version of voice - :returns: V1 version of Voice - :rtype: twilio.rest.voice.v1.V1.V1 + :param domain: The Twilio.voice domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' self._archived_calls = None self._byoc_trunks = None @@ -32,66 +38,47 @@ def __init__(self, domain): self._dialing_permissions = None self._ip_records = None self._source_ip_mappings = None - + @property - def archived_calls(self): - """ - :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallList - """ + def archived_calls(self) -> ArchivedCallListInstance: if self._archived_calls is None: - self._archived_calls = ArchivedCallList(self) + self._archived_calls = ArchivedCallListInstance(self) return self._archived_calls @property - def byoc_trunks(self): - """ - :rtype: twilio.rest.voice.v1.byoc_trunk.ByocTrunkList - """ + def byoc_trunks(self) -> ByocTrunkListInstance: if self._byoc_trunks is None: - self._byoc_trunks = ByocTrunkList(self) + self._byoc_trunks = ByocTrunkListInstance(self) return self._byoc_trunks @property - def connection_policies(self): - """ - :rtype: twilio.rest.voice.v1.connection_policy.ConnectionPolicyList - """ + def connection_policies(self) -> ConnectionPolicyListInstance: if self._connection_policies is None: - self._connection_policies = ConnectionPolicyList(self) + self._connection_policies = ConnectionPolicyListInstance(self) return self._connection_policies @property - def dialing_permissions(self): - """ - :rtype: twilio.rest.voice.v1.dialing_permissions.DialingPermissionsList - """ + def dialing_permissions(self) -> DialingPermissionsListInstance: if self._dialing_permissions is None: - self._dialing_permissions = DialingPermissionsList(self) + self._dialing_permissions = DialingPermissionsListInstance(self) return self._dialing_permissions @property - def ip_records(self): - """ - :rtype: twilio.rest.voice.v1.ip_record.IpRecordList - """ + def ip_records(self) -> IpRecordListInstance: if self._ip_records is None: - self._ip_records = IpRecordList(self) + self._ip_records = IpRecordListInstance(self) return self._ip_records @property - def source_ip_mappings(self): - """ - :rtype: twilio.rest.voice.v1.source_ip_mapping.SourceIpMappingList - """ + def source_ip_mappings(self) -> SourceIpMappingListInstance: if self._source_ip_mappings is None: - self._source_ip_mappings = SourceIpMappingList(self) + self._source_ip_mappings = SourceIpMappingListInstance(self) return self._source_ip_mappings - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index c0b2cbdcdf..5b09cf495b 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -1,75 +1,68 @@ -# coding=utf-8 -r""" -This code was generated by -\ / _ _ _| _ _ - | (_)\/(_)(_|\/| |(/_ v1.0.0 - / / +""" + This code was generated by + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + + Twilio - Wireless + This is the public Twilio REST API. + + NOTE: This class is auto generated by OpenAPI Generator. + https://openapi-generator.tech + Do not edit the class manually. """ from twilio.base.version import Version -from twilio.rest.wireless.v1.command import CommandList -from twilio.rest.wireless.v1.rate_plan import RatePlanList -from twilio.rest.wireless.v1.sim import SimList -from twilio.rest.wireless.v1.usage_record import UsageRecordList +from twilio.base.domain import Domain +from twilio.rest.wireless.v1.command import CommandListInstance +from twilio.rest.wireless.v1.rate_plan import RatePlanListInstance +from twilio.rest.wireless.v1.sim import SimListInstance +from twilio.rest.wireless.v1.usage_record import UsageRecordListInstance class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ - Initialize the V1 version of Wireless + Initialize the V1 version of wireless - :returns: V1 version of Wireless - :rtype: twilio.rest.wireless.v1.V1.V1 + :param domain: The Twilio.wireless domain """ - super(V1, self).__init__(domain) + super().__init__(domain) self.version = 'v1' - self._usage_records = None self._commands = None self._rate_plans = None self._sims = None - - @property - def usage_records(self): - """ - :rtype: twilio.rest.wireless.v1.usage_record.UsageRecordList - """ - if self._usage_records is None: - self._usage_records = UsageRecordList(self) - return self._usage_records - + self._usage_records = None + @property - def commands(self): - """ - :rtype: twilio.rest.wireless.v1.command.CommandList - """ + def commands(self) -> CommandListInstance: if self._commands is None: - self._commands = CommandList(self) + self._commands = CommandListInstance(self) return self._commands @property - def rate_plans(self): - """ - :rtype: twilio.rest.wireless.v1.rate_plan.RatePlanList - """ + def rate_plans(self) -> RatePlanListInstance: if self._rate_plans is None: - self._rate_plans = RatePlanList(self) + self._rate_plans = RatePlanListInstance(self) return self._rate_plans @property - def sims(self): - """ - :rtype: twilio.rest.wireless.v1.sim.SimList - """ + def sims(self) -> SimListInstance: if self._sims is None: - self._sims = SimList(self) + self._sims = SimListInstance(self) return self._sims - def __repr__(self): + @property + def usage_records(self) -> UsageRecordListInstance: + if self._usage_records is None: + self._usage_records = UsageRecordListInstance(self) + return self._usage_records + + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ - return '' + return '' From 1b7476716d4e2f2a005685e863c15bd5c16c6cbc Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 14:21:34 -0500 Subject: [PATCH 02/11] chore: remove flex api changes --- tests/unit/mock_test.py | 27 ++++ .../v1/insights_questionnaires_category.py | 140 ----------------- .../v1/insights_questionnaires_question.py | 144 ------------------ twilio/rest/flex_api/v1/insights_session.py | 110 ------------- .../v1/insights_settings_answer_sets.py | 90 ----------- .../flex_api/v1/insights_settings_comment.py | 88 ----------- twilio/rest/flex_api/v1/user_roles.py | 116 -------------- 7 files changed, 27 insertions(+), 688 deletions(-) create mode 100644 tests/unit/mock_test.py delete mode 100644 twilio/rest/flex_api/v1/insights_questionnaires_category.py delete mode 100644 twilio/rest/flex_api/v1/insights_questionnaires_question.py delete mode 100644 twilio/rest/flex_api/v1/insights_session.py delete mode 100644 twilio/rest/flex_api/v1/insights_settings_answer_sets.py delete mode 100644 twilio/rest/flex_api/v1/insights_settings_comment.py delete mode 100644 twilio/rest/flex_api/v1/user_roles.py diff --git a/tests/unit/mock_test.py b/tests/unit/mock_test.py new file mode 100644 index 0000000000..db33697ab0 --- /dev/null +++ b/tests/unit/mock_test.py @@ -0,0 +1,27 @@ +import unittest +import requests +from unittest import mock +from unittest.mock import MagicMock +from twilio.rest import Client +from twilio.http.response import Response + + +# I think I need to mock TwilioHttpClient (or maybe its parent, HttpClient) under http.httpClient +class TestAccount(unittest.TestCase): + def setUp(self): + pass + + def test_create_account(self): + response = Response(status_code=200, text="Some text") + self.client = Client('username', 'password') + self.client.request = MagicMock(return_value=response) + self.client.api.v2010.accounts.create("SomeName") + self.client.request.assert_called_with("POST", "/Accounts.json", params=None, data={"FriendlyName": "SomeName"}, headers=None, auth=None, timeout=None, allow_redirects=False) + + @mock.patch('twilio.rest.Client') + def test2(self): + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_category.py b/twilio/rest/flex_api/v1/insights_questionnaires_category.py deleted file mode 100644 index ddf20765d6..0000000000 --- a/twilio/rest/flex_api/v1/insights_questionnaires_category.py +++ /dev/null @@ -1,140 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - -class InsightsQuestionnairesCategoryContext(InstanceContext): - def __init__(self, version: Version, category_id: str): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { 'category_id': category_id, } - self._uri = '/Insights/QM/Categories/${category_id}' - - - def delete(self, token): - - - - """ - Deletes the InsightsQuestionnairesCategoryInstance - - :returns: True if delete succeeds, False otherwise - :rtype: bool - """ - return self._version.delete(method='DELETE', uri=self._uri, ) - - def update(self, token, body): - data = values.of({ - 'token': token,'body': body, - }) - - payload = self._version.update(method='post', uri=self._uri, data=data, ) - - return InsightsQuestionnairesCategoryInstance(self._version, payload, category_id=self._solution['category_id'], ) - - - - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - - - -class InsightsQuestionnairesCategoryInstance(InstanceResource): - def __init__(self, version, payload, category_id: str): - super().__init__(version) - self._properties = { - 'account_sid' : payload.get('account_sid'), - 'category_id' : payload.get('category_id'), - 'name' : payload.get('name'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - 'category_id': category_id or self._properties['category_id'], - } - - @property - def _proxy(self): - if self._context is None: - self._context = InsightsQuestionnairesCategoryContext( - self._version, - category_id=self._solution['category_id'], - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class InsightsQuestionnairesCategoryListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/QM/Categories' - - - """ - def create(self, token, body): - data = values.of({ - 'token': token,'body': body, - }) - - payload = self._version.create(method='post', uri=self._uri, data=data, ) - - return InsightsQuestionnairesCategoryInstance(self._version, payload, ) - - """ - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_question.py b/twilio/rest/flex_api/v1/insights_questionnaires_question.py deleted file mode 100644 index a72b7183b8..0000000000 --- a/twilio/rest/flex_api/v1/insights_questionnaires_question.py +++ /dev/null @@ -1,144 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - -class InsightsQuestionnairesQuestionContext(InstanceContext): - def __init__(self, version: Version, question_id: str): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { 'question_id': question_id, } - self._uri = '/Insights/QM/Questions/${question_id}' - - - def delete(self, token): - - - - """ - Deletes the InsightsQuestionnairesQuestionInstance - - :returns: True if delete succeeds, False otherwise - :rtype: bool - """ - return self._version.delete(method='DELETE', uri=self._uri, ) - - def update(self, token, body): - data = values.of({ - 'token': token,'body': body, - }) - - payload = self._version.update(method='post', uri=self._uri, data=data, ) - - return InsightsQuestionnairesQuestionInstance(self._version, payload, question_id=self._solution['question_id'], ) - - - - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - - - -class InsightsQuestionnairesQuestionInstance(InstanceResource): - def __init__(self, version, payload, question_id: str): - super().__init__(version) - self._properties = { - 'account_sid' : payload.get('account_sid'), - 'question_id' : payload.get('question_id'), - 'question' : payload.get('question'), - 'description' : payload.get('description'), - 'category' : payload.get('category'), - 'answer_set_id' : payload.get('answer_set_id'), - 'allow_na' : payload.get('allow_na'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - 'question_id': question_id or self._properties['question_id'], - } - - @property - def _proxy(self): - if self._context is None: - self._context = InsightsQuestionnairesQuestionContext( - self._version, - question_id=self._solution['question_id'], - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class InsightsQuestionnairesQuestionListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/QM/Questions' - - - """ - def create(self, token, body): - data = values.of({ - 'token': token,'body': body, - }) - - payload = self._version.create(method='post', uri=self._uri, data=data, ) - - return InsightsQuestionnairesQuestionInstance(self._version, payload, ) - - """ - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - diff --git a/twilio/rest/flex_api/v1/insights_session.py b/twilio/rest/flex_api/v1/insights_session.py deleted file mode 100644 index b1785c0df2..0000000000 --- a/twilio/rest/flex_api/v1/insights_session.py +++ /dev/null @@ -1,110 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - -class InsightsSessionContext(InstanceContext): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/Session' - - - def create(self, token): - - - - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - - - -class InsightsSessionInstance(InstanceResource): - def __init__(self, version, payload): - super().__init__(version) - self._properties = { - 'workspace_id' : payload.get('workspace_id'), - 'session_expiry' : payload.get('session_expiry'), - 'session_id' : payload.get('session_id'), - 'base_url' : payload.get('base_url'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - - } - - @property - def _proxy(self): - if self._context is None: - self._context = InsightsSessionContext( - self._version, - - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class InsightsSessionListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '' - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - diff --git a/twilio/rest/flex_api/v1/insights_settings_answer_sets.py b/twilio/rest/flex_api/v1/insights_settings_answer_sets.py deleted file mode 100644 index 1957b94eae..0000000000 --- a/twilio/rest/flex_api/v1/insights_settings_answer_sets.py +++ /dev/null @@ -1,90 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - - -class InsightsSettingsAnswerSetsInstance(InstanceResource): - def __init__(self, version, payload): - super().__init__(version) - self._properties = { - 'account_sid' : payload.get('account_sid'), - 'answer_sets' : payload.get('answer_sets'), - 'answer_set_categories' : payload.get('answer_set_categories'), - 'not_applicable' : payload.get('not_applicable'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - - } - - @property - def _proxy(self): - if self._context is None: - self._context = InsightsSettingsAnswerSetsContext( - self._version, - - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class InsightsSettingsAnswerSetsListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/QM/Settings/AnswerSets' - - - """ - def fetch(self, token): - - - """ - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - diff --git a/twilio/rest/flex_api/v1/insights_settings_comment.py b/twilio/rest/flex_api/v1/insights_settings_comment.py deleted file mode 100644 index 72d05eab15..0000000000 --- a/twilio/rest/flex_api/v1/insights_settings_comment.py +++ /dev/null @@ -1,88 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - - -class InsightsSettingsCommentInstance(InstanceResource): - def __init__(self, version, payload): - super().__init__(version) - self._properties = { - 'account_sid' : payload.get('account_sid'), - 'comments' : payload.get('comments'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - - } - - @property - def _proxy(self): - if self._context is None: - self._context = InsightsSettingsCommentContext( - self._version, - - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class InsightsSettingsCommentListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/QM/Settings/CommentTags' - - - """ - def fetch(self, token): - - - """ - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - diff --git a/twilio/rest/flex_api/v1/user_roles.py b/twilio/rest/flex_api/v1/user_roles.py deleted file mode 100644 index 063e2de686..0000000000 --- a/twilio/rest/flex_api/v1/user_roles.py +++ /dev/null @@ -1,116 +0,0 @@ -""" - This code was generated by - ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - - Twilio - Flex - This is the public Twilio REST API. - - NOTE: This class is auto generated by OpenAPI Generator. - https://openapi-generator.tech - Do not edit the class manually. -""" - - -from twilio.base import deserialize -from twilio.base import serialize -from twilio.base import values -from twilio.base.instance_context import InstanceContext -from twilio.base.instance_resource import InstanceResource -from twilio.base.list_resource import ListResource -from twilio.base.version import Version - -# - - -class UserRolesContext(InstanceContext): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '/Insights/UserRoles' - - - def fetch(self, token): - - """ - Fetch the UserRolesInstance - - :returns: The fetched UserRolesInstance - #TODO: add rtype docs - """ - payload = self._version.fetch(method='GET', uri=self._uri, ) - - return UserRolesInstance(self._version, payload, ) - - - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - - - -class UserRolesInstance(InstanceResource): - def __init__(self, version, payload): - super().__init__(version) - self._properties = { - 'roles' : payload.get('roles'), - 'url' : payload.get('url'), - } - - self._context = None - self._solution = { - - } - - @property - def _proxy(self): - if self._context is None: - self._context = UserRolesContext( - self._version, - - ) - return self._context - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - - - -class UserRolesListInstance(ListResource): - def __init__(self, version: Version): - # TODO: needs autogenerated docs - super().__init__(version) - - # Path Solution - self._solution = { } - self._uri = '' - - - - def __repr__(self): - """ - Provide a friendly representation - :returns: Machine friendly representation - :rtype: str - """ - return '' - From a1e45bff7a909d242aa2498b474bf102ecc85d8f Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:03:51 -0500 Subject: [PATCH 03/11] chore: regenerate code --- twilio/rest/accounts/v1/__init__.py | 18 +++--- twilio/rest/api/v2010/__init__.py | 6 +- twilio/rest/autopilot/v1/__init__.py | 12 ++-- twilio/rest/bulkexports/v1/__init__.py | 12 ++-- twilio/rest/chat/v1/__init__.py | 12 ++-- twilio/rest/chat/v2/__init__.py | 12 ++-- twilio/rest/chat/v3/__init__.py | 6 +- twilio/rest/content/v1/__init__.py | 6 +- twilio/rest/conversations/v1/__init__.py | 48 ++++++++-------- twilio/rest/events/v1/__init__.py | 24 ++++---- twilio/rest/flex_api/v1/__init__.py | 72 ++++++++++++------------ twilio/rest/flex_api/v2/__init__.py | 6 +- twilio/rest/frontline_api/v1/__init__.py | 6 +- twilio/rest/insights/v1/__init__.py | 30 +++++----- twilio/rest/ip_messaging/v1/__init__.py | 12 ++-- twilio/rest/ip_messaging/v2/__init__.py | 12 ++-- twilio/rest/lookups/v1/__init__.py | 6 +- twilio/rest/lookups/v2/__init__.py | 6 +- twilio/rest/media/v1/__init__.py | 18 +++--- twilio/rest/messaging/v1/__init__.py | 48 ++++++++-------- twilio/rest/microvisor/v1/__init__.py | 12 ++-- twilio/rest/monitor/v1/__init__.py | 12 ++-- twilio/rest/notify/v1/__init__.py | 12 ++-- twilio/rest/numbers/v2/__init__.py | 6 +- twilio/rest/oauth/v1/__init__.py | 30 +++++----- twilio/rest/pricing/v1/__init__.py | 18 +++--- twilio/rest/pricing/v2/__init__.py | 18 +++--- twilio/rest/proxy/v1/__init__.py | 6 +- twilio/rest/routes/v2/__init__.py | 18 +++--- twilio/rest/serverless/v1/__init__.py | 6 +- twilio/rest/studio/v1/__init__.py | 6 +- twilio/rest/studio/v2/__init__.py | 12 ++-- twilio/rest/supersim/v1/__init__.py | 54 +++++++++--------- twilio/rest/sync/v1/__init__.py | 6 +- twilio/rest/taskrouter/v1/__init__.py | 6 +- twilio/rest/trunking/v1/__init__.py | 6 +- twilio/rest/trusthub/v1/__init__.py | 42 +++++++------- twilio/rest/verify/v2/__init__.py | 36 ++++++------ twilio/rest/video/v1/__init__.py | 36 ++++++------ twilio/rest/voice/v1/__init__.py | 36 ++++++------ twilio/rest/wireless/v1/__init__.py | 24 ++++---- 41 files changed, 387 insertions(+), 387 deletions(-) diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index 3581e2ead8..c740dabac6 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -14,9 +14,9 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionListInstance -from twilio.rest.accounts.v1.credential import CredentialListInstance -from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenListInstance +from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList +from twilio.rest.accounts.v1.credential import CredentialList +from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList class V1(Version): @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._secondary_auth_token = None @property - def auth_token_promotion(self) -> AuthTokenPromotionListInstance: + def auth_token_promotion(self) -> AuthTokenPromotionList: if self._auth_token_promotion is None: - self._auth_token_promotion = AuthTokenPromotionListInstance(self) + self._auth_token_promotion = AuthTokenPromotionList(self) return self._auth_token_promotion @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def secondary_auth_token(self) -> SecondaryAuthTokenListInstance: + def secondary_auth_token(self) -> SecondaryAuthTokenList: if self._secondary_auth_token is None: - self._secondary_auth_token = SecondaryAuthTokenListInstance(self) + self._secondary_auth_token = SecondaryAuthTokenList(self) return self._secondary_auth_token def __repr__(self) -> str: diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index 0b307f9f42..a6599c77a9 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.api.v2010.account import AccountListInstance +from twilio.rest.api.v2010.account import AccountList from twilio.rest.api.v2010.account import AccountContext @@ -32,9 +32,9 @@ def __init__(self, domain: Domain): self._account = None @property - def accounts(self) -> AccountListInstance: + def accounts(self) -> AccountList: if self._accounts is None: - self._accounts = AccountListInstance(self) + self._accounts = AccountList(self) return self._accounts @property diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index ebe95782be..70361816c8 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.autopilot.v1.assistant import AssistantListInstance -from twilio.rest.autopilot.v1.restore_assistant import RestoreAssistantListInstance +from twilio.rest.autopilot.v1.assistant import AssistantList +from twilio.rest.autopilot.v1.restore_assistant import RestoreAssistantList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._restore_assistant = None @property - def assistants(self) -> AssistantListInstance: + def assistants(self) -> AssistantList: if self._assistants is None: - self._assistants = AssistantListInstance(self) + self._assistants = AssistantList(self) return self._assistants @property - def restore_assistant(self) -> RestoreAssistantListInstance: + def restore_assistant(self) -> RestoreAssistantList: if self._restore_assistant is None: - self._restore_assistant = RestoreAssistantListInstance(self) + self._restore_assistant = RestoreAssistantList(self) return self._restore_assistant def __repr__(self) -> str: diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index a223b3abc7..fd8dd2bb70 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.bulkexports.v1.export import ExportListInstance -from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationListInstance +from twilio.rest.bulkexports.v1.export import ExportList +from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._export_configuration = None @property - def exports(self) -> ExportListInstance: + def exports(self) -> ExportList: if self._exports is None: - self._exports = ExportListInstance(self) + self._exports = ExportList(self) return self._exports @property - def export_configuration(self) -> ExportConfigurationListInstance: + def export_configuration(self) -> ExportConfigurationList: if self._export_configuration is None: - self._export_configuration = ExportConfigurationListInstance(self) + self._export_configuration = ExportConfigurationList(self) return self._export_configuration def __repr__(self) -> str: diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index e0d090dfa9..8392744d7d 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.chat.v1.credential import CredentialListInstance -from twilio.rest.chat.v1.service import ServiceListInstance +from twilio.rest.chat.v1.credential import CredentialList +from twilio.rest.chat.v1.service import ServiceList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index 7b89eccf12..e5b6a7a10c 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.chat.v2.credential import CredentialListInstance -from twilio.rest.chat.v2.service import ServiceListInstance +from twilio.rest.chat.v2.credential import CredentialList +from twilio.rest.chat.v2.service import ServiceList class V2(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index d0445ec700..5991158971 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.chat.v3.channel import ChannelListInstance +from twilio.rest.chat.v3.channel import ChannelList class V3(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._channels = None @property - def channels(self) -> ChannelListInstance: + def channels(self) -> ChannelList: if self._channels is None: - self._channels = ChannelListInstance(self) + self._channels = ChannelList(self) return self._channels def __repr__(self) -> str: diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index 2e07bc76e6..efd98e7e27 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.content.v1.content import ContentListInstance +from twilio.rest.content.v1.content import ContentList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._contents = None @property - def contents(self) -> ContentListInstance: + def contents(self) -> ContentList: if self._contents is None: - self._contents = ContentListInstance(self) + self._contents = ContentList(self) return self._contents def __repr__(self) -> str: diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index 6dfd70dfe8..c0c46ef7b1 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -14,14 +14,14 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.conversations.v1.address_configuration import AddressConfigurationListInstance -from twilio.rest.conversations.v1.configuration import ConfigurationListInstance -from twilio.rest.conversations.v1.conversation import ConversationListInstance -from twilio.rest.conversations.v1.credential import CredentialListInstance -from twilio.rest.conversations.v1.participant_conversation import ParticipantConversationListInstance -from twilio.rest.conversations.v1.role import RoleListInstance -from twilio.rest.conversations.v1.service import ServiceListInstance -from twilio.rest.conversations.v1.user import UserListInstance +from twilio.rest.conversations.v1.address_configuration import AddressConfigurationList +from twilio.rest.conversations.v1.configuration import ConfigurationList +from twilio.rest.conversations.v1.conversation import ConversationList +from twilio.rest.conversations.v1.credential import CredentialList +from twilio.rest.conversations.v1.participant_conversation import ParticipantConversationList +from twilio.rest.conversations.v1.role import RoleList +from twilio.rest.conversations.v1.service import ServiceList +from twilio.rest.conversations.v1.user import UserList class V1(Version): @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._users = None @property - def address_configurations(self) -> AddressConfigurationListInstance: + def address_configurations(self) -> AddressConfigurationList: if self._address_configurations is None: - self._address_configurations = AddressConfigurationListInstance(self) + self._address_configurations = AddressConfigurationList(self) return self._address_configurations @property - def configuration(self) -> ConfigurationListInstance: + def configuration(self) -> ConfigurationList: if self._configuration is None: - self._configuration = ConfigurationListInstance(self) + self._configuration = ConfigurationList(self) return self._configuration @property - def conversations(self) -> ConversationListInstance: + def conversations(self) -> ConversationList: if self._conversations is None: - self._conversations = ConversationListInstance(self) + self._conversations = ConversationList(self) return self._conversations @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def participant_conversations(self) -> ParticipantConversationListInstance: + def participant_conversations(self) -> ParticipantConversationList: if self._participant_conversations is None: - self._participant_conversations = ParticipantConversationListInstance(self) + self._participant_conversations = ParticipantConversationList(self) return self._participant_conversations @property - def roles(self) -> RoleListInstance: + def roles(self) -> RoleList: if self._roles is None: - self._roles = RoleListInstance(self) + self._roles = RoleList(self) return self._roles @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def users(self) -> UserListInstance: + def users(self) -> UserList: if self._users is None: - self._users = UserListInstance(self) + self._users = UserList(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index 9aec64b1f0..cc57389bf5 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -14,10 +14,10 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.events.v1.event_type import EventTypeListInstance -from twilio.rest.events.v1.schema import SchemaListInstance -from twilio.rest.events.v1.sink import SinkListInstance -from twilio.rest.events.v1.subscription import SubscriptionListInstance +from twilio.rest.events.v1.event_type import EventTypeList +from twilio.rest.events.v1.schema import SchemaList +from twilio.rest.events.v1.sink import SinkList +from twilio.rest.events.v1.subscription import SubscriptionList class V1(Version): @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._subscriptions = None @property - def event_types(self) -> EventTypeListInstance: + def event_types(self) -> EventTypeList: if self._event_types is None: - self._event_types = EventTypeListInstance(self) + self._event_types = EventTypeList(self) return self._event_types @property - def schemas(self) -> SchemaListInstance: + def schemas(self) -> SchemaList: if self._schemas is None: - self._schemas = SchemaListInstance(self) + self._schemas = SchemaList(self) return self._schemas @property - def sinks(self) -> SinkListInstance: + def sinks(self) -> SinkList: if self._sinks is None: - self._sinks = SinkListInstance(self) + self._sinks = SinkList(self) return self._sinks @property - def subscriptions(self) -> SubscriptionListInstance: + def subscriptions(self) -> SubscriptionList: if self._subscriptions is None: - self._subscriptions = SubscriptionListInstance(self) + self._subscriptions = SubscriptionList(self) return self._subscriptions def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index 3f29179c5d..49b9f337d6 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -14,18 +14,18 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.flex_api.v1.assessments import AssessmentsListInstance -from twilio.rest.flex_api.v1.channel import ChannelListInstance -from twilio.rest.flex_api.v1.configuration import ConfigurationListInstance -from twilio.rest.flex_api.v1.flex_flow import FlexFlowListInstance -from twilio.rest.flex_api.v1.insights_questionnaires_category import InsightsQuestionnairesCategoryListInstance -from twilio.rest.flex_api.v1.insights_questionnaires_question import InsightsQuestionnairesQuestionListInstance -from twilio.rest.flex_api.v1.insights_session import InsightsSessionListInstance -from twilio.rest.flex_api.v1.insights_settings_answer_sets import InsightsSettingsAnswerSetsListInstance -from twilio.rest.flex_api.v1.insights_settings_comment import InsightsSettingsCommentListInstance -from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesListInstance -from twilio.rest.flex_api.v1.interaction import InteractionListInstance -from twilio.rest.flex_api.v1.web_channel import WebChannelListInstance +from twilio.rest.flex_api.v1.assessments import AssessmentsList +from twilio.rest.flex_api.v1.channel import ChannelList +from twilio.rest.flex_api.v1.configuration import ConfigurationList +from twilio.rest.flex_api.v1.flex_flow import FlexFlowList +from twilio.rest.flex_api.v1.insights_questionnaires_category import InsightsQuestionnairesCategoryList +from twilio.rest.flex_api.v1.insights_questionnaires_question import InsightsQuestionnairesQuestionList +from twilio.rest.flex_api.v1.insights_session import InsightsSessionList +from twilio.rest.flex_api.v1.insights_settings_answer_sets import InsightsSettingsAnswerSetsList +from twilio.rest.flex_api.v1.insights_settings_comment import InsightsSettingsCommentList +from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesList +from twilio.rest.flex_api.v1.interaction import InteractionList +from twilio.rest.flex_api.v1.web_channel import WebChannelList class V1(Version): @@ -52,75 +52,75 @@ def __init__(self, domain: Domain): self._web_channel = None @property - def assessments(self) -> AssessmentsListInstance: + def assessments(self) -> AssessmentsList: if self._assessments is None: - self._assessments = AssessmentsListInstance(self) + self._assessments = AssessmentsList(self) return self._assessments @property - def channel(self) -> ChannelListInstance: + def channel(self) -> ChannelList: if self._channel is None: - self._channel = ChannelListInstance(self) + self._channel = ChannelList(self) return self._channel @property - def configuration(self) -> ConfigurationListInstance: + def configuration(self) -> ConfigurationList: if self._configuration is None: - self._configuration = ConfigurationListInstance(self) + self._configuration = ConfigurationList(self) return self._configuration @property - def flex_flow(self) -> FlexFlowListInstance: + def flex_flow(self) -> FlexFlowList: if self._flex_flow is None: - self._flex_flow = FlexFlowListInstance(self) + self._flex_flow = FlexFlowList(self) return self._flex_flow @property - def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryListInstance: + def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryList: if self._insights_questionnaires_category is None: - self._insights_questionnaires_category = InsightsQuestionnairesCategoryListInstance(self) + self._insights_questionnaires_category = InsightsQuestionnairesCategoryList(self) return self._insights_questionnaires_category @property - def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionListInstance: + def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionList: if self._insights_questionnaires_question is None: - self._insights_questionnaires_question = InsightsQuestionnairesQuestionListInstance(self) + self._insights_questionnaires_question = InsightsQuestionnairesQuestionList(self) return self._insights_questionnaires_question @property - def insights_session(self) -> InsightsSessionListInstance: + def insights_session(self) -> InsightsSessionList: if self._insights_session is None: - self._insights_session = InsightsSessionListInstance(self) + self._insights_session = InsightsSessionList(self) return self._insights_session @property - def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsListInstance: + def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsList: if self._insights_settings_answer_sets is None: - self._insights_settings_answer_sets = InsightsSettingsAnswerSetsListInstance(self) + self._insights_settings_answer_sets = InsightsSettingsAnswerSetsList(self) return self._insights_settings_answer_sets @property - def insights_settings_comment(self) -> InsightsSettingsCommentListInstance: + def insights_settings_comment(self) -> InsightsSettingsCommentList: if self._insights_settings_comment is None: - self._insights_settings_comment = InsightsSettingsCommentListInstance(self) + self._insights_settings_comment = InsightsSettingsCommentList(self) return self._insights_settings_comment @property - def insights_user_roles(self) -> InsightsUserRolesListInstance: + def insights_user_roles(self) -> InsightsUserRolesList: if self._insights_user_roles is None: - self._insights_user_roles = InsightsUserRolesListInstance(self) + self._insights_user_roles = InsightsUserRolesList(self) return self._insights_user_roles @property - def interaction(self) -> InteractionListInstance: + def interaction(self) -> InteractionList: if self._interaction is None: - self._interaction = InteractionListInstance(self) + self._interaction = InteractionList(self) return self._interaction @property - def web_channel(self) -> WebChannelListInstance: + def web_channel(self) -> WebChannelList: if self._web_channel is None: - self._web_channel = WebChannelListInstance(self) + self._web_channel = WebChannelList(self) return self._web_channel def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index 4f35c06690..3d8b4e64ec 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.flex_api.v2.web_channels import WebChannelsListInstance +from twilio.rest.flex_api.v2.web_channels import WebChannelsList class V2(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._web_channels = None @property - def web_channels(self) -> WebChannelsListInstance: + def web_channels(self) -> WebChannelsList: if self._web_channels is None: - self._web_channels = WebChannelsListInstance(self) + self._web_channels = WebChannelsList(self) return self._web_channels def __repr__(self) -> str: diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index a83dee03ac..a2a5cecf9b 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.frontline_api.v1.user import UserListInstance +from twilio.rest.frontline_api.v1.user import UserList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._users = None @property - def users(self) -> UserListInstance: + def users(self) -> UserList: if self._users is None: - self._users = UserListInstance(self) + self._users = UserList(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 577e4d12a4..1ffee1c711 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -14,11 +14,11 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.insights.v1.call import CallListInstance -from twilio.rest.insights.v1.call_summaries import CallSummariesListInstance -from twilio.rest.insights.v1.conference import ConferenceListInstance -from twilio.rest.insights.v1.room import RoomListInstance -from twilio.rest.insights.v1.setting import SettingListInstance +from twilio.rest.insights.v1.call import CallList +from twilio.rest.insights.v1.call_summaries import CallSummariesList +from twilio.rest.insights.v1.conference import ConferenceList +from twilio.rest.insights.v1.room import RoomList +from twilio.rest.insights.v1.setting import SettingList class V1(Version): @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._settings = None @property - def calls(self) -> CallListInstance: + def calls(self) -> CallList: if self._calls is None: - self._calls = CallListInstance(self) + self._calls = CallList(self) return self._calls @property - def call_summaries(self) -> CallSummariesListInstance: + def call_summaries(self) -> CallSummariesList: if self._call_summaries is None: - self._call_summaries = CallSummariesListInstance(self) + self._call_summaries = CallSummariesList(self) return self._call_summaries @property - def conferences(self) -> ConferenceListInstance: + def conferences(self) -> ConferenceList: if self._conferences is None: - self._conferences = ConferenceListInstance(self) + self._conferences = ConferenceList(self) return self._conferences @property - def rooms(self) -> RoomListInstance: + def rooms(self) -> RoomList: if self._rooms is None: - self._rooms = RoomListInstance(self) + self._rooms = RoomList(self) return self._rooms @property - def settings(self) -> SettingListInstance: + def settings(self) -> SettingList: if self._settings is None: - self._settings = SettingListInstance(self) + self._settings = SettingList(self) return self._settings def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index 8dd8fc2893..42e13898a2 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.ip_messaging.v1.credential import CredentialListInstance -from twilio.rest.ip_messaging.v1.service import ServiceListInstance +from twilio.rest.ip_messaging.v1.credential import CredentialList +from twilio.rest.ip_messaging.v1.service import ServiceList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index cad59903f2..5ce6314ca3 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.ip_messaging.v2.credential import CredentialListInstance -from twilio.rest.ip_messaging.v2.service import ServiceListInstance +from twilio.rest.ip_messaging.v2.credential import CredentialList +from twilio.rest.ip_messaging.v2.service import ServiceList class V2(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index 48d8af0984..1c91b83935 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.lookups.v1.phone_number import PhoneNumberListInstance +from twilio.rest.lookups.v1.phone_number import PhoneNumberList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index 0cf832787f..af372a4e9b 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.lookups.v2.phone_number import PhoneNumberListInstance +from twilio.rest.lookups.v2.phone_number import PhoneNumberList class V2(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index 401a045c83..1f3daf399e 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -14,9 +14,9 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.media.v1.media_processor import MediaProcessorListInstance -from twilio.rest.media.v1.media_recording import MediaRecordingListInstance -from twilio.rest.media.v1.player_streamer import PlayerStreamerListInstance +from twilio.rest.media.v1.media_processor import MediaProcessorList +from twilio.rest.media.v1.media_recording import MediaRecordingList +from twilio.rest.media.v1.player_streamer import PlayerStreamerList class V1(Version): @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._player_streamer = None @property - def media_processor(self) -> MediaProcessorListInstance: + def media_processor(self) -> MediaProcessorList: if self._media_processor is None: - self._media_processor = MediaProcessorListInstance(self) + self._media_processor = MediaProcessorList(self) return self._media_processor @property - def media_recording(self) -> MediaRecordingListInstance: + def media_recording(self) -> MediaRecordingList: if self._media_recording is None: - self._media_recording = MediaRecordingListInstance(self) + self._media_recording = MediaRecordingList(self) return self._media_recording @property - def player_streamer(self) -> PlayerStreamerListInstance: + def player_streamer(self) -> PlayerStreamerList: if self._player_streamer is None: - self._player_streamer = PlayerStreamerListInstance(self) + self._player_streamer = PlayerStreamerList(self) return self._player_streamer def __repr__(self) -> str: diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index de289e562f..970f375826 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -14,14 +14,14 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.messaging.v1.brand_registration import BrandRegistrationListInstance -from twilio.rest.messaging.v1.deactivations import DeactivationsListInstance -from twilio.rest.messaging.v1.domain_certs import DomainCertsListInstance -from twilio.rest.messaging.v1.domain_config import DomainConfigListInstance -from twilio.rest.messaging.v1.external_campaign import ExternalCampaignListInstance -from twilio.rest.messaging.v1.service import ServiceListInstance -from twilio.rest.messaging.v1.tollfree_verification import TollfreeVerificationListInstance -from twilio.rest.messaging.v1.usecase import UsecaseListInstance +from twilio.rest.messaging.v1.brand_registration import BrandRegistrationList +from twilio.rest.messaging.v1.deactivations import DeactivationsList +from twilio.rest.messaging.v1.domain_certs import DomainCertsList +from twilio.rest.messaging.v1.domain_config import DomainConfigList +from twilio.rest.messaging.v1.external_campaign import ExternalCampaignList +from twilio.rest.messaging.v1.service import ServiceList +from twilio.rest.messaging.v1.tollfree_verification import TollfreeVerificationList +from twilio.rest.messaging.v1.usecase import UsecaseList class V1(Version): @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._usecases = None @property - def brand_registrations(self) -> BrandRegistrationListInstance: + def brand_registrations(self) -> BrandRegistrationList: if self._brand_registrations is None: - self._brand_registrations = BrandRegistrationListInstance(self) + self._brand_registrations = BrandRegistrationList(self) return self._brand_registrations @property - def deactivations(self) -> DeactivationsListInstance: + def deactivations(self) -> DeactivationsList: if self._deactivations is None: - self._deactivations = DeactivationsListInstance(self) + self._deactivations = DeactivationsList(self) return self._deactivations @property - def domain_certs(self) -> DomainCertsListInstance: + def domain_certs(self) -> DomainCertsList: if self._domain_certs is None: - self._domain_certs = DomainCertsListInstance(self) + self._domain_certs = DomainCertsList(self) return self._domain_certs @property - def domain_config(self) -> DomainConfigListInstance: + def domain_config(self) -> DomainConfigList: if self._domain_config is None: - self._domain_config = DomainConfigListInstance(self) + self._domain_config = DomainConfigList(self) return self._domain_config @property - def external_campaign(self) -> ExternalCampaignListInstance: + def external_campaign(self) -> ExternalCampaignList: if self._external_campaign is None: - self._external_campaign = ExternalCampaignListInstance(self) + self._external_campaign = ExternalCampaignList(self) return self._external_campaign @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def tollfree_verifications(self) -> TollfreeVerificationListInstance: + def tollfree_verifications(self) -> TollfreeVerificationList: if self._tollfree_verifications is None: - self._tollfree_verifications = TollfreeVerificationListInstance(self) + self._tollfree_verifications = TollfreeVerificationList(self) return self._tollfree_verifications @property - def usecases(self) -> UsecaseListInstance: + def usecases(self) -> UsecaseList: if self._usecases is None: - self._usecases = UsecaseListInstance(self) + self._usecases = UsecaseList(self) return self._usecases def __repr__(self) -> str: diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index 406c26bdb4..9e7324bd46 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.microvisor.v1.app import AppListInstance -from twilio.rest.microvisor.v1.device import DeviceListInstance +from twilio.rest.microvisor.v1.app import AppList +from twilio.rest.microvisor.v1.device import DeviceList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._devices = None @property - def apps(self) -> AppListInstance: + def apps(self) -> AppList: if self._apps is None: - self._apps = AppListInstance(self) + self._apps = AppList(self) return self._apps @property - def devices(self) -> DeviceListInstance: + def devices(self) -> DeviceList: if self._devices is None: - self._devices = DeviceListInstance(self) + self._devices = DeviceList(self) return self._devices def __repr__(self) -> str: diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index d05729e539..129df15bbb 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.monitor.v1.alert import AlertListInstance -from twilio.rest.monitor.v1.event import EventListInstance +from twilio.rest.monitor.v1.alert import AlertList +from twilio.rest.monitor.v1.event import EventList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._events = None @property - def alerts(self) -> AlertListInstance: + def alerts(self) -> AlertList: if self._alerts is None: - self._alerts = AlertListInstance(self) + self._alerts = AlertList(self) return self._alerts @property - def events(self) -> EventListInstance: + def events(self) -> EventList: if self._events is None: - self._events = EventListInstance(self) + self._events = EventList(self) return self._events def __repr__(self) -> str: diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index e933962db2..5e0f0e5eb9 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.notify.v1.credential import CredentialListInstance -from twilio.rest.notify.v1.service import ServiceListInstance +from twilio.rest.notify.v1.credential import CredentialList +from twilio.rest.notify.v1.service import ServiceList class V1(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index f16ebe632f..fa210447ae 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.numbers.v2.regulatory_compliance import RegulatoryComplianceListInstance +from twilio.rest.numbers.v2.regulatory_compliance import RegulatoryComplianceList class V2(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._regulatory_compliance = None @property - def regulatory_compliance(self) -> RegulatoryComplianceListInstance: + def regulatory_compliance(self) -> RegulatoryComplianceList: if self._regulatory_compliance is None: - self._regulatory_compliance = RegulatoryComplianceListInstance(self) + self._regulatory_compliance = RegulatoryComplianceList(self) return self._regulatory_compliance def __repr__(self) -> str: diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index 7af00503b7..d47eef058b 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -14,11 +14,11 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.oauth.v1.device_code import DeviceCodeListInstance -from twilio.rest.oauth.v1.oauth import OauthListInstance -from twilio.rest.oauth.v1.openid_discovery import OpenidDiscoveryListInstance -from twilio.rest.oauth.v1.token import TokenListInstance -from twilio.rest.oauth.v1.user_info import UserInfoListInstance +from twilio.rest.oauth.v1.device_code import DeviceCodeList +from twilio.rest.oauth.v1.oauth import OauthList +from twilio.rest.oauth.v1.openid_discovery import OpenidDiscoveryList +from twilio.rest.oauth.v1.token import TokenList +from twilio.rest.oauth.v1.user_info import UserInfoList class V1(Version): @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._user_info = None @property - def device_code(self) -> DeviceCodeListInstance: + def device_code(self) -> DeviceCodeList: if self._device_code is None: - self._device_code = DeviceCodeListInstance(self) + self._device_code = DeviceCodeList(self) return self._device_code @property - def oauth(self) -> OauthListInstance: + def oauth(self) -> OauthList: if self._oauth is None: - self._oauth = OauthListInstance(self) + self._oauth = OauthList(self) return self._oauth @property - def openid_discovery(self) -> OpenidDiscoveryListInstance: + def openid_discovery(self) -> OpenidDiscoveryList: if self._openid_discovery is None: - self._openid_discovery = OpenidDiscoveryListInstance(self) + self._openid_discovery = OpenidDiscoveryList(self) return self._openid_discovery @property - def token(self) -> TokenListInstance: + def token(self) -> TokenList: if self._token is None: - self._token = TokenListInstance(self) + self._token = TokenList(self) return self._token @property - def user_info(self) -> UserInfoListInstance: + def user_info(self) -> UserInfoList: if self._user_info is None: - self._user_info = UserInfoListInstance(self) + self._user_info = UserInfoList(self) return self._user_info def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v1/__init__.py b/twilio/rest/pricing/v1/__init__.py index f878cec759..051952162d 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -14,9 +14,9 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.pricing.v1.messaging import MessagingListInstance -from twilio.rest.pricing.v1.phone_number import PhoneNumberListInstance -from twilio.rest.pricing.v1.voice import VoiceListInstance +from twilio.rest.pricing.v1.messaging import MessagingList +from twilio.rest.pricing.v1.phone_number import PhoneNumberList +from twilio.rest.pricing.v1.voice import VoiceList class V1(Version): @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def messaging(self) -> MessagingListInstance: + def messaging(self) -> MessagingList: if self._messaging is None: - self._messaging = MessagingListInstance(self) + self._messaging = MessagingList(self) return self._messaging @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def voice(self) -> VoiceListInstance: + def voice(self) -> VoiceList: if self._voice is None: - self._voice = VoiceListInstance(self) + self._voice = VoiceList(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index 55b47683d7..c6a1e35efd 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -14,9 +14,9 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.pricing.v2.country import CountryListInstance -from twilio.rest.pricing.v2.number import NumberListInstance -from twilio.rest.pricing.v2.voice import VoiceListInstance +from twilio.rest.pricing.v2.country import CountryList +from twilio.rest.pricing.v2.number import NumberList +from twilio.rest.pricing.v2.voice import VoiceList class V2(Version): @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def countries(self) -> CountryListInstance: + def countries(self) -> CountryList: if self._countries is None: - self._countries = CountryListInstance(self) + self._countries = CountryList(self) return self._countries @property - def numbers(self) -> NumberListInstance: + def numbers(self) -> NumberList: if self._numbers is None: - self._numbers = NumberListInstance(self) + self._numbers = NumberList(self) return self._numbers @property - def voice(self) -> VoiceListInstance: + def voice(self) -> VoiceList: if self._voice is None: - self._voice = VoiceListInstance(self) + self._voice = VoiceList(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index d755c850dc..be05bd1259 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.proxy.v1.service import ServiceListInstance +from twilio.rest.proxy.v1.service import ServiceList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index 3ec483f4fd..4e9f4a6993 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -14,9 +14,9 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.routes.v2.phone_number import PhoneNumberListInstance -from twilio.rest.routes.v2.sip_domain import SipDomainListInstance -from twilio.rest.routes.v2.trunk import TrunkListInstance +from twilio.rest.routes.v2.phone_number import PhoneNumberList +from twilio.rest.routes.v2.sip_domain import SipDomainList +from twilio.rest.routes.v2.trunk import TrunkList class V2(Version): @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._trunks = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def sip_domains(self) -> SipDomainListInstance: + def sip_domains(self) -> SipDomainList: if self._sip_domains is None: - self._sip_domains = SipDomainListInstance(self) + self._sip_domains = SipDomainList(self) return self._sip_domains @property - def trunks(self) -> TrunkListInstance: + def trunks(self) -> TrunkList: if self._trunks is None: - self._trunks = TrunkListInstance(self) + self._trunks = TrunkList(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index ad17644583..894d443399 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.serverless.v1.service import ServiceListInstance +from twilio.rest.serverless.v1.service import ServiceList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index 166b349a8e..ceb3c0f3b5 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.studio.v1.flow import FlowListInstance +from twilio.rest.studio.v1.flow import FlowList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._flows = None @property - def flows(self) -> FlowListInstance: + def flows(self) -> FlowList: if self._flows is None: - self._flows = FlowListInstance(self) + self._flows = FlowList(self) return self._flows def __repr__(self) -> str: diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index 5eee9c3b55..f7de36671a 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -14,8 +14,8 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.studio.v2.flow import FlowListInstance -from twilio.rest.studio.v2.flow_validate import FlowValidateListInstance +from twilio.rest.studio.v2.flow import FlowList +from twilio.rest.studio.v2.flow_validate import FlowValidateList class V2(Version): @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._flow_validate = None @property - def flows(self) -> FlowListInstance: + def flows(self) -> FlowList: if self._flows is None: - self._flows = FlowListInstance(self) + self._flows = FlowList(self) return self._flows @property - def flow_validate(self) -> FlowValidateListInstance: + def flow_validate(self) -> FlowValidateList: if self._flow_validate is None: - self._flow_validate = FlowValidateListInstance(self) + self._flow_validate = FlowValidateList(self) return self._flow_validate def __repr__(self) -> str: diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index 235460c1fa..9114d3794f 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -14,15 +14,15 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.supersim.v1.esim_profile import EsimProfileListInstance -from twilio.rest.supersim.v1.fleet import FleetListInstance -from twilio.rest.supersim.v1.ip_command import IpCommandListInstance -from twilio.rest.supersim.v1.network import NetworkListInstance -from twilio.rest.supersim.v1.network_access_profile import NetworkAccessProfileListInstance -from twilio.rest.supersim.v1.settings_update import SettingsUpdateListInstance -from twilio.rest.supersim.v1.sim import SimListInstance -from twilio.rest.supersim.v1.sms_command import SmsCommandListInstance -from twilio.rest.supersim.v1.usage_record import UsageRecordListInstance +from twilio.rest.supersim.v1.esim_profile import EsimProfileList +from twilio.rest.supersim.v1.fleet import FleetList +from twilio.rest.supersim.v1.ip_command import IpCommandList +from twilio.rest.supersim.v1.network import NetworkList +from twilio.rest.supersim.v1.network_access_profile import NetworkAccessProfileList +from twilio.rest.supersim.v1.settings_update import SettingsUpdateList +from twilio.rest.supersim.v1.sim import SimList +from twilio.rest.supersim.v1.sms_command import SmsCommandList +from twilio.rest.supersim.v1.usage_record import UsageRecordList class V1(Version): @@ -46,57 +46,57 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def esim_profiles(self) -> EsimProfileListInstance: + def esim_profiles(self) -> EsimProfileList: if self._esim_profiles is None: - self._esim_profiles = EsimProfileListInstance(self) + self._esim_profiles = EsimProfileList(self) return self._esim_profiles @property - def fleets(self) -> FleetListInstance: + def fleets(self) -> FleetList: if self._fleets is None: - self._fleets = FleetListInstance(self) + self._fleets = FleetList(self) return self._fleets @property - def ip_commands(self) -> IpCommandListInstance: + def ip_commands(self) -> IpCommandList: if self._ip_commands is None: - self._ip_commands = IpCommandListInstance(self) + self._ip_commands = IpCommandList(self) return self._ip_commands @property - def networks(self) -> NetworkListInstance: + def networks(self) -> NetworkList: if self._networks is None: - self._networks = NetworkListInstance(self) + self._networks = NetworkList(self) return self._networks @property - def network_access_profiles(self) -> NetworkAccessProfileListInstance: + def network_access_profiles(self) -> NetworkAccessProfileList: if self._network_access_profiles is None: - self._network_access_profiles = NetworkAccessProfileListInstance(self) + self._network_access_profiles = NetworkAccessProfileList(self) return self._network_access_profiles @property - def settings_updates(self) -> SettingsUpdateListInstance: + def settings_updates(self) -> SettingsUpdateList: if self._settings_updates is None: - self._settings_updates = SettingsUpdateListInstance(self) + self._settings_updates = SettingsUpdateList(self) return self._settings_updates @property - def sims(self) -> SimListInstance: + def sims(self) -> SimList: if self._sims is None: - self._sims = SimListInstance(self) + self._sims = SimList(self) return self._sims @property - def sms_commands(self) -> SmsCommandListInstance: + def sms_commands(self) -> SmsCommandList: if self._sms_commands is None: - self._sms_commands = SmsCommandListInstance(self) + self._sms_commands = SmsCommandList(self) return self._sms_commands @property - def usage_records(self) -> UsageRecordListInstance: + def usage_records(self) -> UsageRecordList: if self._usage_records is None: - self._usage_records = UsageRecordListInstance(self) + self._usage_records = UsageRecordList(self) return self._usage_records def __repr__(self) -> str: diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index e85dac5fd9..c676f94dc4 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.sync.v1.service import ServiceListInstance +from twilio.rest.sync.v1.service import ServiceList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 1ec94ee175..47cf8c63e0 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.taskrouter.v1.workspace import WorkspaceListInstance +from twilio.rest.taskrouter.v1.workspace import WorkspaceList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._workspaces = None @property - def workspaces(self) -> WorkspaceListInstance: + def workspaces(self) -> WorkspaceList: if self._workspaces is None: - self._workspaces = WorkspaceListInstance(self) + self._workspaces = WorkspaceList(self) return self._workspaces def __repr__(self) -> str: diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index 624785342e..15196c42de 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -14,7 +14,7 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.trunking.v1.trunk import TrunkListInstance +from twilio.rest.trunking.v1.trunk import TrunkList class V1(Version): @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._trunks = None @property - def trunks(self) -> TrunkListInstance: + def trunks(self) -> TrunkList: if self._trunks is None: - self._trunks = TrunkListInstance(self) + self._trunks = TrunkList(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index 5bc2df1444..70e50075ea 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -14,13 +14,13 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesListInstance -from twilio.rest.trusthub.v1.end_user import EndUserListInstance -from twilio.rest.trusthub.v1.end_user_type import EndUserTypeListInstance -from twilio.rest.trusthub.v1.policies import PoliciesListInstance -from twilio.rest.trusthub.v1.supporting_document import SupportingDocumentListInstance -from twilio.rest.trusthub.v1.supporting_document_type import SupportingDocumentTypeListInstance -from twilio.rest.trusthub.v1.trust_products import TrustProductsListInstance +from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesList +from twilio.rest.trusthub.v1.end_user import EndUserList +from twilio.rest.trusthub.v1.end_user_type import EndUserTypeList +from twilio.rest.trusthub.v1.policies import PoliciesList +from twilio.rest.trusthub.v1.supporting_document import SupportingDocumentList +from twilio.rest.trusthub.v1.supporting_document_type import SupportingDocumentTypeList +from twilio.rest.trusthub.v1.trust_products import TrustProductsList class V1(Version): @@ -42,45 +42,45 @@ def __init__(self, domain: Domain): self._trust_products = None @property - def customer_profiles(self) -> CustomerProfilesListInstance: + def customer_profiles(self) -> CustomerProfilesList: if self._customer_profiles is None: - self._customer_profiles = CustomerProfilesListInstance(self) + self._customer_profiles = CustomerProfilesList(self) return self._customer_profiles @property - def end_users(self) -> EndUserListInstance: + def end_users(self) -> EndUserList: if self._end_users is None: - self._end_users = EndUserListInstance(self) + self._end_users = EndUserList(self) return self._end_users @property - def end_user_types(self) -> EndUserTypeListInstance: + def end_user_types(self) -> EndUserTypeList: if self._end_user_types is None: - self._end_user_types = EndUserTypeListInstance(self) + self._end_user_types = EndUserTypeList(self) return self._end_user_types @property - def policies(self) -> PoliciesListInstance: + def policies(self) -> PoliciesList: if self._policies is None: - self._policies = PoliciesListInstance(self) + self._policies = PoliciesList(self) return self._policies @property - def supporting_documents(self) -> SupportingDocumentListInstance: + def supporting_documents(self) -> SupportingDocumentList: if self._supporting_documents is None: - self._supporting_documents = SupportingDocumentListInstance(self) + self._supporting_documents = SupportingDocumentList(self) return self._supporting_documents @property - def supporting_document_types(self) -> SupportingDocumentTypeListInstance: + def supporting_document_types(self) -> SupportingDocumentTypeList: if self._supporting_document_types is None: - self._supporting_document_types = SupportingDocumentTypeListInstance(self) + self._supporting_document_types = SupportingDocumentTypeList(self) return self._supporting_document_types @property - def trust_products(self) -> TrustProductsListInstance: + def trust_products(self) -> TrustProductsList: if self._trust_products is None: - self._trust_products = TrustProductsListInstance(self) + self._trust_products = TrustProductsList(self) return self._trust_products def __repr__(self) -> str: diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index 7c69eaa329..355553b9e8 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -14,12 +14,12 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.verify.v2.form import FormListInstance -from twilio.rest.verify.v2.safelist import SafelistListInstance -from twilio.rest.verify.v2.service import ServiceListInstance -from twilio.rest.verify.v2.template import TemplateListInstance -from twilio.rest.verify.v2.verification_attempt import VerificationAttemptListInstance -from twilio.rest.verify.v2.verification_attempts_summary import VerificationAttemptsSummaryListInstance +from twilio.rest.verify.v2.form import FormList +from twilio.rest.verify.v2.safelist import SafelistList +from twilio.rest.verify.v2.service import ServiceList +from twilio.rest.verify.v2.template import TemplateList +from twilio.rest.verify.v2.verification_attempt import VerificationAttemptList +from twilio.rest.verify.v2.verification_attempts_summary import VerificationAttemptsSummaryList class V2(Version): @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._verification_attempts_summary = None @property - def forms(self) -> FormListInstance: + def forms(self) -> FormList: if self._forms is None: - self._forms = FormListInstance(self) + self._forms = FormList(self) return self._forms @property - def safelist(self) -> SafelistListInstance: + def safelist(self) -> SafelistList: if self._safelist is None: - self._safelist = SafelistListInstance(self) + self._safelist = SafelistList(self) return self._safelist @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def templates(self) -> TemplateListInstance: + def templates(self) -> TemplateList: if self._templates is None: - self._templates = TemplateListInstance(self) + self._templates = TemplateList(self) return self._templates @property - def verification_attempts(self) -> VerificationAttemptListInstance: + def verification_attempts(self) -> VerificationAttemptList: if self._verification_attempts is None: - self._verification_attempts = VerificationAttemptListInstance(self) + self._verification_attempts = VerificationAttemptList(self) return self._verification_attempts @property - def verification_attempts_summary(self) -> VerificationAttemptsSummaryListInstance: + def verification_attempts_summary(self) -> VerificationAttemptsSummaryList: if self._verification_attempts_summary is None: - self._verification_attempts_summary = VerificationAttemptsSummaryListInstance(self) + self._verification_attempts_summary = VerificationAttemptsSummaryList(self) return self._verification_attempts_summary def __repr__(self) -> str: diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index 75ee16b5a4..d2dbb77e32 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -14,12 +14,12 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.video.v1.composition import CompositionListInstance -from twilio.rest.video.v1.composition_hook import CompositionHookListInstance -from twilio.rest.video.v1.composition_settings import CompositionSettingsListInstance -from twilio.rest.video.v1.recording import RecordingListInstance -from twilio.rest.video.v1.recording_settings import RecordingSettingsListInstance -from twilio.rest.video.v1.room import RoomListInstance +from twilio.rest.video.v1.composition import CompositionList +from twilio.rest.video.v1.composition_hook import CompositionHookList +from twilio.rest.video.v1.composition_settings import CompositionSettingsList +from twilio.rest.video.v1.recording import RecordingList +from twilio.rest.video.v1.recording_settings import RecordingSettingsList +from twilio.rest.video.v1.room import RoomList class V1(Version): @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._rooms = None @property - def compositions(self) -> CompositionListInstance: + def compositions(self) -> CompositionList: if self._compositions is None: - self._compositions = CompositionListInstance(self) + self._compositions = CompositionList(self) return self._compositions @property - def composition_hooks(self) -> CompositionHookListInstance: + def composition_hooks(self) -> CompositionHookList: if self._composition_hooks is None: - self._composition_hooks = CompositionHookListInstance(self) + self._composition_hooks = CompositionHookList(self) return self._composition_hooks @property - def composition_settings(self) -> CompositionSettingsListInstance: + def composition_settings(self) -> CompositionSettingsList: if self._composition_settings is None: - self._composition_settings = CompositionSettingsListInstance(self) + self._composition_settings = CompositionSettingsList(self) return self._composition_settings @property - def recordings(self) -> RecordingListInstance: + def recordings(self) -> RecordingList: if self._recordings is None: - self._recordings = RecordingListInstance(self) + self._recordings = RecordingList(self) return self._recordings @property - def recording_settings(self) -> RecordingSettingsListInstance: + def recording_settings(self) -> RecordingSettingsList: if self._recording_settings is None: - self._recording_settings = RecordingSettingsListInstance(self) + self._recording_settings = RecordingSettingsList(self) return self._recording_settings @property - def rooms(self) -> RoomListInstance: + def rooms(self) -> RoomList: if self._rooms is None: - self._rooms = RoomListInstance(self) + self._rooms = RoomList(self) return self._rooms def __repr__(self) -> str: diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index 3abc7c41ba..2867849016 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -14,12 +14,12 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.voice.v1.archived_call import ArchivedCallListInstance -from twilio.rest.voice.v1.byoc_trunk import ByocTrunkListInstance -from twilio.rest.voice.v1.connection_policy import ConnectionPolicyListInstance -from twilio.rest.voice.v1.dialing_permissions import DialingPermissionsListInstance -from twilio.rest.voice.v1.ip_record import IpRecordListInstance -from twilio.rest.voice.v1.source_ip_mapping import SourceIpMappingListInstance +from twilio.rest.voice.v1.archived_call import ArchivedCallList +from twilio.rest.voice.v1.byoc_trunk import ByocTrunkList +from twilio.rest.voice.v1.connection_policy import ConnectionPolicyList +from twilio.rest.voice.v1.dialing_permissions import DialingPermissionsList +from twilio.rest.voice.v1.ip_record import IpRecordList +from twilio.rest.voice.v1.source_ip_mapping import SourceIpMappingList class V1(Version): @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._source_ip_mappings = None @property - def archived_calls(self) -> ArchivedCallListInstance: + def archived_calls(self) -> ArchivedCallList: if self._archived_calls is None: - self._archived_calls = ArchivedCallListInstance(self) + self._archived_calls = ArchivedCallList(self) return self._archived_calls @property - def byoc_trunks(self) -> ByocTrunkListInstance: + def byoc_trunks(self) -> ByocTrunkList: if self._byoc_trunks is None: - self._byoc_trunks = ByocTrunkListInstance(self) + self._byoc_trunks = ByocTrunkList(self) return self._byoc_trunks @property - def connection_policies(self) -> ConnectionPolicyListInstance: + def connection_policies(self) -> ConnectionPolicyList: if self._connection_policies is None: - self._connection_policies = ConnectionPolicyListInstance(self) + self._connection_policies = ConnectionPolicyList(self) return self._connection_policies @property - def dialing_permissions(self) -> DialingPermissionsListInstance: + def dialing_permissions(self) -> DialingPermissionsList: if self._dialing_permissions is None: - self._dialing_permissions = DialingPermissionsListInstance(self) + self._dialing_permissions = DialingPermissionsList(self) return self._dialing_permissions @property - def ip_records(self) -> IpRecordListInstance: + def ip_records(self) -> IpRecordList: if self._ip_records is None: - self._ip_records = IpRecordListInstance(self) + self._ip_records = IpRecordList(self) return self._ip_records @property - def source_ip_mappings(self) -> SourceIpMappingListInstance: + def source_ip_mappings(self) -> SourceIpMappingList: if self._source_ip_mappings is None: - self._source_ip_mappings = SourceIpMappingListInstance(self) + self._source_ip_mappings = SourceIpMappingList(self) return self._source_ip_mappings def __repr__(self) -> str: diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index 5b09cf495b..e1a0e6e862 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -14,10 +14,10 @@ from twilio.base.version import Version from twilio.base.domain import Domain -from twilio.rest.wireless.v1.command import CommandListInstance -from twilio.rest.wireless.v1.rate_plan import RatePlanListInstance -from twilio.rest.wireless.v1.sim import SimListInstance -from twilio.rest.wireless.v1.usage_record import UsageRecordListInstance +from twilio.rest.wireless.v1.command import CommandList +from twilio.rest.wireless.v1.rate_plan import RatePlanList +from twilio.rest.wireless.v1.sim import SimList +from twilio.rest.wireless.v1.usage_record import UsageRecordList class V1(Version): @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def commands(self) -> CommandListInstance: + def commands(self) -> CommandList: if self._commands is None: - self._commands = CommandListInstance(self) + self._commands = CommandList(self) return self._commands @property - def rate_plans(self) -> RatePlanListInstance: + def rate_plans(self) -> RatePlanList: if self._rate_plans is None: - self._rate_plans = RatePlanListInstance(self) + self._rate_plans = RatePlanList(self) return self._rate_plans @property - def sims(self) -> SimListInstance: + def sims(self) -> SimList: if self._sims is None: - self._sims = SimListInstance(self) + self._sims = SimList(self) return self._sims @property - def usage_records(self) -> UsageRecordListInstance: + def usage_records(self) -> UsageRecordList: if self._usage_records is None: - self._usage_records = UsageRecordListInstance(self) + self._usage_records = UsageRecordList(self) return self._usage_records def __repr__(self) -> str: From 18032f9c1ad339b346d68c2e561cfc04eece8b33 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:04:54 -0500 Subject: [PATCH 04/11] chore: remove test --- tests/unit/mock_test.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 tests/unit/mock_test.py diff --git a/tests/unit/mock_test.py b/tests/unit/mock_test.py deleted file mode 100644 index db33697ab0..0000000000 --- a/tests/unit/mock_test.py +++ /dev/null @@ -1,27 +0,0 @@ -import unittest -import requests -from unittest import mock -from unittest.mock import MagicMock -from twilio.rest import Client -from twilio.http.response import Response - - -# I think I need to mock TwilioHttpClient (or maybe its parent, HttpClient) under http.httpClient -class TestAccount(unittest.TestCase): - def setUp(self): - pass - - def test_create_account(self): - response = Response(status_code=200, text="Some text") - self.client = Client('username', 'password') - self.client.request = MagicMock(return_value=response) - self.client.api.v2010.accounts.create("SomeName") - self.client.request.assert_called_with("POST", "/Accounts.json", params=None, data={"FriendlyName": "SomeName"}, headers=None, auth=None, timeout=None, allow_redirects=False) - - @mock.patch('twilio.rest.Client') - def test2(self): - pass - - -if __name__ == "__main__": - unittest.main() From 83cc0818ba6568b4da3e66c720ae25cf5aa3aa70 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:29:36 -0500 Subject: [PATCH 05/11] chore: regenerate with update repr returns --- twilio/rest/accounts/v1/__init__.py | 2 +- twilio/rest/api/v2010/__init__.py | 2 +- twilio/rest/api/v2010/account/application.py | 1 - twilio/rest/autopilot/v1/__init__.py | 2 +- twilio/rest/bulkexports/v1/__init__.py | 2 +- twilio/rest/chat/v1/__init__.py | 2 +- twilio/rest/chat/v2/__init__.py | 2 +- twilio/rest/chat/v3/__init__.py | 2 +- twilio/rest/content/v1/__init__.py | 2 +- twilio/rest/conversations/v1/__init__.py | 2 +- twilio/rest/events/v1/__init__.py | 2 +- twilio/rest/flex_api/v1/__init__.py | 2 +- .../{insights_user_roles.py => user_roles.py} | 56 +++++++------------ twilio/rest/flex_api/v2/__init__.py | 2 +- twilio/rest/frontline_api/v1/__init__.py | 2 +- twilio/rest/insights/v1/__init__.py | 2 +- twilio/rest/ip_messaging/v1/__init__.py | 2 +- twilio/rest/ip_messaging/v2/__init__.py | 2 +- twilio/rest/lookups/v1/__init__.py | 2 +- twilio/rest/lookups/v2/__init__.py | 2 +- twilio/rest/media/v1/__init__.py | 2 +- twilio/rest/messaging/v1/__init__.py | 2 +- twilio/rest/microvisor/v1/__init__.py | 2 +- twilio/rest/monitor/v1/__init__.py | 2 +- twilio/rest/notify/v1/__init__.py | 2 +- twilio/rest/numbers/v2/__init__.py | 2 +- twilio/rest/oauth/v1/__init__.py | 2 +- twilio/rest/pricing/v1/__init__.py | 2 +- twilio/rest/pricing/v2/__init__.py | 2 +- twilio/rest/proxy/v1/__init__.py | 2 +- twilio/rest/routes/v2/__init__.py | 2 +- twilio/rest/serverless/v1/__init__.py | 2 +- twilio/rest/studio/v1/__init__.py | 2 +- twilio/rest/studio/v2/__init__.py | 2 +- twilio/rest/supersim/v1/__init__.py | 2 +- twilio/rest/sync/v1/__init__.py | 2 +- twilio/rest/taskrouter/v1/__init__.py | 2 +- twilio/rest/trunking/v1/__init__.py | 2 +- twilio/rest/trusthub/v1/__init__.py | 2 +- twilio/rest/verify/v2/__init__.py | 2 +- twilio/rest/video/v1/__init__.py | 2 +- twilio/rest/voice/v1/__init__.py | 2 +- twilio/rest/wireless/v1/__init__.py | 2 +- 43 files changed, 61 insertions(+), 78 deletions(-) rename twilio/rest/flex_api/v1/{insights_user_roles.py => user_roles.py} (71%) diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index c740dabac6..b301613ead 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -57,4 +57,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index a6599c77a9..ec8a1ba57c 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/api/v2010/account/application.py b/twilio/rest/api/v2010/account/application.py index 2ed6bf9a14..6f374cef28 100644 --- a/twilio/rest/api/v2010/account/application.py +++ b/twilio/rest/api/v2010/account/application.py @@ -111,7 +111,6 @@ def __init__(self, version, payload, account_sid: str, sid: str): 'voice_fallback_url' : payload.get('voice_fallback_url'), 'voice_method' : payload.get('voice_method'), 'voice_url' : payload.get('voice_url'), - 'public_application_connect_enabled' : payload.get('public_application_connect_enabled'), } self._context = None diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index 70361816c8..f2da455dae 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index fd8dd2bb70..832fb58fef 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index 8392744d7d..b4048695ef 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index e5b6a7a10c..3dffb9e41e 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index 5991158971..6673b17807 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index efd98e7e27..8a818a7113 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index c0c46ef7b1..6e2778c77d 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -97,4 +97,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index cc57389bf5..b33fea38ae 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -65,4 +65,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index 49b9f337d6..2df7bd770d 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -129,4 +129,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/flex_api/v1/insights_user_roles.py b/twilio/rest/flex_api/v1/user_roles.py similarity index 71% rename from twilio/rest/flex_api/v1/insights_user_roles.py rename to twilio/rest/flex_api/v1/user_roles.py index ae086e4e3d..5fd6fafe2a 100644 --- a/twilio/rest/flex_api/v1/insights_user_roles.py +++ b/twilio/rest/flex_api/v1/user_roles.py @@ -3,16 +3,13 @@ ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - Twilio - Flex This is the public Twilio REST API. - NOTE: This class is auto generated by OpenAPI Generator. https://openapi-generator.tech Do not edit the class manually. """ - from twilio.base import deserialize from twilio.base import serialize from twilio.base import values @@ -21,34 +18,28 @@ from twilio.base.list_resource import ListResource from twilio.base.version import Version -# + +# -class InsightsUserRolesContext(InstanceContext): +class UserRolesContext(InstanceContext): def __init__(self, version: Version): # TODO: needs autogenerated docs super().__init__(version) # Path Solution - self._solution = { } + self._solution = {} self._uri = '/Insights/UserRoles' - - + def fetch(self, token): - """ - Fetch the InsightsUserRolesInstance - - :returns: The fetched InsightsUserRolesInstance + Fetch the UserRolesInstance + :returns: The fetched UserRolesInstance #TODO: add rtype docs """ payload = self._version.fetch(method='GET', uri=self._uri, ) - return InsightsUserRolesInstance(self._version, payload, ) - - - - + return UserRolesInstance(self._version, payload, ) def __repr__(self): """ @@ -56,34 +47,31 @@ def __repr__(self): :returns: Machine friendly representation :rtype: str """ - return '' + return '' - -class InsightsUserRolesInstance(InstanceResource): +class UserRolesInstance(InstanceResource): def __init__(self, version, payload): super().__init__(version) - self._properties = { - 'roles' : payload.get('roles'), - 'url' : payload.get('url'), + self._properties = { + 'roles': payload.get('roles'), + 'url': payload.get('url'), } self._context = None self._solution = { - + } @property def _proxy(self): if self._context is None: - self._context = InsightsUserRolesContext( + self._context = UserRolesContext( self._version, - + ) return self._context - - def __repr__(self): """ Provide a friendly representation @@ -91,20 +79,17 @@ def __repr__(self): :rtype: str """ context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) - + return ''.format(context) -class InsightsUserRolesListInstance(ListResource): +class UserRolesListInstance(ListResource): def __init__(self, version: Version): # TODO: needs autogenerated docs super().__init__(version) # Path Solution - self._solution = { } + self._solution = {} self._uri = '' - - def __repr__(self): """ @@ -112,5 +97,4 @@ def __repr__(self): :returns: Machine friendly representation :rtype: str """ - return '' - + return '' \ No newline at end of file diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index 3d8b4e64ec..7299eb6002 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index a2a5cecf9b..d20f39741e 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 1ffee1c711..5856ff7134 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -73,4 +73,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index 42e13898a2..f702ef8dbc 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index 5ce6314ca3..6838a481d8 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index 1c91b83935..6e2ebe661e 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index af372a4e9b..2d5c71bd28 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index 1f3daf399e..3157d23f56 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -57,4 +57,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index 970f375826..8364bbadf0 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -97,4 +97,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index 9e7324bd46..5631b34e95 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index 129df15bbb..fe5bcba84b 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index 5e0f0e5eb9..34875a40a0 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index fa210447ae..911cff4559 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index d47eef058b..94d7335afb 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -73,4 +73,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/pricing/v1/__init__.py b/twilio/rest/pricing/v1/__init__.py index 051952162d..2772f4bc16 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -57,4 +57,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index c6a1e35efd..425404a149 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -57,4 +57,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index be05bd1259..bc2fe6cbe0 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index 4e9f4a6993..9e7cbaa6c0 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -57,4 +57,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index 894d443399..bd5c56979f 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index ceb3c0f3b5..3be3ac7c15 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index f7de36671a..61da5f64e5 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -49,4 +49,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index 9114d3794f..4b82868267 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -105,4 +105,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index c676f94dc4..134be77bea 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 47cf8c63e0..104fc7398f 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index 15196c42de..529d745fdb 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -41,4 +41,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index 70e50075ea..6211d9513d 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -89,4 +89,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index 355553b9e8..03864b60ba 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -81,4 +81,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index d2dbb77e32..9d5ba8f849 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -81,4 +81,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index 2867849016..1639cb2370 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -81,4 +81,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index e1a0e6e862..967deb82f2 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -65,4 +65,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation :rtype: str """ - return '' + return '' From b5d7a4341fafe4d9d015e84a5d92a85fcd0b013c Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:38:32 -0500 Subject: [PATCH 06/11] chore: remove unwanted files --- twilio/rest/messaging/v1/tollfree_verification.py | 1 - 1 file changed, 1 deletion(-) diff --git a/twilio/rest/messaging/v1/tollfree_verification.py b/twilio/rest/messaging/v1/tollfree_verification.py index 2ac501434e..b60e4bb520 100644 --- a/twilio/rest/messaging/v1/tollfree_verification.py +++ b/twilio/rest/messaging/v1/tollfree_verification.py @@ -110,7 +110,6 @@ def __init__(self, version, payload, sid: str): 'status' : payload.get('status'), 'url' : payload.get('url'), 'resource_links' : payload.get('resource_links'), - 'external_reference_id' : payload.get('external_reference_id'), } self._context = None From 979b26aa31176758f7c71314ca75bfd3e18a5be0 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:41:06 -0500 Subject: [PATCH 07/11] chore: remove user_roles --- twilio/rest/flex_api/v1/user_roles.py | 28 +++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/twilio/rest/flex_api/v1/user_roles.py b/twilio/rest/flex_api/v1/user_roles.py index 5fd6fafe2a..8555ed9a6b 100644 --- a/twilio/rest/flex_api/v1/user_roles.py +++ b/twilio/rest/flex_api/v1/user_roles.py @@ -3,13 +3,16 @@ ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + Twilio - Flex This is the public Twilio REST API. + NOTE: This class is auto generated by OpenAPI Generator. https://openapi-generator.tech Do not edit the class manually. """ + from twilio.base import deserialize from twilio.base import serialize from twilio.base import values @@ -18,7 +21,6 @@ from twilio.base.list_resource import ListResource from twilio.base.version import Version - # @@ -28,12 +30,15 @@ def __init__(self, version: Version): super().__init__(version) # Path Solution - self._solution = {} + self._solution = { } self._uri = '/Insights/UserRoles' + def fetch(self, token): + """ Fetch the UserRolesInstance + :returns: The fetched UserRolesInstance #TODO: add rtype docs """ @@ -41,6 +46,10 @@ def fetch(self, token): return UserRolesInstance(self._version, payload, ) + + + + def __repr__(self): """ Provide a friendly representation @@ -50,12 +59,13 @@ def __repr__(self): return '' + class UserRolesInstance(InstanceResource): def __init__(self, version, payload): super().__init__(version) self._properties = { - 'roles': payload.get('roles'), - 'url': payload.get('url'), + 'roles' : payload.get('roles'), + 'url' : payload.get('url'), } self._context = None @@ -72,6 +82,8 @@ def _proxy(self): ) return self._context + + def __repr__(self): """ Provide a friendly representation @@ -82,19 +94,23 @@ def __repr__(self): return ''.format(context) + class UserRolesListInstance(ListResource): def __init__(self, version: Version): # TODO: needs autogenerated docs super().__init__(version) # Path Solution - self._solution = {} + self._solution = { } self._uri = '' + + def __repr__(self): """ Provide a friendly representation :returns: Machine friendly representation :rtype: str """ - return '' \ No newline at end of file + return '' + From 183088266da97721248b014c3c4940799c165d97 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:46:14 -0500 Subject: [PATCH 08/11] ugh: fix user_roles --- twilio/rest/flex_api/v1/user_roles.py | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/twilio/rest/flex_api/v1/user_roles.py b/twilio/rest/flex_api/v1/user_roles.py index 8555ed9a6b..efa669e9bd 100644 --- a/twilio/rest/flex_api/v1/user_roles.py +++ b/twilio/rest/flex_api/v1/user_roles.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ - from twilio.base import deserialize from twilio.base import serialize from twilio.base import values @@ -21,6 +20,7 @@ from twilio.base.list_resource import ListResource from twilio.base.version import Version + # @@ -30,12 +30,10 @@ def __init__(self, version: Version): super().__init__(version) # Path Solution - self._solution = { } + self._solution = {} self._uri = '/Insights/UserRoles' - def fetch(self, token): - """ Fetch the UserRolesInstance @@ -46,10 +44,6 @@ def fetch(self, token): return UserRolesInstance(self._version, payload, ) - - - - def __repr__(self): """ Provide a friendly representation @@ -59,13 +53,12 @@ def __repr__(self): return '' - class UserRolesInstance(InstanceResource): def __init__(self, version, payload): super().__init__(version) self._properties = { - 'roles' : payload.get('roles'), - 'url' : payload.get('url'), + 'roles': payload.get('roles'), + 'url': payload.get('url'), } self._context = None @@ -82,8 +75,6 @@ def _proxy(self): ) return self._context - - def __repr__(self): """ Provide a friendly representation @@ -94,18 +85,15 @@ def __repr__(self): return ''.format(context) - class UserRolesListInstance(ListResource): def __init__(self, version: Version): # TODO: needs autogenerated docs super().__init__(version) # Path Solution - self._solution = { } + self._solution = {} self._uri = '' - - def __repr__(self): """ Provide a friendly representation From 2bcb43023eafdd1894b131444b9067b179ab76d5 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Thu, 2 Feb 2023 17:57:34 -0500 Subject: [PATCH 09/11] chore: fix user_roles --- twilio/rest/flex_api/v1/user_roles.py | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/twilio/rest/flex_api/v1/user_roles.py b/twilio/rest/flex_api/v1/user_roles.py index efa669e9bd..8555ed9a6b 100644 --- a/twilio/rest/flex_api/v1/user_roles.py +++ b/twilio/rest/flex_api/v1/user_roles.py @@ -12,6 +12,7 @@ Do not edit the class manually. """ + from twilio.base import deserialize from twilio.base import serialize from twilio.base import values @@ -20,7 +21,6 @@ from twilio.base.list_resource import ListResource from twilio.base.version import Version - # @@ -30,10 +30,12 @@ def __init__(self, version: Version): super().__init__(version) # Path Solution - self._solution = {} + self._solution = { } self._uri = '/Insights/UserRoles' + def fetch(self, token): + """ Fetch the UserRolesInstance @@ -44,6 +46,10 @@ def fetch(self, token): return UserRolesInstance(self._version, payload, ) + + + + def __repr__(self): """ Provide a friendly representation @@ -53,12 +59,13 @@ def __repr__(self): return '' + class UserRolesInstance(InstanceResource): def __init__(self, version, payload): super().__init__(version) self._properties = { - 'roles': payload.get('roles'), - 'url': payload.get('url'), + 'roles' : payload.get('roles'), + 'url' : payload.get('url'), } self._context = None @@ -75,6 +82,8 @@ def _proxy(self): ) return self._context + + def __repr__(self): """ Provide a friendly representation @@ -85,15 +94,18 @@ def __repr__(self): return ''.format(context) + class UserRolesListInstance(ListResource): def __init__(self, version: Version): # TODO: needs autogenerated docs super().__init__(version) # Path Solution - self._solution = {} + self._solution = { } self._uri = '' + + def __repr__(self): """ Provide a friendly representation From f882b6cf9650fb717d9a734317a6491a90cdee4a Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Fri, 3 Feb 2023 11:19:03 -0500 Subject: [PATCH 10/11] chore: generate code --- twilio/rest/accounts/v1/__init__.py | 14 +++---- twilio/rest/api/v2010/__init__.py | 6 +-- twilio/rest/autopilot/v1/__init__.py | 10 ++--- twilio/rest/bulkexports/v1/__init__.py | 10 ++--- twilio/rest/chat/v1/__init__.py | 10 ++--- twilio/rest/chat/v2/__init__.py | 10 ++--- twilio/rest/chat/v3/__init__.py | 6 +-- twilio/rest/content/v1/__init__.py | 6 +-- twilio/rest/conversations/v1/__init__.py | 34 ++++++++-------- twilio/rest/events/v1/__init__.py | 18 ++++----- twilio/rest/flex_api/v1/__init__.py | 50 ++++++++++++------------ twilio/rest/flex_api/v2/__init__.py | 6 +-- twilio/rest/frontline_api/v1/__init__.py | 6 +-- twilio/rest/insights/v1/__init__.py | 22 +++++------ twilio/rest/ip_messaging/v1/__init__.py | 10 ++--- twilio/rest/ip_messaging/v2/__init__.py | 10 ++--- twilio/rest/lookups/v1/__init__.py | 6 +-- twilio/rest/lookups/v2/__init__.py | 6 +-- twilio/rest/media/v1/__init__.py | 14 +++---- twilio/rest/messaging/v1/__init__.py | 34 ++++++++-------- twilio/rest/microvisor/v1/__init__.py | 10 ++--- twilio/rest/monitor/v1/__init__.py | 10 ++--- twilio/rest/notify/v1/__init__.py | 10 ++--- twilio/rest/numbers/v2/__init__.py | 6 +-- twilio/rest/oauth/v1/__init__.py | 22 +++++------ twilio/rest/pricing/v1/__init__.py | 14 +++---- twilio/rest/pricing/v2/__init__.py | 14 +++---- twilio/rest/proxy/v1/__init__.py | 6 +-- twilio/rest/routes/v2/__init__.py | 14 +++---- twilio/rest/serverless/v1/__init__.py | 6 +-- twilio/rest/studio/v1/__init__.py | 6 +-- twilio/rest/studio/v2/__init__.py | 10 ++--- twilio/rest/supersim/v1/__init__.py | 38 +++++++++--------- twilio/rest/sync/v1/__init__.py | 6 +-- twilio/rest/taskrouter/v1/__init__.py | 6 +-- twilio/rest/trunking/v1/__init__.py | 6 +-- twilio/rest/trusthub/v1/__init__.py | 30 +++++++------- twilio/rest/verify/v2/__init__.py | 26 ++++++------ twilio/rest/video/v1/__init__.py | 26 ++++++------ twilio/rest/voice/v1/__init__.py | 26 ++++++------ twilio/rest/wireless/v1/__init__.py | 18 ++++----- 41 files changed, 299 insertions(+), 299 deletions(-) diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index b301613ead..f1df7ccc9b 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -23,7 +23,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of accounts + Initialize the V1 version of Accounts :param domain: The Twilio.accounts domain """ @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._secondary_auth_token = None @property - def auth_token_promotion(self) -> AuthTokenPromotionList: + def auth_token_promotion(self) -> AuthTokenPromotionListInstance: if self._auth_token_promotion is None: - self._auth_token_promotion = AuthTokenPromotionList(self) + self._auth_token_promotion = AuthTokenPromotionListInstance(self) return self._auth_token_promotion @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def secondary_auth_token(self) -> SecondaryAuthTokenList: + def secondary_auth_token(self) -> SecondaryAuthTokenListInstance: if self._secondary_auth_token is None: - self._secondary_auth_token = SecondaryAuthTokenList(self) + self._secondary_auth_token = SecondaryAuthTokenListInstance(self) return self._secondary_auth_token def __repr__(self) -> str: diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index ec8a1ba57c..443dced574 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -22,7 +22,7 @@ class V2010(Version): def __init__(self, domain: Domain): """ - Initialize the V2010 version of api + Initialize the V2010 version of Api :param domain: The Twilio.api domain """ @@ -32,9 +32,9 @@ def __init__(self, domain: Domain): self._account = None @property - def accounts(self) -> AccountList: + def accounts(self) -> AccountListInstance: if self._accounts is None: - self._accounts = AccountList(self) + self._accounts = AccountListInstance(self) return self._accounts @property diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index f2da455dae..6fe034d31c 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of autopilot + Initialize the V1 version of Autopilot :param domain: The Twilio.autopilot domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._restore_assistant = None @property - def assistants(self) -> AssistantList: + def assistants(self) -> AssistantListInstance: if self._assistants is None: - self._assistants = AssistantList(self) + self._assistants = AssistantListInstance(self) return self._assistants @property - def restore_assistant(self) -> RestoreAssistantList: + def restore_assistant(self) -> RestoreAssistantListInstance: if self._restore_assistant is None: - self._restore_assistant = RestoreAssistantList(self) + self._restore_assistant = RestoreAssistantListInstance(self) return self._restore_assistant def __repr__(self) -> str: diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index 832fb58fef..5dc2640426 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of bulkexports + Initialize the V1 version of Bulkexports :param domain: The Twilio.bulkexports domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._export_configuration = None @property - def exports(self) -> ExportList: + def exports(self) -> ExportListInstance: if self._exports is None: - self._exports = ExportList(self) + self._exports = ExportListInstance(self) return self._exports @property - def export_configuration(self) -> ExportConfigurationList: + def export_configuration(self) -> ExportConfigurationListInstance: if self._export_configuration is None: - self._export_configuration = ExportConfigurationList(self) + self._export_configuration = ExportConfigurationListInstance(self) return self._export_configuration def __repr__(self) -> str: diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index b4048695ef..27156502ec 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of chat + Initialize the V1 version of Chat :param domain: The Twilio.chat domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index 3dffb9e41e..d61a038570 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -22,7 +22,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of chat + Initialize the V2 version of Chat :param domain: The Twilio.chat domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index 6673b17807..f5046d6f08 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -21,7 +21,7 @@ class V3(Version): def __init__(self, domain: Domain): """ - Initialize the V3 version of chat + Initialize the V3 version of Chat :param domain: The Twilio.chat domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._channels = None @property - def channels(self) -> ChannelList: + def channels(self) -> ChannelListInstance: if self._channels is None: - self._channels = ChannelList(self) + self._channels = ChannelListInstance(self) return self._channels def __repr__(self) -> str: diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index 8a818a7113..33fa9c7abf 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of content + Initialize the V1 version of Content :param domain: The Twilio.content domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._contents = None @property - def contents(self) -> ContentList: + def contents(self) -> ContentListInstance: if self._contents is None: - self._contents = ContentList(self) + self._contents = ContentListInstance(self) return self._contents def __repr__(self) -> str: diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index 6e2778c77d..d6aabdf04a 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -28,7 +28,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of conversations + Initialize the V1 version of Conversations :param domain: The Twilio.conversations domain """ @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._users = None @property - def address_configurations(self) -> AddressConfigurationList: + def address_configurations(self) -> AddressConfigurationListInstance: if self._address_configurations is None: - self._address_configurations = AddressConfigurationList(self) + self._address_configurations = AddressConfigurationListInstance(self) return self._address_configurations @property - def configuration(self) -> ConfigurationList: + def configuration(self) -> ConfigurationListInstance: if self._configuration is None: - self._configuration = ConfigurationList(self) + self._configuration = ConfigurationListInstance(self) return self._configuration @property - def conversations(self) -> ConversationList: + def conversations(self) -> ConversationListInstance: if self._conversations is None: - self._conversations = ConversationList(self) + self._conversations = ConversationListInstance(self) return self._conversations @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def participant_conversations(self) -> ParticipantConversationList: + def participant_conversations(self) -> ParticipantConversationListInstance: if self._participant_conversations is None: - self._participant_conversations = ParticipantConversationList(self) + self._participant_conversations = ParticipantConversationListInstance(self) return self._participant_conversations @property - def roles(self) -> RoleList: + def roles(self) -> RoleListInstance: if self._roles is None: - self._roles = RoleList(self) + self._roles = RoleListInstance(self) return self._roles @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def users(self) -> UserList: + def users(self) -> UserListInstance: if self._users is None: - self._users = UserList(self) + self._users = UserListInstance(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index b33fea38ae..e30b415e19 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -24,7 +24,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of events + Initialize the V1 version of Events :param domain: The Twilio.events domain """ @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._subscriptions = None @property - def event_types(self) -> EventTypeList: + def event_types(self) -> EventTypeListInstance: if self._event_types is None: - self._event_types = EventTypeList(self) + self._event_types = EventTypeListInstance(self) return self._event_types @property - def schemas(self) -> SchemaList: + def schemas(self) -> SchemaListInstance: if self._schemas is None: - self._schemas = SchemaList(self) + self._schemas = SchemaListInstance(self) return self._schemas @property - def sinks(self) -> SinkList: + def sinks(self) -> SinkListInstance: if self._sinks is None: - self._sinks = SinkList(self) + self._sinks = SinkListInstance(self) return self._sinks @property - def subscriptions(self) -> SubscriptionList: + def subscriptions(self) -> SubscriptionListInstance: if self._subscriptions is None: - self._subscriptions = SubscriptionList(self) + self._subscriptions = SubscriptionListInstance(self) return self._subscriptions def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index 2df7bd770d..c28bdddbd2 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -32,7 +32,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of flex_api + Initialize the V1 version of FlexApi :param domain: The Twilio.flex_api domain """ @@ -52,75 +52,75 @@ def __init__(self, domain: Domain): self._web_channel = None @property - def assessments(self) -> AssessmentsList: + def assessments(self) -> AssessmentsListInstance: if self._assessments is None: - self._assessments = AssessmentsList(self) + self._assessments = AssessmentsListInstance(self) return self._assessments @property - def channel(self) -> ChannelList: + def channel(self) -> ChannelListInstance: if self._channel is None: - self._channel = ChannelList(self) + self._channel = ChannelListInstance(self) return self._channel @property - def configuration(self) -> ConfigurationList: + def configuration(self) -> ConfigurationListInstance: if self._configuration is None: - self._configuration = ConfigurationList(self) + self._configuration = ConfigurationListInstance(self) return self._configuration @property - def flex_flow(self) -> FlexFlowList: + def flex_flow(self) -> FlexFlowListInstance: if self._flex_flow is None: - self._flex_flow = FlexFlowList(self) + self._flex_flow = FlexFlowListInstance(self) return self._flex_flow @property - def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryList: + def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryListInstance: if self._insights_questionnaires_category is None: - self._insights_questionnaires_category = InsightsQuestionnairesCategoryList(self) + self._insights_questionnaires_category = InsightsQuestionnairesCategoryListInstance(self) return self._insights_questionnaires_category @property - def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionList: + def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionListInstance: if self._insights_questionnaires_question is None: - self._insights_questionnaires_question = InsightsQuestionnairesQuestionList(self) + self._insights_questionnaires_question = InsightsQuestionnairesQuestionListInstance(self) return self._insights_questionnaires_question @property - def insights_session(self) -> InsightsSessionList: + def insights_session(self) -> InsightsSessionListInstance: if self._insights_session is None: - self._insights_session = InsightsSessionList(self) + self._insights_session = InsightsSessionListInstance(self) return self._insights_session @property - def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsList: + def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsListInstance: if self._insights_settings_answer_sets is None: - self._insights_settings_answer_sets = InsightsSettingsAnswerSetsList(self) + self._insights_settings_answer_sets = InsightsSettingsAnswerSetsListInstance(self) return self._insights_settings_answer_sets @property - def insights_settings_comment(self) -> InsightsSettingsCommentList: + def insights_settings_comment(self) -> InsightsSettingsCommentListInstance: if self._insights_settings_comment is None: - self._insights_settings_comment = InsightsSettingsCommentList(self) + self._insights_settings_comment = InsightsSettingsCommentListInstance(self) return self._insights_settings_comment @property - def insights_user_roles(self) -> InsightsUserRolesList: + def insights_user_roles(self) -> InsightsUserRolesListInstance: if self._insights_user_roles is None: - self._insights_user_roles = InsightsUserRolesList(self) + self._insights_user_roles = InsightsUserRolesListInstance(self) return self._insights_user_roles @property - def interaction(self) -> InteractionList: + def interaction(self) -> InteractionListInstance: if self._interaction is None: - self._interaction = InteractionList(self) + self._interaction = InteractionListInstance(self) return self._interaction @property - def web_channel(self) -> WebChannelList: + def web_channel(self) -> WebChannelListInstance: if self._web_channel is None: - self._web_channel = WebChannelList(self) + self._web_channel = WebChannelListInstance(self) return self._web_channel def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index 7299eb6002..909a3dcfed 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -21,7 +21,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of flex_api + Initialize the V2 version of FlexApi :param domain: The Twilio.flex_api domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._web_channels = None @property - def web_channels(self) -> WebChannelsList: + def web_channels(self) -> WebChannelsListInstance: if self._web_channels is None: - self._web_channels = WebChannelsList(self) + self._web_channels = WebChannelsListInstance(self) return self._web_channels def __repr__(self) -> str: diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index d20f39741e..a32e86adc4 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of frontline_api + Initialize the V1 version of FrontlineApi :param domain: The Twilio.frontline_api domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._users = None @property - def users(self) -> UserList: + def users(self) -> UserListInstance: if self._users is None: - self._users = UserList(self) + self._users = UserListInstance(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 5856ff7134..278cd445ca 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -25,7 +25,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of insights + Initialize the V1 version of Insights :param domain: The Twilio.insights domain """ @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._settings = None @property - def calls(self) -> CallList: + def calls(self) -> CallListInstance: if self._calls is None: - self._calls = CallList(self) + self._calls = CallListInstance(self) return self._calls @property - def call_summaries(self) -> CallSummariesList: + def call_summaries(self) -> CallSummariesListInstance: if self._call_summaries is None: - self._call_summaries = CallSummariesList(self) + self._call_summaries = CallSummariesListInstance(self) return self._call_summaries @property - def conferences(self) -> ConferenceList: + def conferences(self) -> ConferenceListInstance: if self._conferences is None: - self._conferences = ConferenceList(self) + self._conferences = ConferenceListInstance(self) return self._conferences @property - def rooms(self) -> RoomList: + def rooms(self) -> RoomListInstance: if self._rooms is None: - self._rooms = RoomList(self) + self._rooms = RoomListInstance(self) return self._rooms @property - def settings(self) -> SettingList: + def settings(self) -> SettingListInstance: if self._settings is None: - self._settings = SettingList(self) + self._settings = SettingListInstance(self) return self._settings def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index f702ef8dbc..1b73f84903 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of ip_messaging + Initialize the V1 version of IpMessaging :param domain: The Twilio.ip_messaging domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index 6838a481d8..2e8058bb69 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -22,7 +22,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of ip_messaging + Initialize the V2 version of IpMessaging :param domain: The Twilio.ip_messaging domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index 6e2ebe661e..f49cc290b0 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of lookups + Initialize the V1 version of Lookups :param domain: The Twilio.lookups domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberList: + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index 2d5c71bd28..ee695e6269 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -21,7 +21,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of lookups + Initialize the V2 version of Lookups :param domain: The Twilio.lookups domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberList: + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index 3157d23f56..f03b3d6735 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -23,7 +23,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of media + Initialize the V1 version of Media :param domain: The Twilio.media domain """ @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._player_streamer = None @property - def media_processor(self) -> MediaProcessorList: + def media_processor(self) -> MediaProcessorListInstance: if self._media_processor is None: - self._media_processor = MediaProcessorList(self) + self._media_processor = MediaProcessorListInstance(self) return self._media_processor @property - def media_recording(self) -> MediaRecordingList: + def media_recording(self) -> MediaRecordingListInstance: if self._media_recording is None: - self._media_recording = MediaRecordingList(self) + self._media_recording = MediaRecordingListInstance(self) return self._media_recording @property - def player_streamer(self) -> PlayerStreamerList: + def player_streamer(self) -> PlayerStreamerListInstance: if self._player_streamer is None: - self._player_streamer = PlayerStreamerList(self) + self._player_streamer = PlayerStreamerListInstance(self) return self._player_streamer def __repr__(self) -> str: diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index 8364bbadf0..7b7fcb73ed 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -28,7 +28,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of messaging + Initialize the V1 version of Messaging :param domain: The Twilio.messaging domain """ @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._usecases = None @property - def brand_registrations(self) -> BrandRegistrationList: + def brand_registrations(self) -> BrandRegistrationListInstance: if self._brand_registrations is None: - self._brand_registrations = BrandRegistrationList(self) + self._brand_registrations = BrandRegistrationListInstance(self) return self._brand_registrations @property - def deactivations(self) -> DeactivationsList: + def deactivations(self) -> DeactivationsListInstance: if self._deactivations is None: - self._deactivations = DeactivationsList(self) + self._deactivations = DeactivationsListInstance(self) return self._deactivations @property - def domain_certs(self) -> DomainCertsList: + def domain_certs(self) -> DomainCertsListInstance: if self._domain_certs is None: - self._domain_certs = DomainCertsList(self) + self._domain_certs = DomainCertsListInstance(self) return self._domain_certs @property - def domain_config(self) -> DomainConfigList: + def domain_config(self) -> DomainConfigListInstance: if self._domain_config is None: - self._domain_config = DomainConfigList(self) + self._domain_config = DomainConfigListInstance(self) return self._domain_config @property - def external_campaign(self) -> ExternalCampaignList: + def external_campaign(self) -> ExternalCampaignListInstance: if self._external_campaign is None: - self._external_campaign = ExternalCampaignList(self) + self._external_campaign = ExternalCampaignListInstance(self) return self._external_campaign @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def tollfree_verifications(self) -> TollfreeVerificationList: + def tollfree_verifications(self) -> TollfreeVerificationListInstance: if self._tollfree_verifications is None: - self._tollfree_verifications = TollfreeVerificationList(self) + self._tollfree_verifications = TollfreeVerificationListInstance(self) return self._tollfree_verifications @property - def usecases(self) -> UsecaseList: + def usecases(self) -> UsecaseListInstance: if self._usecases is None: - self._usecases = UsecaseList(self) + self._usecases = UsecaseListInstance(self) return self._usecases def __repr__(self) -> str: diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index 5631b34e95..d18dc92d11 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of microvisor + Initialize the V1 version of Microvisor :param domain: The Twilio.microvisor domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._devices = None @property - def apps(self) -> AppList: + def apps(self) -> AppListInstance: if self._apps is None: - self._apps = AppList(self) + self._apps = AppListInstance(self) return self._apps @property - def devices(self) -> DeviceList: + def devices(self) -> DeviceListInstance: if self._devices is None: - self._devices = DeviceList(self) + self._devices = DeviceListInstance(self) return self._devices def __repr__(self) -> str: diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index fe5bcba84b..e937430129 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of monitor + Initialize the V1 version of Monitor :param domain: The Twilio.monitor domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._events = None @property - def alerts(self) -> AlertList: + def alerts(self) -> AlertListInstance: if self._alerts is None: - self._alerts = AlertList(self) + self._alerts = AlertListInstance(self) return self._alerts @property - def events(self) -> EventList: + def events(self) -> EventListInstance: if self._events is None: - self._events = EventList(self) + self._events = EventListInstance(self) return self._events def __repr__(self) -> str: diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index 34875a40a0..c5fa8b6851 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -22,7 +22,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of notify + Initialize the V1 version of Notify :param domain: The Twilio.notify domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialList: + def credentials(self) -> CredentialListInstance: if self._credentials is None: - self._credentials = CredentialList(self) + self._credentials = CredentialListInstance(self) return self._credentials @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index 911cff4559..4d354c68e9 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -21,7 +21,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of numbers + Initialize the V2 version of Numbers :param domain: The Twilio.numbers domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._regulatory_compliance = None @property - def regulatory_compliance(self) -> RegulatoryComplianceList: + def regulatory_compliance(self) -> RegulatoryComplianceListInstance: if self._regulatory_compliance is None: - self._regulatory_compliance = RegulatoryComplianceList(self) + self._regulatory_compliance = RegulatoryComplianceListInstance(self) return self._regulatory_compliance def __repr__(self) -> str: diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index 94d7335afb..7d235b1e6d 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -25,7 +25,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of oauth + Initialize the V1 version of Oauth :param domain: The Twilio.oauth domain """ @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._user_info = None @property - def device_code(self) -> DeviceCodeList: + def device_code(self) -> DeviceCodeListInstance: if self._device_code is None: - self._device_code = DeviceCodeList(self) + self._device_code = DeviceCodeListInstance(self) return self._device_code @property - def oauth(self) -> OauthList: + def oauth(self) -> OauthListInstance: if self._oauth is None: - self._oauth = OauthList(self) + self._oauth = OauthListInstance(self) return self._oauth @property - def openid_discovery(self) -> OpenidDiscoveryList: + def openid_discovery(self) -> OpenidDiscoveryListInstance: if self._openid_discovery is None: - self._openid_discovery = OpenidDiscoveryList(self) + self._openid_discovery = OpenidDiscoveryListInstance(self) return self._openid_discovery @property - def token(self) -> TokenList: + def token(self) -> TokenListInstance: if self._token is None: - self._token = TokenList(self) + self._token = TokenListInstance(self) return self._token @property - def user_info(self) -> UserInfoList: + def user_info(self) -> UserInfoListInstance: if self._user_info is None: - self._user_info = UserInfoList(self) + self._user_info = UserInfoListInstance(self) return self._user_info def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v1/__init__.py b/twilio/rest/pricing/v1/__init__.py index 2772f4bc16..a867004038 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -23,7 +23,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of pricing + Initialize the V1 version of Pricing :param domain: The Twilio.pricing domain """ @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def messaging(self) -> MessagingList: + def messaging(self) -> MessagingListInstance: if self._messaging is None: - self._messaging = MessagingList(self) + self._messaging = MessagingListInstance(self) return self._messaging @property - def phone_numbers(self) -> PhoneNumberList: + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers @property - def voice(self) -> VoiceList: + def voice(self) -> VoiceListInstance: if self._voice is None: - self._voice = VoiceList(self) + self._voice = VoiceListInstance(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index 425404a149..ed3bbf95b2 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -23,7 +23,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of pricing + Initialize the V2 version of Pricing :param domain: The Twilio.pricing domain """ @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def countries(self) -> CountryList: + def countries(self) -> CountryListInstance: if self._countries is None: - self._countries = CountryList(self) + self._countries = CountryListInstance(self) return self._countries @property - def numbers(self) -> NumberList: + def numbers(self) -> NumberListInstance: if self._numbers is None: - self._numbers = NumberList(self) + self._numbers = NumberListInstance(self) return self._numbers @property - def voice(self) -> VoiceList: + def voice(self) -> VoiceListInstance: if self._voice is None: - self._voice = VoiceList(self) + self._voice = VoiceListInstance(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index bc2fe6cbe0..208f31029d 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of proxy + Initialize the V1 version of Proxy :param domain: The Twilio.proxy domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index 9e7cbaa6c0..9803911c82 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -23,7 +23,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of routes + Initialize the V2 version of Routes :param domain: The Twilio.routes domain """ @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._trunks = None @property - def phone_numbers(self) -> PhoneNumberList: + def phone_numbers(self) -> PhoneNumberListInstance: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberList(self) + self._phone_numbers = PhoneNumberListInstance(self) return self._phone_numbers @property - def sip_domains(self) -> SipDomainList: + def sip_domains(self) -> SipDomainListInstance: if self._sip_domains is None: - self._sip_domains = SipDomainList(self) + self._sip_domains = SipDomainListInstance(self) return self._sip_domains @property - def trunks(self) -> TrunkList: + def trunks(self) -> TrunkListInstance: if self._trunks is None: - self._trunks = TrunkList(self) + self._trunks = TrunkListInstance(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index bd5c56979f..0675ff2046 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of serverless + Initialize the V1 version of Serverless :param domain: The Twilio.serverless domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index 3be3ac7c15..663a8c4b23 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of studio + Initialize the V1 version of Studio :param domain: The Twilio.studio domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._flows = None @property - def flows(self) -> FlowList: + def flows(self) -> FlowListInstance: if self._flows is None: - self._flows = FlowList(self) + self._flows = FlowListInstance(self) return self._flows def __repr__(self) -> str: diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index 61da5f64e5..7e0b977476 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -22,7 +22,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of studio + Initialize the V2 version of Studio :param domain: The Twilio.studio domain """ @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._flow_validate = None @property - def flows(self) -> FlowList: + def flows(self) -> FlowListInstance: if self._flows is None: - self._flows = FlowList(self) + self._flows = FlowListInstance(self) return self._flows @property - def flow_validate(self) -> FlowValidateList: + def flow_validate(self) -> FlowValidateListInstance: if self._flow_validate is None: - self._flow_validate = FlowValidateList(self) + self._flow_validate = FlowValidateListInstance(self) return self._flow_validate def __repr__(self) -> str: diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index 4b82868267..cb6be9317c 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -29,7 +29,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of supersim + Initialize the V1 version of Supersim :param domain: The Twilio.supersim domain """ @@ -46,57 +46,57 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def esim_profiles(self) -> EsimProfileList: + def esim_profiles(self) -> EsimProfileListInstance: if self._esim_profiles is None: - self._esim_profiles = EsimProfileList(self) + self._esim_profiles = EsimProfileListInstance(self) return self._esim_profiles @property - def fleets(self) -> FleetList: + def fleets(self) -> FleetListInstance: if self._fleets is None: - self._fleets = FleetList(self) + self._fleets = FleetListInstance(self) return self._fleets @property - def ip_commands(self) -> IpCommandList: + def ip_commands(self) -> IpCommandListInstance: if self._ip_commands is None: - self._ip_commands = IpCommandList(self) + self._ip_commands = IpCommandListInstance(self) return self._ip_commands @property - def networks(self) -> NetworkList: + def networks(self) -> NetworkListInstance: if self._networks is None: - self._networks = NetworkList(self) + self._networks = NetworkListInstance(self) return self._networks @property - def network_access_profiles(self) -> NetworkAccessProfileList: + def network_access_profiles(self) -> NetworkAccessProfileListInstance: if self._network_access_profiles is None: - self._network_access_profiles = NetworkAccessProfileList(self) + self._network_access_profiles = NetworkAccessProfileListInstance(self) return self._network_access_profiles @property - def settings_updates(self) -> SettingsUpdateList: + def settings_updates(self) -> SettingsUpdateListInstance: if self._settings_updates is None: - self._settings_updates = SettingsUpdateList(self) + self._settings_updates = SettingsUpdateListInstance(self) return self._settings_updates @property - def sims(self) -> SimList: + def sims(self) -> SimListInstance: if self._sims is None: - self._sims = SimList(self) + self._sims = SimListInstance(self) return self._sims @property - def sms_commands(self) -> SmsCommandList: + def sms_commands(self) -> SmsCommandListInstance: if self._sms_commands is None: - self._sms_commands = SmsCommandList(self) + self._sms_commands = SmsCommandListInstance(self) return self._sms_commands @property - def usage_records(self) -> UsageRecordList: + def usage_records(self) -> UsageRecordListInstance: if self._usage_records is None: - self._usage_records = UsageRecordList(self) + self._usage_records = UsageRecordListInstance(self) return self._usage_records def __repr__(self) -> str: diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index 134be77bea..2af99c66a6 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of sync + Initialize the V1 version of Sync :param domain: The Twilio.sync domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 104fc7398f..23c7384ac4 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of taskrouter + Initialize the V1 version of Taskrouter :param domain: The Twilio.taskrouter domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._workspaces = None @property - def workspaces(self) -> WorkspaceList: + def workspaces(self) -> WorkspaceListInstance: if self._workspaces is None: - self._workspaces = WorkspaceList(self) + self._workspaces = WorkspaceListInstance(self) return self._workspaces def __repr__(self) -> str: diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index 529d745fdb..df957a70d9 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -21,7 +21,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of trunking + Initialize the V1 version of Trunking :param domain: The Twilio.trunking domain """ @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._trunks = None @property - def trunks(self) -> TrunkList: + def trunks(self) -> TrunkListInstance: if self._trunks is None: - self._trunks = TrunkList(self) + self._trunks = TrunkListInstance(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index 6211d9513d..e7d8727ba9 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -27,7 +27,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of trusthub + Initialize the V1 version of Trusthub :param domain: The Twilio.trusthub domain """ @@ -42,45 +42,45 @@ def __init__(self, domain: Domain): self._trust_products = None @property - def customer_profiles(self) -> CustomerProfilesList: + def customer_profiles(self) -> CustomerProfilesListInstance: if self._customer_profiles is None: - self._customer_profiles = CustomerProfilesList(self) + self._customer_profiles = CustomerProfilesListInstance(self) return self._customer_profiles @property - def end_users(self) -> EndUserList: + def end_users(self) -> EndUserListInstance: if self._end_users is None: - self._end_users = EndUserList(self) + self._end_users = EndUserListInstance(self) return self._end_users @property - def end_user_types(self) -> EndUserTypeList: + def end_user_types(self) -> EndUserTypeListInstance: if self._end_user_types is None: - self._end_user_types = EndUserTypeList(self) + self._end_user_types = EndUserTypeListInstance(self) return self._end_user_types @property - def policies(self) -> PoliciesList: + def policies(self) -> PoliciesListInstance: if self._policies is None: - self._policies = PoliciesList(self) + self._policies = PoliciesListInstance(self) return self._policies @property - def supporting_documents(self) -> SupportingDocumentList: + def supporting_documents(self) -> SupportingDocumentListInstance: if self._supporting_documents is None: - self._supporting_documents = SupportingDocumentList(self) + self._supporting_documents = SupportingDocumentListInstance(self) return self._supporting_documents @property - def supporting_document_types(self) -> SupportingDocumentTypeList: + def supporting_document_types(self) -> SupportingDocumentTypeListInstance: if self._supporting_document_types is None: - self._supporting_document_types = SupportingDocumentTypeList(self) + self._supporting_document_types = SupportingDocumentTypeListInstance(self) return self._supporting_document_types @property - def trust_products(self) -> TrustProductsList: + def trust_products(self) -> TrustProductsListInstance: if self._trust_products is None: - self._trust_products = TrustProductsList(self) + self._trust_products = TrustProductsListInstance(self) return self._trust_products def __repr__(self) -> str: diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index 03864b60ba..f2ee78d676 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -26,7 +26,7 @@ class V2(Version): def __init__(self, domain: Domain): """ - Initialize the V2 version of verify + Initialize the V2 version of Verify :param domain: The Twilio.verify domain """ @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._verification_attempts_summary = None @property - def forms(self) -> FormList: + def forms(self) -> FormListInstance: if self._forms is None: - self._forms = FormList(self) + self._forms = FormListInstance(self) return self._forms @property - def safelist(self) -> SafelistList: + def safelist(self) -> SafelistListInstance: if self._safelist is None: - self._safelist = SafelistList(self) + self._safelist = SafelistListInstance(self) return self._safelist @property - def services(self) -> ServiceList: + def services(self) -> ServiceListInstance: if self._services is None: - self._services = ServiceList(self) + self._services = ServiceListInstance(self) return self._services @property - def templates(self) -> TemplateList: + def templates(self) -> TemplateListInstance: if self._templates is None: - self._templates = TemplateList(self) + self._templates = TemplateListInstance(self) return self._templates @property - def verification_attempts(self) -> VerificationAttemptList: + def verification_attempts(self) -> VerificationAttemptListInstance: if self._verification_attempts is None: - self._verification_attempts = VerificationAttemptList(self) + self._verification_attempts = VerificationAttemptListInstance(self) return self._verification_attempts @property - def verification_attempts_summary(self) -> VerificationAttemptsSummaryList: + def verification_attempts_summary(self) -> VerificationAttemptsSummaryListInstance: if self._verification_attempts_summary is None: - self._verification_attempts_summary = VerificationAttemptsSummaryList(self) + self._verification_attempts_summary = VerificationAttemptsSummaryListInstance(self) return self._verification_attempts_summary def __repr__(self) -> str: diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index 9d5ba8f849..041e610e32 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -26,7 +26,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of video + Initialize the V1 version of Video :param domain: The Twilio.video domain """ @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._rooms = None @property - def compositions(self) -> CompositionList: + def compositions(self) -> CompositionListInstance: if self._compositions is None: - self._compositions = CompositionList(self) + self._compositions = CompositionListInstance(self) return self._compositions @property - def composition_hooks(self) -> CompositionHookList: + def composition_hooks(self) -> CompositionHookListInstance: if self._composition_hooks is None: - self._composition_hooks = CompositionHookList(self) + self._composition_hooks = CompositionHookListInstance(self) return self._composition_hooks @property - def composition_settings(self) -> CompositionSettingsList: + def composition_settings(self) -> CompositionSettingsListInstance: if self._composition_settings is None: - self._composition_settings = CompositionSettingsList(self) + self._composition_settings = CompositionSettingsListInstance(self) return self._composition_settings @property - def recordings(self) -> RecordingList: + def recordings(self) -> RecordingListInstance: if self._recordings is None: - self._recordings = RecordingList(self) + self._recordings = RecordingListInstance(self) return self._recordings @property - def recording_settings(self) -> RecordingSettingsList: + def recording_settings(self) -> RecordingSettingsListInstance: if self._recording_settings is None: - self._recording_settings = RecordingSettingsList(self) + self._recording_settings = RecordingSettingsListInstance(self) return self._recording_settings @property - def rooms(self) -> RoomList: + def rooms(self) -> RoomListInstance: if self._rooms is None: - self._rooms = RoomList(self) + self._rooms = RoomListInstance(self) return self._rooms def __repr__(self) -> str: diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index 1639cb2370..1b01b270fc 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -26,7 +26,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of voice + Initialize the V1 version of Voice :param domain: The Twilio.voice domain """ @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._source_ip_mappings = None @property - def archived_calls(self) -> ArchivedCallList: + def archived_calls(self) -> ArchivedCallListInstance: if self._archived_calls is None: - self._archived_calls = ArchivedCallList(self) + self._archived_calls = ArchivedCallListInstance(self) return self._archived_calls @property - def byoc_trunks(self) -> ByocTrunkList: + def byoc_trunks(self) -> ByocTrunkListInstance: if self._byoc_trunks is None: - self._byoc_trunks = ByocTrunkList(self) + self._byoc_trunks = ByocTrunkListInstance(self) return self._byoc_trunks @property - def connection_policies(self) -> ConnectionPolicyList: + def connection_policies(self) -> ConnectionPolicyListInstance: if self._connection_policies is None: - self._connection_policies = ConnectionPolicyList(self) + self._connection_policies = ConnectionPolicyListInstance(self) return self._connection_policies @property - def dialing_permissions(self) -> DialingPermissionsList: + def dialing_permissions(self) -> DialingPermissionsListInstance: if self._dialing_permissions is None: - self._dialing_permissions = DialingPermissionsList(self) + self._dialing_permissions = DialingPermissionsListInstance(self) return self._dialing_permissions @property - def ip_records(self) -> IpRecordList: + def ip_records(self) -> IpRecordListInstance: if self._ip_records is None: - self._ip_records = IpRecordList(self) + self._ip_records = IpRecordListInstance(self) return self._ip_records @property - def source_ip_mappings(self) -> SourceIpMappingList: + def source_ip_mappings(self) -> SourceIpMappingListInstance: if self._source_ip_mappings is None: - self._source_ip_mappings = SourceIpMappingList(self) + self._source_ip_mappings = SourceIpMappingListInstance(self) return self._source_ip_mappings def __repr__(self) -> str: diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index 967deb82f2..d7b029cbdc 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -24,7 +24,7 @@ class V1(Version): def __init__(self, domain: Domain): """ - Initialize the V1 version of wireless + Initialize the V1 version of Wireless :param domain: The Twilio.wireless domain """ @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def commands(self) -> CommandList: + def commands(self) -> CommandListInstance: if self._commands is None: - self._commands = CommandList(self) + self._commands = CommandListInstance(self) return self._commands @property - def rate_plans(self) -> RatePlanList: + def rate_plans(self) -> RatePlanListInstance: if self._rate_plans is None: - self._rate_plans = RatePlanList(self) + self._rate_plans = RatePlanListInstance(self) return self._rate_plans @property - def sims(self) -> SimList: + def sims(self) -> SimListInstance: if self._sims is None: - self._sims = SimList(self) + self._sims = SimListInstance(self) return self._sims @property - def usage_records(self) -> UsageRecordList: + def usage_records(self) -> UsageRecordListInstance: if self._usage_records is None: - self._usage_records = UsageRecordList(self) + self._usage_records = UsageRecordListInstance(self) return self._usage_records def __repr__(self) -> str: From 7a5665452ecc53c8f69eb9cdcb7cce72d4c836e4 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Fri, 3 Feb 2023 11:27:16 -0500 Subject: [PATCH 11/11] chore: generate code with fixed typing --- twilio/rest/accounts/v1/__init__.py | 12 +++--- twilio/rest/api/v2010/__init__.py | 4 +- twilio/rest/autopilot/v1/__init__.py | 8 ++-- twilio/rest/bulkexports/v1/__init__.py | 8 ++-- twilio/rest/chat/v1/__init__.py | 8 ++-- twilio/rest/chat/v2/__init__.py | 8 ++-- twilio/rest/chat/v3/__init__.py | 4 +- twilio/rest/content/v1/__init__.py | 4 +- twilio/rest/conversations/v1/__init__.py | 32 ++++++++-------- twilio/rest/events/v1/__init__.py | 16 ++++---- twilio/rest/flex_api/v1/__init__.py | 48 ++++++++++++------------ twilio/rest/flex_api/v2/__init__.py | 4 +- twilio/rest/frontline_api/v1/__init__.py | 4 +- twilio/rest/insights/v1/__init__.py | 20 +++++----- twilio/rest/ip_messaging/v1/__init__.py | 8 ++-- twilio/rest/ip_messaging/v2/__init__.py | 8 ++-- twilio/rest/lookups/v1/__init__.py | 4 +- twilio/rest/lookups/v2/__init__.py | 4 +- twilio/rest/media/v1/__init__.py | 12 +++--- twilio/rest/messaging/v1/__init__.py | 32 ++++++++-------- twilio/rest/microvisor/v1/__init__.py | 8 ++-- twilio/rest/monitor/v1/__init__.py | 8 ++-- twilio/rest/notify/v1/__init__.py | 8 ++-- twilio/rest/numbers/v2/__init__.py | 4 +- twilio/rest/oauth/v1/__init__.py | 20 +++++----- twilio/rest/pricing/v1/__init__.py | 12 +++--- twilio/rest/pricing/v2/__init__.py | 12 +++--- twilio/rest/proxy/v1/__init__.py | 4 +- twilio/rest/routes/v2/__init__.py | 12 +++--- twilio/rest/serverless/v1/__init__.py | 4 +- twilio/rest/studio/v1/__init__.py | 4 +- twilio/rest/studio/v2/__init__.py | 8 ++-- twilio/rest/supersim/v1/__init__.py | 36 +++++++++--------- twilio/rest/sync/v1/__init__.py | 4 +- twilio/rest/taskrouter/v1/__init__.py | 4 +- twilio/rest/trunking/v1/__init__.py | 4 +- twilio/rest/trusthub/v1/__init__.py | 28 +++++++------- twilio/rest/verify/v2/__init__.py | 24 ++++++------ twilio/rest/video/v1/__init__.py | 24 ++++++------ twilio/rest/voice/v1/__init__.py | 24 ++++++------ twilio/rest/wireless/v1/__init__.py | 16 ++++---- 41 files changed, 258 insertions(+), 258 deletions(-) diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index f1df7ccc9b..7a15b25bcc 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._secondary_auth_token = None @property - def auth_token_promotion(self) -> AuthTokenPromotionListInstance: + def auth_token_promotion(self) -> AuthTokenPromotionList: if self._auth_token_promotion is None: - self._auth_token_promotion = AuthTokenPromotionListInstance(self) + self._auth_token_promotion = AuthTokenPromotionList(self) return self._auth_token_promotion @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def secondary_auth_token(self) -> SecondaryAuthTokenListInstance: + def secondary_auth_token(self) -> SecondaryAuthTokenList: if self._secondary_auth_token is None: - self._secondary_auth_token = SecondaryAuthTokenListInstance(self) + self._secondary_auth_token = SecondaryAuthTokenList(self) return self._secondary_auth_token def __repr__(self) -> str: diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index 443dced574..c65a37d552 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -32,9 +32,9 @@ def __init__(self, domain: Domain): self._account = None @property - def accounts(self) -> AccountListInstance: + def accounts(self) -> AccountList: if self._accounts is None: - self._accounts = AccountListInstance(self) + self._accounts = AccountList(self) return self._accounts @property diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index 6fe034d31c..dd515f739e 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._restore_assistant = None @property - def assistants(self) -> AssistantListInstance: + def assistants(self) -> AssistantList: if self._assistants is None: - self._assistants = AssistantListInstance(self) + self._assistants = AssistantList(self) return self._assistants @property - def restore_assistant(self) -> RestoreAssistantListInstance: + def restore_assistant(self) -> RestoreAssistantList: if self._restore_assistant is None: - self._restore_assistant = RestoreAssistantListInstance(self) + self._restore_assistant = RestoreAssistantList(self) return self._restore_assistant def __repr__(self) -> str: diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index 5dc2640426..a3cfaee71e 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._export_configuration = None @property - def exports(self) -> ExportListInstance: + def exports(self) -> ExportList: if self._exports is None: - self._exports = ExportListInstance(self) + self._exports = ExportList(self) return self._exports @property - def export_configuration(self) -> ExportConfigurationListInstance: + def export_configuration(self) -> ExportConfigurationList: if self._export_configuration is None: - self._export_configuration = ExportConfigurationListInstance(self) + self._export_configuration = ExportConfigurationList(self) return self._export_configuration def __repr__(self) -> str: diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index 27156502ec..9b71de4f21 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index d61a038570..43705e7e42 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index f5046d6f08..aa8a95227a 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._channels = None @property - def channels(self) -> ChannelListInstance: + def channels(self) -> ChannelList: if self._channels is None: - self._channels = ChannelListInstance(self) + self._channels = ChannelList(self) return self._channels def __repr__(self) -> str: diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index 33fa9c7abf..6da401f3b9 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._contents = None @property - def contents(self) -> ContentListInstance: + def contents(self) -> ContentList: if self._contents is None: - self._contents = ContentListInstance(self) + self._contents = ContentList(self) return self._contents def __repr__(self) -> str: diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index d6aabdf04a..2f1deca92c 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._users = None @property - def address_configurations(self) -> AddressConfigurationListInstance: + def address_configurations(self) -> AddressConfigurationList: if self._address_configurations is None: - self._address_configurations = AddressConfigurationListInstance(self) + self._address_configurations = AddressConfigurationList(self) return self._address_configurations @property - def configuration(self) -> ConfigurationListInstance: + def configuration(self) -> ConfigurationList: if self._configuration is None: - self._configuration = ConfigurationListInstance(self) + self._configuration = ConfigurationList(self) return self._configuration @property - def conversations(self) -> ConversationListInstance: + def conversations(self) -> ConversationList: if self._conversations is None: - self._conversations = ConversationListInstance(self) + self._conversations = ConversationList(self) return self._conversations @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def participant_conversations(self) -> ParticipantConversationListInstance: + def participant_conversations(self) -> ParticipantConversationList: if self._participant_conversations is None: - self._participant_conversations = ParticipantConversationListInstance(self) + self._participant_conversations = ParticipantConversationList(self) return self._participant_conversations @property - def roles(self) -> RoleListInstance: + def roles(self) -> RoleList: if self._roles is None: - self._roles = RoleListInstance(self) + self._roles = RoleList(self) return self._roles @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def users(self) -> UserListInstance: + def users(self) -> UserList: if self._users is None: - self._users = UserListInstance(self) + self._users = UserList(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index e30b415e19..8a47468cbf 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._subscriptions = None @property - def event_types(self) -> EventTypeListInstance: + def event_types(self) -> EventTypeList: if self._event_types is None: - self._event_types = EventTypeListInstance(self) + self._event_types = EventTypeList(self) return self._event_types @property - def schemas(self) -> SchemaListInstance: + def schemas(self) -> SchemaList: if self._schemas is None: - self._schemas = SchemaListInstance(self) + self._schemas = SchemaList(self) return self._schemas @property - def sinks(self) -> SinkListInstance: + def sinks(self) -> SinkList: if self._sinks is None: - self._sinks = SinkListInstance(self) + self._sinks = SinkList(self) return self._sinks @property - def subscriptions(self) -> SubscriptionListInstance: + def subscriptions(self) -> SubscriptionList: if self._subscriptions is None: - self._subscriptions = SubscriptionListInstance(self) + self._subscriptions = SubscriptionList(self) return self._subscriptions def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index c28bdddbd2..dea94191c0 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -52,75 +52,75 @@ def __init__(self, domain: Domain): self._web_channel = None @property - def assessments(self) -> AssessmentsListInstance: + def assessments(self) -> AssessmentsList: if self._assessments is None: - self._assessments = AssessmentsListInstance(self) + self._assessments = AssessmentsList(self) return self._assessments @property - def channel(self) -> ChannelListInstance: + def channel(self) -> ChannelList: if self._channel is None: - self._channel = ChannelListInstance(self) + self._channel = ChannelList(self) return self._channel @property - def configuration(self) -> ConfigurationListInstance: + def configuration(self) -> ConfigurationList: if self._configuration is None: - self._configuration = ConfigurationListInstance(self) + self._configuration = ConfigurationList(self) return self._configuration @property - def flex_flow(self) -> FlexFlowListInstance: + def flex_flow(self) -> FlexFlowList: if self._flex_flow is None: - self._flex_flow = FlexFlowListInstance(self) + self._flex_flow = FlexFlowList(self) return self._flex_flow @property - def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryListInstance: + def insights_questionnaires_category(self) -> InsightsQuestionnairesCategoryList: if self._insights_questionnaires_category is None: - self._insights_questionnaires_category = InsightsQuestionnairesCategoryListInstance(self) + self._insights_questionnaires_category = InsightsQuestionnairesCategoryList(self) return self._insights_questionnaires_category @property - def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionListInstance: + def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionList: if self._insights_questionnaires_question is None: - self._insights_questionnaires_question = InsightsQuestionnairesQuestionListInstance(self) + self._insights_questionnaires_question = InsightsQuestionnairesQuestionList(self) return self._insights_questionnaires_question @property - def insights_session(self) -> InsightsSessionListInstance: + def insights_session(self) -> InsightsSessionList: if self._insights_session is None: - self._insights_session = InsightsSessionListInstance(self) + self._insights_session = InsightsSessionList(self) return self._insights_session @property - def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsListInstance: + def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsList: if self._insights_settings_answer_sets is None: - self._insights_settings_answer_sets = InsightsSettingsAnswerSetsListInstance(self) + self._insights_settings_answer_sets = InsightsSettingsAnswerSetsList(self) return self._insights_settings_answer_sets @property - def insights_settings_comment(self) -> InsightsSettingsCommentListInstance: + def insights_settings_comment(self) -> InsightsSettingsCommentList: if self._insights_settings_comment is None: - self._insights_settings_comment = InsightsSettingsCommentListInstance(self) + self._insights_settings_comment = InsightsSettingsCommentList(self) return self._insights_settings_comment @property - def insights_user_roles(self) -> InsightsUserRolesListInstance: + def insights_user_roles(self) -> InsightsUserRolesList: if self._insights_user_roles is None: - self._insights_user_roles = InsightsUserRolesListInstance(self) + self._insights_user_roles = InsightsUserRolesList(self) return self._insights_user_roles @property - def interaction(self) -> InteractionListInstance: + def interaction(self) -> InteractionList: if self._interaction is None: - self._interaction = InteractionListInstance(self) + self._interaction = InteractionList(self) return self._interaction @property - def web_channel(self) -> WebChannelListInstance: + def web_channel(self) -> WebChannelList: if self._web_channel is None: - self._web_channel = WebChannelListInstance(self) + self._web_channel = WebChannelList(self) return self._web_channel def __repr__(self) -> str: diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index 909a3dcfed..486e1eb688 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._web_channels = None @property - def web_channels(self) -> WebChannelsListInstance: + def web_channels(self) -> WebChannelsList: if self._web_channels is None: - self._web_channels = WebChannelsListInstance(self) + self._web_channels = WebChannelsList(self) return self._web_channels def __repr__(self) -> str: diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index a32e86adc4..8782782b5f 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._users = None @property - def users(self) -> UserListInstance: + def users(self) -> UserList: if self._users is None: - self._users = UserListInstance(self) + self._users = UserList(self) return self._users def __repr__(self) -> str: diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 278cd445ca..77af64b1be 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._settings = None @property - def calls(self) -> CallListInstance: + def calls(self) -> CallList: if self._calls is None: - self._calls = CallListInstance(self) + self._calls = CallList(self) return self._calls @property - def call_summaries(self) -> CallSummariesListInstance: + def call_summaries(self) -> CallSummariesList: if self._call_summaries is None: - self._call_summaries = CallSummariesListInstance(self) + self._call_summaries = CallSummariesList(self) return self._call_summaries @property - def conferences(self) -> ConferenceListInstance: + def conferences(self) -> ConferenceList: if self._conferences is None: - self._conferences = ConferenceListInstance(self) + self._conferences = ConferenceList(self) return self._conferences @property - def rooms(self) -> RoomListInstance: + def rooms(self) -> RoomList: if self._rooms is None: - self._rooms = RoomListInstance(self) + self._rooms = RoomList(self) return self._rooms @property - def settings(self) -> SettingListInstance: + def settings(self) -> SettingList: if self._settings is None: - self._settings = SettingListInstance(self) + self._settings = SettingList(self) return self._settings def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index 1b73f84903..09057b4176 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index 2e8058bb69..99b60543e6 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index f49cc290b0..d4786757db 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index ee695e6269..97010637d0 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._phone_numbers = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers def __repr__(self) -> str: diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index f03b3d6735..aa2126e9fc 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._player_streamer = None @property - def media_processor(self) -> MediaProcessorListInstance: + def media_processor(self) -> MediaProcessorList: if self._media_processor is None: - self._media_processor = MediaProcessorListInstance(self) + self._media_processor = MediaProcessorList(self) return self._media_processor @property - def media_recording(self) -> MediaRecordingListInstance: + def media_recording(self) -> MediaRecordingList: if self._media_recording is None: - self._media_recording = MediaRecordingListInstance(self) + self._media_recording = MediaRecordingList(self) return self._media_recording @property - def player_streamer(self) -> PlayerStreamerListInstance: + def player_streamer(self) -> PlayerStreamerList: if self._player_streamer is None: - self._player_streamer = PlayerStreamerListInstance(self) + self._player_streamer = PlayerStreamerList(self) return self._player_streamer def __repr__(self) -> str: diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index 7b7fcb73ed..c3362d90d9 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -44,51 +44,51 @@ def __init__(self, domain: Domain): self._usecases = None @property - def brand_registrations(self) -> BrandRegistrationListInstance: + def brand_registrations(self) -> BrandRegistrationList: if self._brand_registrations is None: - self._brand_registrations = BrandRegistrationListInstance(self) + self._brand_registrations = BrandRegistrationList(self) return self._brand_registrations @property - def deactivations(self) -> DeactivationsListInstance: + def deactivations(self) -> DeactivationsList: if self._deactivations is None: - self._deactivations = DeactivationsListInstance(self) + self._deactivations = DeactivationsList(self) return self._deactivations @property - def domain_certs(self) -> DomainCertsListInstance: + def domain_certs(self) -> DomainCertsList: if self._domain_certs is None: - self._domain_certs = DomainCertsListInstance(self) + self._domain_certs = DomainCertsList(self) return self._domain_certs @property - def domain_config(self) -> DomainConfigListInstance: + def domain_config(self) -> DomainConfigList: if self._domain_config is None: - self._domain_config = DomainConfigListInstance(self) + self._domain_config = DomainConfigList(self) return self._domain_config @property - def external_campaign(self) -> ExternalCampaignListInstance: + def external_campaign(self) -> ExternalCampaignList: if self._external_campaign is None: - self._external_campaign = ExternalCampaignListInstance(self) + self._external_campaign = ExternalCampaignList(self) return self._external_campaign @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def tollfree_verifications(self) -> TollfreeVerificationListInstance: + def tollfree_verifications(self) -> TollfreeVerificationList: if self._tollfree_verifications is None: - self._tollfree_verifications = TollfreeVerificationListInstance(self) + self._tollfree_verifications = TollfreeVerificationList(self) return self._tollfree_verifications @property - def usecases(self) -> UsecaseListInstance: + def usecases(self) -> UsecaseList: if self._usecases is None: - self._usecases = UsecaseListInstance(self) + self._usecases = UsecaseList(self) return self._usecases def __repr__(self) -> str: diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index d18dc92d11..7e59f9975a 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._devices = None @property - def apps(self) -> AppListInstance: + def apps(self) -> AppList: if self._apps is None: - self._apps = AppListInstance(self) + self._apps = AppList(self) return self._apps @property - def devices(self) -> DeviceListInstance: + def devices(self) -> DeviceList: if self._devices is None: - self._devices = DeviceListInstance(self) + self._devices = DeviceList(self) return self._devices def __repr__(self) -> str: diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index e937430129..4a720a5576 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._events = None @property - def alerts(self) -> AlertListInstance: + def alerts(self) -> AlertList: if self._alerts is None: - self._alerts = AlertListInstance(self) + self._alerts = AlertList(self) return self._alerts @property - def events(self) -> EventListInstance: + def events(self) -> EventList: if self._events is None: - self._events = EventListInstance(self) + self._events = EventList(self) return self._events def __repr__(self) -> str: diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index c5fa8b6851..a79ec652c7 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._services = None @property - def credentials(self) -> CredentialListInstance: + def credentials(self) -> CredentialList: if self._credentials is None: - self._credentials = CredentialListInstance(self) + self._credentials = CredentialList(self) return self._credentials @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index 4d354c68e9..d2638ca5b9 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._regulatory_compliance = None @property - def regulatory_compliance(self) -> RegulatoryComplianceListInstance: + def regulatory_compliance(self) -> RegulatoryComplianceList: if self._regulatory_compliance is None: - self._regulatory_compliance = RegulatoryComplianceListInstance(self) + self._regulatory_compliance = RegulatoryComplianceList(self) return self._regulatory_compliance def __repr__(self) -> str: diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index 7d235b1e6d..adc88438a2 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -38,33 +38,33 @@ def __init__(self, domain: Domain): self._user_info = None @property - def device_code(self) -> DeviceCodeListInstance: + def device_code(self) -> DeviceCodeList: if self._device_code is None: - self._device_code = DeviceCodeListInstance(self) + self._device_code = DeviceCodeList(self) return self._device_code @property - def oauth(self) -> OauthListInstance: + def oauth(self) -> OauthList: if self._oauth is None: - self._oauth = OauthListInstance(self) + self._oauth = OauthList(self) return self._oauth @property - def openid_discovery(self) -> OpenidDiscoveryListInstance: + def openid_discovery(self) -> OpenidDiscoveryList: if self._openid_discovery is None: - self._openid_discovery = OpenidDiscoveryListInstance(self) + self._openid_discovery = OpenidDiscoveryList(self) return self._openid_discovery @property - def token(self) -> TokenListInstance: + def token(self) -> TokenList: if self._token is None: - self._token = TokenListInstance(self) + self._token = TokenList(self) return self._token @property - def user_info(self) -> UserInfoListInstance: + def user_info(self) -> UserInfoList: if self._user_info is None: - self._user_info = UserInfoListInstance(self) + self._user_info = UserInfoList(self) return self._user_info def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v1/__init__.py b/twilio/rest/pricing/v1/__init__.py index a867004038..f63117ab3b 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def messaging(self) -> MessagingListInstance: + def messaging(self) -> MessagingList: if self._messaging is None: - self._messaging = MessagingListInstance(self) + self._messaging = MessagingList(self) return self._messaging @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def voice(self) -> VoiceListInstance: + def voice(self) -> VoiceList: if self._voice is None: - self._voice = VoiceListInstance(self) + self._voice = VoiceList(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index ed3bbf95b2..7cc2e72ff0 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._voice = None @property - def countries(self) -> CountryListInstance: + def countries(self) -> CountryList: if self._countries is None: - self._countries = CountryListInstance(self) + self._countries = CountryList(self) return self._countries @property - def numbers(self) -> NumberListInstance: + def numbers(self) -> NumberList: if self._numbers is None: - self._numbers = NumberListInstance(self) + self._numbers = NumberList(self) return self._numbers @property - def voice(self) -> VoiceListInstance: + def voice(self) -> VoiceList: if self._voice is None: - self._voice = VoiceListInstance(self) + self._voice = VoiceList(self) return self._voice def __repr__(self) -> str: diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index 208f31029d..c18dfd6e1c 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index 9803911c82..fd8d201352 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -34,21 +34,21 @@ def __init__(self, domain: Domain): self._trunks = None @property - def phone_numbers(self) -> PhoneNumberListInstance: + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: - self._phone_numbers = PhoneNumberListInstance(self) + self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def sip_domains(self) -> SipDomainListInstance: + def sip_domains(self) -> SipDomainList: if self._sip_domains is None: - self._sip_domains = SipDomainListInstance(self) + self._sip_domains = SipDomainList(self) return self._sip_domains @property - def trunks(self) -> TrunkListInstance: + def trunks(self) -> TrunkList: if self._trunks is None: - self._trunks = TrunkListInstance(self) + self._trunks = TrunkList(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index 0675ff2046..ca6bf8dbca 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index 663a8c4b23..0e97d58d03 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._flows = None @property - def flows(self) -> FlowListInstance: + def flows(self) -> FlowList: if self._flows is None: - self._flows = FlowListInstance(self) + self._flows = FlowList(self) return self._flows def __repr__(self) -> str: diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index 7e0b977476..583f98c1c1 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -32,15 +32,15 @@ def __init__(self, domain: Domain): self._flow_validate = None @property - def flows(self) -> FlowListInstance: + def flows(self) -> FlowList: if self._flows is None: - self._flows = FlowListInstance(self) + self._flows = FlowList(self) return self._flows @property - def flow_validate(self) -> FlowValidateListInstance: + def flow_validate(self) -> FlowValidateList: if self._flow_validate is None: - self._flow_validate = FlowValidateListInstance(self) + self._flow_validate = FlowValidateList(self) return self._flow_validate def __repr__(self) -> str: diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index cb6be9317c..127bb18d32 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -46,57 +46,57 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def esim_profiles(self) -> EsimProfileListInstance: + def esim_profiles(self) -> EsimProfileList: if self._esim_profiles is None: - self._esim_profiles = EsimProfileListInstance(self) + self._esim_profiles = EsimProfileList(self) return self._esim_profiles @property - def fleets(self) -> FleetListInstance: + def fleets(self) -> FleetList: if self._fleets is None: - self._fleets = FleetListInstance(self) + self._fleets = FleetList(self) return self._fleets @property - def ip_commands(self) -> IpCommandListInstance: + def ip_commands(self) -> IpCommandList: if self._ip_commands is None: - self._ip_commands = IpCommandListInstance(self) + self._ip_commands = IpCommandList(self) return self._ip_commands @property - def networks(self) -> NetworkListInstance: + def networks(self) -> NetworkList: if self._networks is None: - self._networks = NetworkListInstance(self) + self._networks = NetworkList(self) return self._networks @property - def network_access_profiles(self) -> NetworkAccessProfileListInstance: + def network_access_profiles(self) -> NetworkAccessProfileList: if self._network_access_profiles is None: - self._network_access_profiles = NetworkAccessProfileListInstance(self) + self._network_access_profiles = NetworkAccessProfileList(self) return self._network_access_profiles @property - def settings_updates(self) -> SettingsUpdateListInstance: + def settings_updates(self) -> SettingsUpdateList: if self._settings_updates is None: - self._settings_updates = SettingsUpdateListInstance(self) + self._settings_updates = SettingsUpdateList(self) return self._settings_updates @property - def sims(self) -> SimListInstance: + def sims(self) -> SimList: if self._sims is None: - self._sims = SimListInstance(self) + self._sims = SimList(self) return self._sims @property - def sms_commands(self) -> SmsCommandListInstance: + def sms_commands(self) -> SmsCommandList: if self._sms_commands is None: - self._sms_commands = SmsCommandListInstance(self) + self._sms_commands = SmsCommandList(self) return self._sms_commands @property - def usage_records(self) -> UsageRecordListInstance: + def usage_records(self) -> UsageRecordList: if self._usage_records is None: - self._usage_records = UsageRecordListInstance(self) + self._usage_records = UsageRecordList(self) return self._usage_records def __repr__(self) -> str: diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index 2af99c66a6..30eb1a59d9 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._services = None @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services def __repr__(self) -> str: diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 23c7384ac4..e64e2bb66d 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._workspaces = None @property - def workspaces(self) -> WorkspaceListInstance: + def workspaces(self) -> WorkspaceList: if self._workspaces is None: - self._workspaces = WorkspaceListInstance(self) + self._workspaces = WorkspaceList(self) return self._workspaces def __repr__(self) -> str: diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index df957a70d9..d0ff5427bd 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -30,9 +30,9 @@ def __init__(self, domain: Domain): self._trunks = None @property - def trunks(self) -> TrunkListInstance: + def trunks(self) -> TrunkList: if self._trunks is None: - self._trunks = TrunkListInstance(self) + self._trunks = TrunkList(self) return self._trunks def __repr__(self) -> str: diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index e7d8727ba9..4c0fb8cd24 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -42,45 +42,45 @@ def __init__(self, domain: Domain): self._trust_products = None @property - def customer_profiles(self) -> CustomerProfilesListInstance: + def customer_profiles(self) -> CustomerProfilesList: if self._customer_profiles is None: - self._customer_profiles = CustomerProfilesListInstance(self) + self._customer_profiles = CustomerProfilesList(self) return self._customer_profiles @property - def end_users(self) -> EndUserListInstance: + def end_users(self) -> EndUserList: if self._end_users is None: - self._end_users = EndUserListInstance(self) + self._end_users = EndUserList(self) return self._end_users @property - def end_user_types(self) -> EndUserTypeListInstance: + def end_user_types(self) -> EndUserTypeList: if self._end_user_types is None: - self._end_user_types = EndUserTypeListInstance(self) + self._end_user_types = EndUserTypeList(self) return self._end_user_types @property - def policies(self) -> PoliciesListInstance: + def policies(self) -> PoliciesList: if self._policies is None: - self._policies = PoliciesListInstance(self) + self._policies = PoliciesList(self) return self._policies @property - def supporting_documents(self) -> SupportingDocumentListInstance: + def supporting_documents(self) -> SupportingDocumentList: if self._supporting_documents is None: - self._supporting_documents = SupportingDocumentListInstance(self) + self._supporting_documents = SupportingDocumentList(self) return self._supporting_documents @property - def supporting_document_types(self) -> SupportingDocumentTypeListInstance: + def supporting_document_types(self) -> SupportingDocumentTypeList: if self._supporting_document_types is None: - self._supporting_document_types = SupportingDocumentTypeListInstance(self) + self._supporting_document_types = SupportingDocumentTypeList(self) return self._supporting_document_types @property - def trust_products(self) -> TrustProductsListInstance: + def trust_products(self) -> TrustProductsList: if self._trust_products is None: - self._trust_products = TrustProductsListInstance(self) + self._trust_products = TrustProductsList(self) return self._trust_products def __repr__(self) -> str: diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index f2ee78d676..40944a93c0 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._verification_attempts_summary = None @property - def forms(self) -> FormListInstance: + def forms(self) -> FormList: if self._forms is None: - self._forms = FormListInstance(self) + self._forms = FormList(self) return self._forms @property - def safelist(self) -> SafelistListInstance: + def safelist(self) -> SafelistList: if self._safelist is None: - self._safelist = SafelistListInstance(self) + self._safelist = SafelistList(self) return self._safelist @property - def services(self) -> ServiceListInstance: + def services(self) -> ServiceList: if self._services is None: - self._services = ServiceListInstance(self) + self._services = ServiceList(self) return self._services @property - def templates(self) -> TemplateListInstance: + def templates(self) -> TemplateList: if self._templates is None: - self._templates = TemplateListInstance(self) + self._templates = TemplateList(self) return self._templates @property - def verification_attempts(self) -> VerificationAttemptListInstance: + def verification_attempts(self) -> VerificationAttemptList: if self._verification_attempts is None: - self._verification_attempts = VerificationAttemptListInstance(self) + self._verification_attempts = VerificationAttemptList(self) return self._verification_attempts @property - def verification_attempts_summary(self) -> VerificationAttemptsSummaryListInstance: + def verification_attempts_summary(self) -> VerificationAttemptsSummaryList: if self._verification_attempts_summary is None: - self._verification_attempts_summary = VerificationAttemptsSummaryListInstance(self) + self._verification_attempts_summary = VerificationAttemptsSummaryList(self) return self._verification_attempts_summary def __repr__(self) -> str: diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index 041e610e32..2c6fb7a88f 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._rooms = None @property - def compositions(self) -> CompositionListInstance: + def compositions(self) -> CompositionList: if self._compositions is None: - self._compositions = CompositionListInstance(self) + self._compositions = CompositionList(self) return self._compositions @property - def composition_hooks(self) -> CompositionHookListInstance: + def composition_hooks(self) -> CompositionHookList: if self._composition_hooks is None: - self._composition_hooks = CompositionHookListInstance(self) + self._composition_hooks = CompositionHookList(self) return self._composition_hooks @property - def composition_settings(self) -> CompositionSettingsListInstance: + def composition_settings(self) -> CompositionSettingsList: if self._composition_settings is None: - self._composition_settings = CompositionSettingsListInstance(self) + self._composition_settings = CompositionSettingsList(self) return self._composition_settings @property - def recordings(self) -> RecordingListInstance: + def recordings(self) -> RecordingList: if self._recordings is None: - self._recordings = RecordingListInstance(self) + self._recordings = RecordingList(self) return self._recordings @property - def recording_settings(self) -> RecordingSettingsListInstance: + def recording_settings(self) -> RecordingSettingsList: if self._recording_settings is None: - self._recording_settings = RecordingSettingsListInstance(self) + self._recording_settings = RecordingSettingsList(self) return self._recording_settings @property - def rooms(self) -> RoomListInstance: + def rooms(self) -> RoomList: if self._rooms is None: - self._rooms = RoomListInstance(self) + self._rooms = RoomList(self) return self._rooms def __repr__(self) -> str: diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index 1b01b270fc..115a848303 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -40,39 +40,39 @@ def __init__(self, domain: Domain): self._source_ip_mappings = None @property - def archived_calls(self) -> ArchivedCallListInstance: + def archived_calls(self) -> ArchivedCallList: if self._archived_calls is None: - self._archived_calls = ArchivedCallListInstance(self) + self._archived_calls = ArchivedCallList(self) return self._archived_calls @property - def byoc_trunks(self) -> ByocTrunkListInstance: + def byoc_trunks(self) -> ByocTrunkList: if self._byoc_trunks is None: - self._byoc_trunks = ByocTrunkListInstance(self) + self._byoc_trunks = ByocTrunkList(self) return self._byoc_trunks @property - def connection_policies(self) -> ConnectionPolicyListInstance: + def connection_policies(self) -> ConnectionPolicyList: if self._connection_policies is None: - self._connection_policies = ConnectionPolicyListInstance(self) + self._connection_policies = ConnectionPolicyList(self) return self._connection_policies @property - def dialing_permissions(self) -> DialingPermissionsListInstance: + def dialing_permissions(self) -> DialingPermissionsList: if self._dialing_permissions is None: - self._dialing_permissions = DialingPermissionsListInstance(self) + self._dialing_permissions = DialingPermissionsList(self) return self._dialing_permissions @property - def ip_records(self) -> IpRecordListInstance: + def ip_records(self) -> IpRecordList: if self._ip_records is None: - self._ip_records = IpRecordListInstance(self) + self._ip_records = IpRecordList(self) return self._ip_records @property - def source_ip_mappings(self) -> SourceIpMappingListInstance: + def source_ip_mappings(self) -> SourceIpMappingList: if self._source_ip_mappings is None: - self._source_ip_mappings = SourceIpMappingListInstance(self) + self._source_ip_mappings = SourceIpMappingList(self) return self._source_ip_mappings def __repr__(self) -> str: diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index d7b029cbdc..bbfcc58e19 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -36,27 +36,27 @@ def __init__(self, domain: Domain): self._usage_records = None @property - def commands(self) -> CommandListInstance: + def commands(self) -> CommandList: if self._commands is None: - self._commands = CommandListInstance(self) + self._commands = CommandList(self) return self._commands @property - def rate_plans(self) -> RatePlanListInstance: + def rate_plans(self) -> RatePlanList: if self._rate_plans is None: - self._rate_plans = RatePlanListInstance(self) + self._rate_plans = RatePlanList(self) return self._rate_plans @property - def sims(self) -> SimListInstance: + def sims(self) -> SimList: if self._sims is None: - self._sims = SimListInstance(self) + self._sims = SimList(self) return self._sims @property - def usage_records(self) -> UsageRecordListInstance: + def usage_records(self) -> UsageRecordList: if self._usage_records is None: - self._usage_records = UsageRecordListInstance(self) + self._usage_records = UsageRecordList(self) return self._usage_records def __repr__(self) -> str: