Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: correct the python list resource name #652

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions twilio/rest/accounts/v1/auth_token_promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __repr__(self):



class AuthTokenPromotionListInstance(ListResource):
class AuthTokenPromotionList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -105,13 +105,13 @@ def __init__(self, version: Version):
self._solution = { }
self._uri = ''



def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.AuthTokenPromotionListInstance>'
return '<Twilio.Api.V1.AuthTokenPromotionList>'

6 changes: 3 additions & 3 deletions twilio/rest/accounts/v1/credential/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@



class CredentialListInstance(ListResource):
class CredentialList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -37,13 +37,13 @@ def __init__(self, version: Version):

self._aws = None
self._public_key = None


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.CredentialListInstance>'
return '<Twilio.Api.V1.CredentialList>'

10 changes: 5 additions & 5 deletions twilio/rest/accounts/v1/credential/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __repr__(self):



class AwsListInstance(ListResource):
class AwsList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -135,7 +135,7 @@ def __init__(self, version: Version):
self._solution = { }
self._uri = '/Credentials/AWS'


"""
def create(self, body):
data = values.of({
Expand All @@ -147,7 +147,7 @@ def create(self, body):
return AwsInstance(self._version, payload, )

"""

"""
def page(self, page_size):

Expand All @@ -159,13 +159,13 @@ def page(self, page_size):

return AwsPage(self._version, payload, )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.AwsListInstance>'
return '<Twilio.Api.V1.AwsList>'

10 changes: 5 additions & 5 deletions twilio/rest/accounts/v1/credential/public_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __repr__(self):



class PublicKeyListInstance(ListResource):
class PublicKeyList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -135,7 +135,7 @@ def __init__(self, version: Version):
self._solution = { }
self._uri = '/Credentials/PublicKeys'


"""
def create(self, body):
data = values.of({
Expand All @@ -147,7 +147,7 @@ def create(self, body):
return PublicKeyInstance(self._version, payload, )

"""

"""
def page(self, page_size):

Expand All @@ -159,13 +159,13 @@ def page(self, page_size):

return PublicKeyPage(self._version, payload, )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.PublicKeyListInstance>'
return '<Twilio.Api.V1.PublicKeyList>'

6 changes: 3 additions & 3 deletions twilio/rest/accounts/v1/secondary_auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __repr__(self):



class SecondaryAuthTokenListInstance(ListResource):
class SecondaryAuthTokenList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -110,13 +110,13 @@ def __init__(self, version: Version):
self._solution = { }
self._uri = ''



def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.SecondaryAuthTokenListInstance>'
return '<Twilio.Api.V1.SecondaryAuthTokenList>'

10 changes: 5 additions & 5 deletions twilio/rest/api/v2010/account/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __repr__(self):



class AccountListInstance(ListResource):
class AccountList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -223,7 +223,7 @@ def __init__(self, version: Version):
self._solution = { }
self._uri = '/Accounts.json'


"""
def create(self, body):
data = values.of({
Expand All @@ -235,7 +235,7 @@ def create(self, body):
return AccountInstance(self._version, payload, )

"""

"""
def page(self, friendly_name, status, page_size):

Expand All @@ -247,13 +247,13 @@ def page(self, friendly_name, status, page_size):

return AccountPage(self._version, payload, )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.AccountListInstance>'
return '<Twilio.Api.V2010.AccountList>'

10 changes: 5 additions & 5 deletions twilio/rest/api/v2010/account/address/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __repr__(self):



class AddressListInstance(ListResource):
class AddressList(ListResource):
def __init__(self, version: Version, account_sid: str):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -149,7 +149,7 @@ def __init__(self, version: Version, account_sid: str):
self._solution = { 'account_sid': account_sid, }
self._uri = '/Accounts/${account_sid}/Addresses.json'


"""
def create(self, body):
data = values.of({
Expand All @@ -161,7 +161,7 @@ def create(self, body):
return AddressInstance(self._version, payload, account_sid=self._solution['account_sid'])

"""

"""
def page(self, customer_name, friendly_name, iso_country, page_size):

Expand All @@ -173,13 +173,13 @@ def page(self, customer_name, friendly_name, iso_country, page_size):

return AddressPage(self._version, payload, account_sid=self._solution['account_sid'], )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.AddressListInstance>'
return '<Twilio.Api.V2010.AddressList>'

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@



class DependentPhoneNumberListInstance(ListResource):
class DependentPhoneNumberList(ListResource):
def __init__(self, version: Version, account_sid: str, address_sid: str):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -37,7 +37,7 @@ def __init__(self, version: Version, account_sid: str, address_sid: str):
self._solution = { 'account_sid': account_sid, 'address_sid': address_sid, }
self._uri = '/Accounts/${account_sid}/Addresses/${address_sid}/DependentPhoneNumbers.json'


"""
def page(self, page_size):

Expand All @@ -49,13 +49,13 @@ def page(self, page_size):

return DependentPhoneNumberPage(self._version, payload, account_sid=self._solution['account_sid'], address_sid=self._solution['address_sid'], )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.DependentPhoneNumberListInstance>'
return '<Twilio.Api.V2010.DependentPhoneNumberList>'

10 changes: 5 additions & 5 deletions twilio/rest/api/v2010/account/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __repr__(self):



class ApplicationListInstance(ListResource):
class ApplicationList(ListResource):
def __init__(self, version: Version, account_sid: str):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -150,7 +150,7 @@ def __init__(self, version: Version, account_sid: str):
self._solution = { 'account_sid': account_sid, }
self._uri = '/Accounts/${account_sid}/Applications.json'


"""
def create(self, body):
data = values.of({
Expand All @@ -162,7 +162,7 @@ def create(self, body):
return ApplicationInstance(self._version, payload, account_sid=self._solution['account_sid'])

"""

"""
def page(self, friendly_name, page_size):

Expand All @@ -174,13 +174,13 @@ def page(self, friendly_name, page_size):

return ApplicationPage(self._version, payload, account_sid=self._solution['account_sid'], )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.ApplicationListInstance>'
return '<Twilio.Api.V2010.ApplicationList>'

8 changes: 4 additions & 4 deletions twilio/rest/api/v2010/account/authorized_connect_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __repr__(self):



class AuthorizedConnectAppListInstance(ListResource):
class AuthorizedConnectAppList(ListResource):
def __init__(self, version: Version, account_sid: str):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -114,7 +114,7 @@ def __init__(self, version: Version, account_sid: str):
self._solution = { 'account_sid': account_sid, }
self._uri = '/Accounts/${account_sid}/AuthorizedConnectApps.json'


"""
def page(self, page_size):

Expand All @@ -126,13 +126,13 @@ def page(self, page_size):

return AuthorizedConnectAppPage(self._version, payload, account_sid=self._solution['account_sid'], )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.AuthorizedConnectAppListInstance>'
return '<Twilio.Api.V2010.AuthorizedConnectAppList>'

Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __repr__(self):



class AvailablePhoneNumberCountryListInstance(ListResource):
class AvailablePhoneNumberCountryList(ListResource):
def __init__(self, version: Version, account_sid: str):
# TODO: needs autogenerated docs
super().__init__(version)
Expand All @@ -137,7 +137,7 @@ def __init__(self, version: Version, account_sid: str):
self._solution = { 'account_sid': account_sid, }
self._uri = '/Accounts/${account_sid}/AvailablePhoneNumbers.json'


"""
def page(self, page_size):

Expand All @@ -149,13 +149,13 @@ def page(self, page_size):

return AvailablePhoneNumberCountryPage(self._version, payload, account_sid=self._solution['account_sid'], )
"""


def __repr__(self):
"""
Provide a friendly representation
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V2010.AvailablePhoneNumberCountryListInstance>'
return '<Twilio.Api.V2010.AvailablePhoneNumberCountryList>'

Loading