diff --git a/twilio/rest/accounts/v1/__init__.py b/twilio/rest/accounts/v1/__init__.py index 51abfd926d..7a15b25bcc 100644 --- a/twilio/rest/accounts/v1/__init__.py +++ b/twilio/rest/accounts/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -14,50 +21,39 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AuthTokenPromotionList: if self._auth_token_promotion is None: self._auth_token_promotion = AuthTokenPromotionList(self) return self._auth_token_promotion @property - def credentials(self): - """ - :rtype: twilio.rest.accounts.v1.credential.CredentialList - """ + def credentials(self) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def secondary_auth_token(self): - """ - :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList - """ + def secondary_auth_token(self) -> SecondaryAuthTokenList: if self._secondary_auth_token is None: self._secondary_auth_token = SecondaryAuthTokenList(self) return self._secondary_auth_token - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/api/v2010/__init__.py b/twilio/rest/api/v2010/__init__.py index de7d181ec4..c65a37d552 100644 --- a/twilio/rest/api/v2010/__init__.py +++ b/twilio/rest/api/v2010/__init__.py @@ -1,230 +1,51 @@ -# 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.rest.api.v2010.account import AccountContext +from twilio.base.domain import Domain from twilio.rest.api.v2010.account import AccountList +from twilio.rest.api.v2010.account import AccountContext class V2010(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AccountList: if self._accounts is None: self._accounts = AccountList(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 """ diff --git a/twilio/rest/autopilot/v1/__init__.py b/twilio/rest/autopilot/v1/__init__.py index ff9390e4f3..dd515f739e 100644 --- a/twilio/rest/autopilot/v1/__init__.py +++ b/twilio/rest/autopilot/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.autopilot.v1.assistant import AssistantList from twilio.rest.autopilot.v1.restore_assistant import RestoreAssistantList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AssistantList: if self._assistants is None: self._assistants = AssistantList(self) return self._assistants @property - def restore_assistant(self): - """ - :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantList - """ + def restore_assistant(self) -> RestoreAssistantList: if self._restore_assistant is None: self._restore_assistant = RestoreAssistantList(self) return self._restore_assistant - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/bulkexports/v1/__init__.py b/twilio/rest/bulkexports/v1/__init__.py index 471184c727..a3cfaee71e 100644 --- a/twilio/rest/bulkexports/v1/__init__.py +++ b/twilio/rest/bulkexports/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.bulkexports.v1.export import ExportList from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ExportList: if self._exports is None: self._exports = ExportList(self) return self._exports @property - def export_configuration(self): - """ - :rtype: twilio.rest.bulkexports.v1.export_configuration.ExportConfigurationList - """ + def export_configuration(self) -> ExportConfigurationList: if self._export_configuration is None: self._export_configuration = ExportConfigurationList(self) return self._export_configuration - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/chat/v1/__init__.py b/twilio/rest/chat/v1/__init__.py index 317a2bf1e5..9b71de4f21 100644 --- a/twilio/rest/chat/v1/__init__.py +++ b/twilio/rest/chat/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.chat.v1.credential import CredentialList from twilio.rest.chat.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.chat.v1.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/chat/v2/__init__.py b/twilio/rest/chat/v2/__init__.py index 589cb55646..43705e7e42 100644 --- a/twilio/rest/chat/v2/__init__.py +++ b/twilio/rest/chat/v2/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.chat.v2.credential import CredentialList from twilio.rest.chat.v2.service import ServiceList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.chat.v2.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/chat/v3/__init__.py b/twilio/rest/chat/v3/__init__.py index 51c334ed86..aa8a95227a 100644 --- a/twilio/rest/chat/v3/__init__.py +++ b/twilio/rest/chat/v3/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.chat.v3.channel import ChannelList class V3(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ChannelList: if self._channels is None: self._channels = ChannelList(self) return self._channels - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/content/v1/__init__.py b/twilio/rest/content/v1/__init__.py index 871f0511da..6da401f3b9 100644 --- a/twilio/rest/content/v1/__init__.py +++ b/twilio/rest/content/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.content.v1.content import ContentList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ContentList: if self._contents is None: self._contents = ContentList(self) return self._contents - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/conversations/v1/__init__.py b/twilio/rest/conversations/v1/__init__.py index 8c2ef119a5..2f1deca92c 100644 --- a/twilio/rest/conversations/v1/__init__.py +++ b/twilio/rest/conversations/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -19,100 +26,74 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AddressConfigurationList: + if self._address_configurations is None: + self._address_configurations = AddressConfigurationList(self) + return self._address_configurations @property - def configuration(self): - """ - :rtype: twilio.rest.conversations.v1.configuration.ConfigurationList - """ + def configuration(self) -> ConfigurationList: if self._configuration is None: self._configuration = ConfigurationList(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) -> ConversationList: if self._conversations is None: self._conversations = ConversationList(self) return self._conversations @property - def credentials(self): - """ - :rtype: twilio.rest.conversations.v1.credential.CredentialList - """ + def credentials(self) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def participant_conversations(self): - """ - :rtype: twilio.rest.conversations.v1.participant_conversation.ParticipantConversationList - """ + def participant_conversations(self) -> ParticipantConversationList: if self._participant_conversations is None: self._participant_conversations = ParticipantConversationList(self) return self._participant_conversations @property - def roles(self): - """ - :rtype: twilio.rest.conversations.v1.role.RoleList - """ + def roles(self) -> RoleList: if self._roles is None: self._roles = RoleList(self) return self._roles @property - def services(self): - """ - :rtype: twilio.rest.conversations.v1.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services @property - def users(self): - """ - :rtype: twilio.rest.conversations.v1.user.UserList - """ + def users(self) -> UserList: if self._users is None: self._users = UserList(self) return self._users - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/events/v1/__init__.py b/twilio/rest/events/v1/__init__.py index 82bdde88f4..8a47468cbf 100644 --- a/twilio/rest/events/v1/__init__.py +++ b/twilio/rest/events/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -15,60 +22,46 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> EventTypeList: if self._event_types is None: self._event_types = EventTypeList(self) return self._event_types @property - def schemas(self): - """ - :rtype: twilio.rest.events.v1.schema.SchemaList - """ + def schemas(self) -> SchemaList: if self._schemas is None: self._schemas = SchemaList(self) return self._schemas @property - def sinks(self): - """ - :rtype: twilio.rest.events.v1.sink.SinkList - """ + def sinks(self) -> SinkList: if self._sinks is None: self._sinks = SinkList(self) return self._sinks @property - def subscriptions(self): - """ - :rtype: twilio.rest.events.v1.subscription.SubscriptionList - """ + def subscriptions(self) -> SubscriptionList: if self._subscriptions is None: self._subscriptions = SubscriptionList(self) return self._subscriptions - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/flex_api/v1/__init__.py b/twilio/rest/flex_api/v1/__init__.py index 58096faeb7..dea94191c0 100644 --- a/twilio/rest/flex_api/v1/__init__.py +++ b/twilio/rest/flex_api/v1/__init__.py @@ -1,118 +1,131 @@ -# 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.base.domain import Domain 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.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.user_roles import UserRolesList from twilio.rest.flex_api.v1.web_channel import WebChannelList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ Initialize the V1 version of FlexApi - :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) -> AssessmentsList: if self._assessments is None: self._assessments = AssessmentsList(self) return self._assessments @property - def channel(self): - """ - :rtype: twilio.rest.flex_api.v1.channel.ChannelList - """ + def channel(self) -> ChannelList: if self._channel is None: self._channel = ChannelList(self) return self._channel @property - def configuration(self): - """ - :rtype: twilio.rest.flex_api.v1.configuration.ConfigurationList - """ + def configuration(self) -> ConfigurationList: if self._configuration is None: self._configuration = ConfigurationList(self) return self._configuration @property - def flex_flow(self): - """ - :rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowList - """ + def flex_flow(self) -> FlexFlowList: if self._flex_flow is None: self._flex_flow = FlexFlowList(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) -> InsightsQuestionnairesCategoryList: + if self._insights_questionnaires_category is None: + self._insights_questionnaires_category = InsightsQuestionnairesCategoryList(self) + return self._insights_questionnaires_category @property - def interaction(self): - """ - :rtype: twilio.rest.flex_api.v1.interaction.InteractionList - """ + def insights_questionnaires_question(self) -> InsightsQuestionnairesQuestionList: + if self._insights_questionnaires_question is None: + self._insights_questionnaires_question = InsightsQuestionnairesQuestionList(self) + return self._insights_questionnaires_question + + @property + def insights_session(self) -> InsightsSessionList: + if self._insights_session is None: + self._insights_session = InsightsSessionList(self) + return self._insights_session + + @property + def insights_settings_answer_sets(self) -> InsightsSettingsAnswerSetsList: + if self._insights_settings_answer_sets is None: + self._insights_settings_answer_sets = InsightsSettingsAnswerSetsList(self) + return self._insights_settings_answer_sets + + @property + def insights_settings_comment(self) -> InsightsSettingsCommentList: + if self._insights_settings_comment is None: + self._insights_settings_comment = InsightsSettingsCommentList(self) + return self._insights_settings_comment + + @property + def insights_user_roles(self) -> InsightsUserRolesList: + if self._insights_user_roles is None: + self._insights_user_roles = InsightsUserRolesList(self) + return self._insights_user_roles + + @property + def interaction(self) -> InteractionList: if self._interaction is None: self._interaction = InteractionList(self) return self._interaction @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 - - @property - def web_channel(self): - """ - :rtype: twilio.rest.flex_api.v1.web_channel.WebChannelList - """ + def web_channel(self) -> WebChannelList: if self._web_channel is None: self._web_channel = WebChannelList(self) return self._web_channel - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/flex_api/v1/user_roles.py b/twilio/rest/flex_api/v1/user_roles.py index 063e2de686..8555ed9a6b 100644 --- a/twilio/rest/flex_api/v1/user_roles.py +++ b/twilio/rest/flex_api/v1/user_roles.py @@ -21,7 +21,7 @@ from twilio.base.list_resource import ListResource from twilio.base.version import Version -# +# class UserRolesContext(InstanceContext): @@ -32,10 +32,10 @@ def __init__(self, version: Version): # Path Solution self._solution = { } self._uri = '/Insights/UserRoles' - - + + def fetch(self, token): - + """ Fetch the UserRolesInstance @@ -45,10 +45,10 @@ def fetch(self, token): payload = self._version.fetch(method='GET', uri=self._uri, ) return UserRolesInstance(self._version, payload, ) - - - + + + def __repr__(self): """ @@ -63,14 +63,14 @@ def __repr__(self): class UserRolesInstance(InstanceResource): def __init__(self, version, payload): super().__init__(version) - self._properties = { + self._properties = { 'roles' : payload.get('roles'), 'url' : payload.get('url'), } self._context = None self._solution = { - + } @property @@ -78,11 +78,11 @@ def _proxy(self): if self._context is None: self._context = UserRolesContext( self._version, - + ) return self._context - + def __repr__(self): """ @@ -103,8 +103,8 @@ def __init__(self, version: Version): # Path Solution self._solution = { } self._uri = '' - - + + def __repr__(self): """ diff --git a/twilio/rest/flex_api/v2/__init__.py b/twilio/rest/flex_api/v2/__init__.py index e202a42b07..486e1eb688 100644 --- a/twilio/rest/flex_api/v2/__init__.py +++ b/twilio/rest/flex_api/v2/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.flex_api.v2.web_channels import WebChannelsList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ Initialize the V2 version of FlexApi - :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) -> WebChannelsList: if self._web_channels is None: self._web_channels = WebChannelsList(self) return self._web_channels - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/frontline_api/v1/__init__.py b/twilio/rest/frontline_api/v1/__init__.py index 8753545638..8782782b5f 100644 --- a/twilio/rest/frontline_api/v1/__init__.py +++ b/twilio/rest/frontline_api/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.frontline_api.v1.user import UserList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ Initialize the V1 version of FrontlineApi - :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) -> UserList: if self._users is None: self._users = UserList(self) return self._users - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/insights/v1/__init__.py b/twilio/rest/insights/v1/__init__.py index 03a62ed777..77af64b1be 100644 --- a/twilio/rest/insights/v1/__init__.py +++ b/twilio/rest/insights/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -16,70 +23,53 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CallList: if self._calls is None: self._calls = CallList(self) return self._calls @property - def call_summaries(self): - """ - :rtype: twilio.rest.insights.v1.call_summaries.CallSummariesList - """ + def call_summaries(self) -> CallSummariesList: if self._call_summaries is None: self._call_summaries = CallSummariesList(self) return self._call_summaries @property - def conferences(self): - """ - :rtype: twilio.rest.insights.v1.conference.ConferenceList - """ + def conferences(self) -> ConferenceList: if self._conferences is None: self._conferences = ConferenceList(self) return self._conferences @property - def rooms(self): - """ - :rtype: twilio.rest.insights.v1.room.RoomList - """ + def rooms(self) -> RoomList: if self._rooms is None: self._rooms = RoomList(self) return self._rooms - def __repr__(self): + @property + def settings(self) -> SettingList: + if self._settings is None: + self._settings = SettingList(self) + return self._settings + + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/ip_messaging/v1/__init__.py b/twilio/rest/ip_messaging/v1/__init__.py index 998af85a0d..09057b4176 100644 --- a/twilio/rest/ip_messaging/v1/__init__.py +++ b/twilio/rest/ip_messaging/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.ip_messaging.v1.credential import CredentialList from twilio.rest.ip_messaging.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ Initialize the V1 version of IpMessaging - :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) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.ip_messaging.v1.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/ip_messaging/v2/__init__.py b/twilio/rest/ip_messaging/v2/__init__.py index 9248a90f23..99b60543e6 100644 --- a/twilio/rest/ip_messaging/v2/__init__.py +++ b/twilio/rest/ip_messaging/v2/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.ip_messaging.v2.credential import CredentialList from twilio.rest.ip_messaging.v2.service import ServiceList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ Initialize the V2 version of IpMessaging - :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) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.ip_messaging.v2.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/lookups/v1/__init__.py b/twilio/rest/lookups/v1/__init__.py index b5a74c806c..d4786757db 100644 --- a/twilio/rest/lookups/v1/__init__.py +++ b/twilio/rest/lookups/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.lookups.v1.phone_number import PhoneNumberList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> PhoneNumberList: if self._phone_numbers is None: self._phone_numbers = PhoneNumberList(self) return self._phone_numbers - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/lookups/v2/__init__.py b/twilio/rest/lookups/v2/__init__.py index c09cb2a4b2..97010637d0 100644 --- a/twilio/rest/lookups/v2/__init__.py +++ b/twilio/rest/lookups/v2/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.lookups.v2.phone_number import PhoneNumberList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> PhoneNumberList: if self._phone_numbers is None: self._phone_numbers = PhoneNumberList(self) return self._phone_numbers - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/media/v1/__init__.py b/twilio/rest/media/v1/__init__.py index 73fcc7f52d..aa2126e9fc 100644 --- a/twilio/rest/media/v1/__init__.py +++ b/twilio/rest/media/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -14,50 +21,39 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> MediaProcessorList: if self._media_processor is None: self._media_processor = MediaProcessorList(self) return self._media_processor @property - def media_recording(self): - """ - :rtype: twilio.rest.media.v1.media_recording.MediaRecordingList - """ + def media_recording(self) -> MediaRecordingList: if self._media_recording is None: self._media_recording = MediaRecordingList(self) return self._media_recording @property - def player_streamer(self): - """ - :rtype: twilio.rest.media.v1.player_streamer.PlayerStreamerList - """ + def player_streamer(self) -> PlayerStreamerList: if self._player_streamer is None: self._player_streamer = PlayerStreamerList(self) return self._player_streamer - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/messaging/v1/__init__.py b/twilio/rest/messaging/v1/__init__.py index 2aa36fabfb..c3362d90d9 100644 --- a/twilio/rest/messaging/v1/__init__.py +++ b/twilio/rest/messaging/v1/__init__.py @@ -1,15 +1,22 @@ -# 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.base.domain import Domain 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.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 @@ -19,14 +26,13 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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,83 +42,58 @@ 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) -> BrandRegistrationList: if self._brand_registrations is None: self._brand_registrations = BrandRegistrationList(self) return self._brand_registrations @property - def deactivations(self): - """ - :rtype: twilio.rest.messaging.v1.deactivation.DeactivationsList - """ + def deactivations(self) -> DeactivationsList: if self._deactivations is None: self._deactivations = DeactivationsList(self) return self._deactivations @property - def domain_certs(self): - """ - :rtype: twilio.rest.messaging.v1.domain_cert.DomainCertsList - """ + def domain_certs(self) -> DomainCertsList: if self._domain_certs is None: self._domain_certs = DomainCertsList(self) return self._domain_certs @property - def domain_config(self): - """ - :rtype: twilio.rest.messaging.v1.domain_config.DomainConfigList - """ + def domain_config(self) -> DomainConfigList: if self._domain_config is None: self._domain_config = DomainConfigList(self) return self._domain_config @property - def external_campaign(self): - """ - :rtype: twilio.rest.messaging.v1.external_campaign.ExternalCampaignList - """ + def external_campaign(self) -> ExternalCampaignList: if self._external_campaign is None: self._external_campaign = ExternalCampaignList(self) return self._external_campaign @property - def services(self): - """ - :rtype: twilio.rest.messaging.v1.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services @property - def tollfree_verifications(self): - """ - :rtype: twilio.rest.messaging.v1.tollfree_verification.TollfreeVerificationList - """ + def tollfree_verifications(self) -> TollfreeVerificationList: if self._tollfree_verifications is None: self._tollfree_verifications = TollfreeVerificationList(self) return self._tollfree_verifications @property - def usecases(self): - """ - :rtype: twilio.rest.messaging.v1.usecase.UsecaseList - """ + def usecases(self) -> UsecaseList: if self._usecases is None: self._usecases = UsecaseList(self) return self._usecases - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/microvisor/v1/__init__.py b/twilio/rest/microvisor/v1/__init__.py index 97bf4b6d27..7e59f9975a 100644 --- a/twilio/rest/microvisor/v1/__init__.py +++ b/twilio/rest/microvisor/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.microvisor.v1.app import AppList from twilio.rest.microvisor.v1.device import DeviceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AppList: if self._apps is None: self._apps = AppList(self) return self._apps @property - def devices(self): - """ - :rtype: twilio.rest.microvisor.v1.device.DeviceList - """ + def devices(self) -> DeviceList: if self._devices is None: self._devices = DeviceList(self) return self._devices - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/monitor/v1/__init__.py b/twilio/rest/monitor/v1/__init__.py index b0a876cdce..4a720a5576 100644 --- a/twilio/rest/monitor/v1/__init__.py +++ b/twilio/rest/monitor/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.monitor.v1.alert import AlertList from twilio.rest.monitor.v1.event import EventList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> AlertList: if self._alerts is None: self._alerts = AlertList(self) return self._alerts @property - def events(self): - """ - :rtype: twilio.rest.monitor.v1.event.EventList - """ + def events(self) -> EventList: if self._events is None: self._events = EventList(self) return self._events - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/notify/v1/__init__.py b/twilio/rest/notify/v1/__init__.py index ee3a97ab0a..a79ec652c7 100644 --- a/twilio/rest/notify/v1/__init__.py +++ b/twilio/rest/notify/v1/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.notify.v1.credential import CredentialList from twilio.rest.notify.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CredentialList: if self._credentials is None: self._credentials = CredentialList(self) return self._credentials @property - def services(self): - """ - :rtype: twilio.rest.notify.v1.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/numbers/v2/__init__.py b/twilio/rest/numbers/v2/__init__.py index ad0251f460..d2638ca5b9 100644 --- a/twilio/rest/numbers/v2/__init__.py +++ b/twilio/rest/numbers/v2/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.numbers.v2.regulatory_compliance import RegulatoryComplianceList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> RegulatoryComplianceList: if self._regulatory_compliance is None: self._regulatory_compliance = RegulatoryComplianceList(self) return self._regulatory_compliance - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/oauth/v1/__init__.py b/twilio/rest/oauth/v1/__init__.py index 659676cf2b..adc88438a2 100644 --- a/twilio/rest/oauth/v1/__init__.py +++ b/twilio/rest/oauth/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -16,70 +23,53 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> DeviceCodeList: + if self._device_code is None: + self._device_code = DeviceCodeList(self) + return self._device_code @property - def oauth(self): - """ - :rtype: twilio.rest.oauth.v1.oauth.OauthList - """ + def oauth(self) -> OauthList: if self._oauth is None: self._oauth = OauthList(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) -> OpenidDiscoveryList: if self._openid_discovery is None: self._openid_discovery = OpenidDiscoveryList(self) return self._openid_discovery @property - def token(self): - """ - :rtype: twilio.rest.oauth.v1.token.TokenList - """ + def token(self) -> TokenList: if self._token is None: self._token = TokenList(self) return self._token @property - def user_info(self): - """ - :rtype: twilio.rest.oauth.v1.user_info.UserInfoList - """ + def user_info(self) -> UserInfoList: if self._user_info is None: self._user_info = UserInfoList(self) return self._user_info - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ 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..f63117ab3b 100644 --- a/twilio/rest/pricing/v1/__init__.py +++ b/twilio/rest/pricing/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -14,50 +21,39 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> MessagingList: if self._messaging is None: self._messaging = MessagingList(self) return self._messaging @property - def phone_numbers(self): - """ - :rtype: twilio.rest.pricing.v1.phone_number.PhoneNumberList - """ + def phone_numbers(self) -> PhoneNumberList: if self._phone_numbers is None: self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def voice(self): - """ - :rtype: twilio.rest.pricing.v1.voice.VoiceList - """ + def voice(self) -> VoiceList: if self._voice is None: self._voice = VoiceList(self) return self._voice - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/pricing/v2/__init__.py b/twilio/rest/pricing/v2/__init__.py index 6afa8f6402..7cc2e72ff0 100644 --- a/twilio/rest/pricing/v2/__init__.py +++ b/twilio/rest/pricing/v2/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain from twilio.rest.pricing.v2.country import CountryList from twilio.rest.pricing.v2.number import NumberList from twilio.rest.pricing.v2.voice import VoiceList @@ -14,50 +21,39 @@ class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CountryList: if self._countries is None: self._countries = CountryList(self) return self._countries @property - def numbers(self): - """ - :rtype: twilio.rest.pricing.v2.number.NumberList - """ + def numbers(self) -> NumberList: if self._numbers is None: self._numbers = NumberList(self) return self._numbers @property - def voice(self): - """ - :rtype: twilio.rest.pricing.v2.voice.VoiceList - """ + def voice(self) -> VoiceList: if self._voice is None: self._voice = VoiceList(self) return self._voice - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/proxy/v1/__init__.py b/twilio/rest/proxy/v1/__init__.py index ee5122ab0d..c18dfd6e1c 100644 --- a/twilio/rest/proxy/v1/__init__.py +++ b/twilio/rest/proxy/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.proxy.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/routes/v2/__init__.py b/twilio/rest/routes/v2/__init__.py index d234120077..fd8d201352 100644 --- a/twilio/rest/routes/v2/__init__.py +++ b/twilio/rest/routes/v2/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -14,50 +21,39 @@ class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> PhoneNumberList: if self._phone_numbers is None: self._phone_numbers = PhoneNumberList(self) return self._phone_numbers @property - def sip_domains(self): - """ - :rtype: twilio.rest.routes.v2.sip_domain.SipDomainList - """ + def sip_domains(self) -> SipDomainList: if self._sip_domains is None: self._sip_domains = SipDomainList(self) return self._sip_domains @property - def trunks(self): - """ - :rtype: twilio.rest.routes.v2.trunk.TrunkList - """ + def trunks(self) -> TrunkList: if self._trunks is None: self._trunks = TrunkList(self) return self._trunks - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/serverless/v1/__init__.py b/twilio/rest/serverless/v1/__init__.py index 6f4d5cbe95..ca6bf8dbca 100644 --- a/twilio/rest/serverless/v1/__init__.py +++ b/twilio/rest/serverless/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.serverless.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/studio/v1/__init__.py b/twilio/rest/studio/v1/__init__.py index e1d0705da1..0e97d58d03 100644 --- a/twilio/rest/studio/v1/__init__.py +++ b/twilio/rest/studio/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.studio.v1.flow import FlowList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> FlowList: if self._flows is None: self._flows = FlowList(self) return self._flows - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/studio/v2/__init__.py b/twilio/rest/studio/v2/__init__.py index 5818742739..583f98c1c1 100644 --- a/twilio/rest/studio/v2/__init__.py +++ b/twilio/rest/studio/v2/__init__.py @@ -1,52 +1,51 @@ -# 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.base.domain import Domain from twilio.rest.studio.v2.flow import FlowList from twilio.rest.studio.v2.flow_validate import FlowValidateList class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> FlowList: if self._flows is None: self._flows = FlowList(self) return self._flows @property - def flow_validate(self): - """ - :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateList - """ + def flow_validate(self) -> FlowValidateList: if self._flow_validate is None: self._flow_validate = FlowValidateList(self) return self._flow_validate - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/supersim/v1/__init__.py b/twilio/rest/supersim/v1/__init__.py index bd94987e74..127bb18d32 100644 --- a/twilio/rest/supersim/v1/__init__.py +++ b/twilio/rest/supersim/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -20,14 +27,13 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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,92 +44,64 @@ 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) -> EsimProfileList: if self._esim_profiles is None: self._esim_profiles = EsimProfileList(self) return self._esim_profiles @property - def fleets(self): - """ - :rtype: twilio.rest.supersim.v1.fleet.FleetList - """ + def fleets(self) -> FleetList: if self._fleets is None: self._fleets = FleetList(self) return self._fleets @property - def ip_commands(self): - """ - :rtype: twilio.rest.supersim.v1.ip_command.IpCommandList - """ + def ip_commands(self) -> IpCommandList: if self._ip_commands is None: self._ip_commands = IpCommandList(self) return self._ip_commands @property - def networks(self): - """ - :rtype: twilio.rest.supersim.v1.network.NetworkList - """ + def networks(self) -> NetworkList: if self._networks is None: self._networks = NetworkList(self) return self._networks @property - def network_access_profiles(self): - """ - :rtype: twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileList - """ + def network_access_profiles(self) -> NetworkAccessProfileList: if self._network_access_profiles is None: self._network_access_profiles = NetworkAccessProfileList(self) return self._network_access_profiles @property - def settings_updates(self): - """ - :rtype: twilio.rest.supersim.v1.settings_update.SettingsUpdateList - """ + def settings_updates(self) -> SettingsUpdateList: if self._settings_updates is None: self._settings_updates = SettingsUpdateList(self) return self._settings_updates @property - def sims(self): - """ - :rtype: twilio.rest.supersim.v1.sim.SimList - """ + def sims(self) -> SimList: if self._sims is None: self._sims = SimList(self) return self._sims @property - def sms_commands(self): - """ - :rtype: twilio.rest.supersim.v1.sms_command.SmsCommandList - """ + def sms_commands(self) -> SmsCommandList: if self._sms_commands is None: self._sms_commands = SmsCommandList(self) return self._sms_commands @property - def usage_records(self): - """ - :rtype: twilio.rest.supersim.v1.usage_record.UsageRecordList - """ + def usage_records(self) -> UsageRecordList: if self._usage_records is None: self._usage_records = UsageRecordList(self) return self._usage_records - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/sync/v1/__init__.py b/twilio/rest/sync/v1/__init__.py index aaf86f5c69..30eb1a59d9 100644 --- a/twilio/rest/sync/v1/__init__.py +++ b/twilio/rest/sync/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.sync.v1.service import ServiceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/taskrouter/v1/__init__.py b/twilio/rest/taskrouter/v1/__init__.py index 091bb146d5..e64e2bb66d 100644 --- a/twilio/rest/taskrouter/v1/__init__.py +++ b/twilio/rest/taskrouter/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.taskrouter.v1.workspace import WorkspaceList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> WorkspaceList: if self._workspaces is None: self._workspaces = WorkspaceList(self) return self._workspaces - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/trunking/v1/__init__.py b/twilio/rest/trunking/v1/__init__.py index 6f28ed7a7e..d0ff5427bd 100644 --- a/twilio/rest/trunking/v1/__init__.py +++ b/twilio/rest/trunking/v1/__init__.py @@ -1,41 +1,43 @@ -# 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.base.domain import Domain from twilio.rest.trunking.v1.trunk import TrunkList class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> TrunkList: if self._trunks is None: self._trunks = TrunkList(self) return self._trunks - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/trusthub/v1/__init__.py b/twilio/rest/trusthub/v1/__init__.py index 006bc0561d..4c0fb8cd24 100644 --- a/twilio/rest/trusthub/v1/__init__.py +++ b/twilio/rest/trusthub/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -18,14 +25,13 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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,74 +40,52 @@ 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) -> CustomerProfilesList: if self._customer_profiles is None: self._customer_profiles = CustomerProfilesList(self) return self._customer_profiles @property - def end_users(self): - """ - :rtype: twilio.rest.trusthub.v1.end_user.EndUserList - """ + def end_users(self) -> EndUserList: if self._end_users is None: self._end_users = EndUserList(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) -> EndUserTypeList: if self._end_user_types is None: self._end_user_types = EndUserTypeList(self) return self._end_user_types @property - def policies(self): - """ - :rtype: twilio.rest.trusthub.v1.policies.PoliciesList - """ + def policies(self) -> PoliciesList: if self._policies is None: self._policies = PoliciesList(self) return self._policies @property - def supporting_documents(self): - """ - :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentList - """ + def supporting_documents(self) -> SupportingDocumentList: if self._supporting_documents is None: self._supporting_documents = SupportingDocumentList(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) -> SupportingDocumentTypeList: if self._supporting_document_types is None: self._supporting_document_types = SupportingDocumentTypeList(self) return self._supporting_document_types @property - def trust_products(self): - """ - :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsList - """ + def trust_products(self) -> TrustProductsList: if self._trust_products is None: self._trust_products = TrustProductsList(self) return self._trust_products - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/verify/v2/__init__.py b/twilio/rest/verify/v2/__init__.py index 80ba37f9db..40944a93c0 100644 --- a/twilio/rest/verify/v2/__init__.py +++ b/twilio/rest/verify/v2/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain from twilio.rest.verify.v2.form import FormList from twilio.rest.verify.v2.safelist import SafelistList from twilio.rest.verify.v2.service import ServiceList @@ -17,80 +24,60 @@ class V2(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> FormList: if self._forms is None: self._forms = FormList(self) return self._forms @property - def safelist(self): - """ - :rtype: twilio.rest.verify.v2.safelist.SafelistList - """ + def safelist(self) -> SafelistList: if self._safelist is None: self._safelist = SafelistList(self) return self._safelist @property - def services(self): - """ - :rtype: twilio.rest.verify.v2.service.ServiceList - """ + def services(self) -> ServiceList: if self._services is None: self._services = ServiceList(self) return self._services @property - def verification_attempts(self): - """ - :rtype: twilio.rest.verify.v2.verification_attempt.VerificationAttemptList - """ + def templates(self) -> TemplateList: + if self._templates is None: + self._templates = TemplateList(self) + return self._templates + + @property + def verification_attempts(self) -> VerificationAttemptList: if self._verification_attempts is None: self._verification_attempts = VerificationAttemptList(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) -> VerificationAttemptsSummaryList: if self._verification_attempts_summary is None: self._verification_attempts_summary = VerificationAttemptsSummaryList(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 """ diff --git a/twilio/rest/video/v1/__init__.py b/twilio/rest/video/v1/__init__.py index d238ca7446..2c6fb7a88f 100644 --- a/twilio/rest/video/v1/__init__.py +++ b/twilio/rest/video/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -17,14 +24,13 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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,65 +38,46 @@ 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) -> CompositionList: if self._compositions is None: self._compositions = CompositionList(self) return self._compositions @property - def composition_hooks(self): - """ - :rtype: twilio.rest.video.v1.composition_hook.CompositionHookList - """ + def composition_hooks(self) -> CompositionHookList: if self._composition_hooks is None: self._composition_hooks = CompositionHookList(self) return self._composition_hooks @property - def composition_settings(self): - """ - :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsList - """ + def composition_settings(self) -> CompositionSettingsList: if self._composition_settings is None: self._composition_settings = CompositionSettingsList(self) return self._composition_settings @property - def recordings(self): - """ - :rtype: twilio.rest.video.v1.recording.RecordingList - """ + def recordings(self) -> RecordingList: if self._recordings is None: self._recordings = RecordingList(self) return self._recordings @property - def recording_settings(self): - """ - :rtype: twilio.rest.video.v1.recording_settings.RecordingSettingsList - """ + def recording_settings(self) -> RecordingSettingsList: if self._recording_settings is None: self._recording_settings = RecordingSettingsList(self) return self._recording_settings @property - def rooms(self): - """ - :rtype: twilio.rest.video.v1.room.RoomList - """ + def rooms(self) -> RoomList: if self._rooms is None: self._rooms = RoomList(self) return self._rooms - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/voice/v1/__init__.py b/twilio/rest/voice/v1/__init__.py index f82a89b00a..115a848303 100644 --- a/twilio/rest/voice/v1/__init__.py +++ b/twilio/rest/voice/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -17,14 +24,13 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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,65 +38,46 @@ 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) -> ArchivedCallList: if self._archived_calls is None: self._archived_calls = ArchivedCallList(self) return self._archived_calls @property - def byoc_trunks(self): - """ - :rtype: twilio.rest.voice.v1.byoc_trunk.ByocTrunkList - """ + def byoc_trunks(self) -> ByocTrunkList: if self._byoc_trunks is None: self._byoc_trunks = ByocTrunkList(self) return self._byoc_trunks @property - def connection_policies(self): - """ - :rtype: twilio.rest.voice.v1.connection_policy.ConnectionPolicyList - """ + def connection_policies(self) -> ConnectionPolicyList: if self._connection_policies is None: self._connection_policies = ConnectionPolicyList(self) return self._connection_policies @property - def dialing_permissions(self): - """ - :rtype: twilio.rest.voice.v1.dialing_permissions.DialingPermissionsList - """ + def dialing_permissions(self) -> DialingPermissionsList: if self._dialing_permissions is None: self._dialing_permissions = DialingPermissionsList(self) return self._dialing_permissions @property - def ip_records(self): - """ - :rtype: twilio.rest.voice.v1.ip_record.IpRecordList - """ + def ip_records(self) -> IpRecordList: if self._ip_records is None: self._ip_records = IpRecordList(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) -> SourceIpMappingList: if self._source_ip_mappings is None: self._source_ip_mappings = SourceIpMappingList(self) return self._source_ip_mappings - def __repr__(self): + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """ diff --git a/twilio/rest/wireless/v1/__init__.py b/twilio/rest/wireless/v1/__init__.py index c0b2cbdcdf..bbfcc58e19 100644 --- a/twilio/rest/wireless/v1/__init__.py +++ b/twilio/rest/wireless/v1/__init__.py @@ -1,12 +1,19 @@ -# 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.base.domain import Domain 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 @@ -15,60 +22,46 @@ class V1(Version): - def __init__(self, domain): + def __init__(self, domain: Domain): """ 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) -> CommandList: if self._commands is None: self._commands = CommandList(self) return self._commands @property - def rate_plans(self): - """ - :rtype: twilio.rest.wireless.v1.rate_plan.RatePlanList - """ + def rate_plans(self) -> RatePlanList: if self._rate_plans is None: self._rate_plans = RatePlanList(self) return self._rate_plans @property - def sims(self): - """ - :rtype: twilio.rest.wireless.v1.sim.SimList - """ + def sims(self) -> SimList: if self._sims is None: self._sims = SimList(self) return self._sims - def __repr__(self): + @property + def usage_records(self) -> UsageRecordList: + if self._usage_records is None: + self._usage_records = UsageRecordList(self) + return self._usage_records + + def __repr__(self) -> str: """ Provide a friendly representation - :returns: Machine friendly representation :rtype: str """