Skip to content

Commit

Permalink
feat: Pagination (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiachua committed Feb 15, 2023
1 parent babc14e commit e540798
Show file tree
Hide file tree
Showing 522 changed files with 62,318 additions and 17,160 deletions.
2 changes: 1 addition & 1 deletion twilio/rest/accounts/v1/__init__.py
@@ -1,6 +1,6 @@
"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Expand Down
54 changes: 31 additions & 23 deletions twilio/rest/accounts/v1/auth_token_promotion.py
@@ -1,6 +1,6 @@
"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Expand All @@ -21,7 +21,34 @@
from twilio.base.list_resource import ListResource
from twilio.base.version import Version

#


class AuthTokenPromotionList(ListResource):

def __init__(self, version: Version):
"""
Initialize the AuthTokenPromotionList
:param Version version: Version that contains the resource
:returns: twilio.accounts.v1.auth_token_promotion..AuthTokenPromotionList
:rtype: twilio.accounts.v1.auth_token_promotion..AuthTokenPromotionList
"""
super().__init__(version)

# Path Solution
self._solution = { }
self._uri = ''.format(**self._solution)




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


class AuthTokenPromotionContext(InstanceContext):
Expand Down Expand Up @@ -54,7 +81,7 @@ def __repr__(self):
:returns: Machine friendly representation
:rtype: str
"""
return '<Twilio.Api.V1.AuthTokenPromotionContext>'
return '<Twilio.Accounts.V1.AuthTokenPromotionContext>'



Expand Down Expand Up @@ -92,26 +119,7 @@ def __repr__(self):
:rtype: str
"""
context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items())
return '<Twilio.Api.V1.AuthTokenPromotionInstance {}>'.format(context)

return '<Twilio.Accounts.V1.AuthTokenPromotionInstance {}>'.format(context)


class AuthTokenPromotionList(ListResource):
def __init__(self, version: Version):
# TODO: needs autogenerated docs
super().__init__(version)

# Path Solution
self._solution = { }
self._uri = ''



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

49 changes: 41 additions & 8 deletions twilio/rest/accounts/v1/credential/__init__.py
@@ -1,6 +1,6 @@
"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Expand All @@ -21,29 +21,62 @@
from twilio.base.list_resource import ListResource
from twilio.base.version import Version

# from twilio.rest.credential.aws import AwsListInstancefrom twilio.rest.credential.public_key import PublicKeyListInstance


from twilio.rest.accounts.v1.credential.aws import AwsList
from twilio.rest.accounts.v1.credential.public_key import PublicKeyList


class CredentialList(ListResource):

def __init__(self, version: Version):
# TODO: needs autogenerated docs
"""
Initialize the CredentialList
:param Version version: Version that contains the resource
:returns: twilio.accounts.v1.credential..CredentialList
:rtype: twilio.accounts.v1.credential..CredentialList
"""
super().__init__(version)

# Path Solution
self._solution = { }
self._uri = '/Credentials'
self._uri = '/Credentials'.format(**self._solution)

self._aws = None
self._public_key = None


@property
def aws(self):
"""
Access the aws
:returns: twilio.rest.accounts.v1.credential.aws.AwsList
:rtype: twilio.rest.accounts.v1.credential.aws.AwsList
"""
if self._aws is None:
self._aws = AwsList(self._version)
return self.aws

@property
def public_key(self):
"""
Access the public_key
:returns: twilio.rest.accounts.v1.credential.public_key.PublicKeyList
:rtype: twilio.rest.accounts.v1.credential.public_key.PublicKeyList
"""
if self._public_key is None:
self._public_key = PublicKeyList(self._version)
return self.public_key

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




0 comments on commit e540798

Please sign in to comment.