diff --git a/CHANGES.md b/CHANGES.md
index 2f9a854a8e..71f2870ef6 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -3,6 +3,26 @@ twilio-python Changelog
Here you can see the full list of changes between each twilio-python release.
+[2021-02-24] Version 6.53.0
+---------------------------
+**Library - Chore**
+- [PR #561](https://github.com/twilio/twilio-python/pull/561): removed file exec to get version. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
+
+**Events**
+- Update description of types in the create sink resource
+
+**Messaging**
+- Add WA template header and footer
+- Remove A2P campaign and use cases API **(breaking change)**
+- Add number_registration_status field to read and fetch campaign responses
+
+**Trusthub**
+- Make all resources public
+
+**Verify**
+- Verify List Attempts API endpoints added.
+
+
[2021-02-10] Version 6.52.0
---------------------------
**Library - Docs**
diff --git a/docs/build/doctrees/CHANGES.doctree b/docs/build/doctrees/CHANGES.doctree
index 3b61a98fca..b66d8922e2 100644
Binary files a/docs/build/doctrees/CHANGES.doctree and b/docs/build/doctrees/CHANGES.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.doctree
index 7debe9418b..4929855e90 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.events.v1.subscription.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.events.v1.subscription.doctree
index 02c939cb1e..d11c5e407f 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.events.v1.subscription.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.events.v1.subscription.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.doctree
index b006289346..4cf8c5aab1 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.v1.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.v1.doctree
index d53ace1bd5..1dc02d4ccb 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.v1.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.messaging.v1.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.doctree
new file mode 100644
index 0000000000..26cb0d0d38
Binary files /dev/null and b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.customer_profiles.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.customer_profiles.doctree
new file mode 100644
index 0000000000..85e8516b61
Binary files /dev/null and b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.customer_profiles.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.doctree
new file mode 100644
index 0000000000..c34e92bedb
Binary files /dev/null and b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.trust_products.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.trust_products.doctree
new file mode 100644
index 0000000000..17590bac36
Binary files /dev/null and b/docs/build/doctrees/docs/source/_rst/twilio.rest.trusthub.v1.trust_products.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.doctree
index 78a55a93d5..fb05de18ba 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.doctree differ
diff --git a/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.v2.doctree b/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.v2.doctree
index a579c9b09e..51fefae950 100644
Binary files a/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.v2.doctree and b/docs/build/doctrees/docs/source/_rst/twilio.rest.verify.v2.doctree differ
diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle
index f7f72f65e6..257bc0b553 100644
Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ
diff --git a/docs/build/doctrees/index.doctree b/docs/build/doctrees/index.doctree
index 3c2d6db9f7..bbaf09cad3 100644
Binary files a/docs/build/doctrees/index.doctree and b/docs/build/doctrees/index.doctree differ
diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo
index eb5681e4ea..51c41ec7f0 100644
--- a/docs/build/html/.buildinfo
+++ b/docs/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 1b5c3345556fbd8192a7730a0b738e14
+config: 9bd51efff40de6b71525ae2bc4a40ac6
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/build/html/AUTHORS.html b/docs/build/html/AUTHORS.html
index 6c4e810582..369a0541ad 100644
--- a/docs/build/html/AUTHORS.html
+++ b/docs/build/html/AUTHORS.html
@@ -10,7 +10,7 @@
})(window,document,'script','dataLayer','GTM-MWRD6S');
-
[docs]classUseCaseList(ListResource):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
-
- def__init__(self,version):
- """
- Initialize the UseCaseList
-
- :param Version version: Version that contains the resource
-
- :returns: twilio.rest.messaging.v1.use_case.UseCaseList
- :rtype: twilio.rest.messaging.v1.use_case.UseCaseList
- """
- super(UseCaseList,self).__init__(version)
-
- # Path Solution
- self._solution={}
- self._uri='/a2p/UseCases'.format(**self._solution)
-
-
[docs]defstream(self,limit=None,page_size=None):
- """
- Streams UseCaseInstance records from the API as a generator stream.
- This operation lazily loads records as efficiently as possible until the limit
- is reached.
- The results are returned as a generator, so this operation is memory efficient.
-
- :param int limit: Upper limit for the number of records to return. stream()
- guarantees to never return more than limit. Default is no limit
- :param int page_size: Number of records to fetch per request, when not set will use
- the default value of 50 records. If no page_size is defined
- but a limit is defined, stream() will attempt to read the
- limit with the most efficient page size, i.e. min(limit, 1000)
-
- :returns: Generator that will yield up to limit results
- :rtype: list[twilio.rest.messaging.v1.use_case.UseCaseInstance]
- """
- limits=self._version.read_limits(limit,page_size)
-
- page=self.page(page_size=limits['page_size'],)
-
- returnself._version.stream(page,limits['limit'])
-
-
[docs]deflist(self,limit=None,page_size=None):
- """
- Lists UseCaseInstance records from the API as a list.
- Unlike stream(), this operation is eager and will load `limit` records into
- memory before returning.
-
- :param int limit: Upper limit for the number of records to return. list() guarantees
- never to return more than limit. Default is no limit
- :param int page_size: Number of records to fetch per request, when not set will use
- the default value of 50 records. If no page_size is defined
- but a limit is defined, list() will attempt to read the limit
- with the most efficient page size, i.e. min(limit, 1000)
-
- :returns: Generator that will yield up to limit results
- :rtype: list[twilio.rest.messaging.v1.use_case.UseCaseInstance]
- """
- returnlist(self.stream(limit=limit,page_size=page_size,))
-
-
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
- page_size=values.unset):
- """
- Retrieve a single page of UseCaseInstance records from the API.
- Request is executed immediately
-
- :param str page_token: PageToken provided by the API
- :param int page_number: Page Number, this value is simply for client state
- :param int page_size: Number of records to return, defaults to 50
-
- :returns: Page of UseCaseInstance
- :rtype: twilio.rest.messaging.v1.use_case.UseCasePage
- """
- data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
-
- response=self._version.page(method='GET',uri=self._uri,params=data,)
-
- returnUseCasePage(self._version,response,self._solution)
-
-
[docs]defget_page(self,target_url):
- """
- Retrieve a specific page of UseCaseInstance records from the API.
- Request is executed immediately
-
- :param str target_url: API-generated URL for the requested results page
-
- :returns: Page of UseCaseInstance
- :rtype: twilio.rest.messaging.v1.use_case.UseCasePage
- """
- response=self._version.domain.twilio.request(
- 'GET',
- target_url,
- )
-
- returnUseCasePage(self._version,response,self._solution)
[docs]classUseCasePage(Page):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
-
- def__init__(self,version,response,solution):
- """
- Initialize the UseCasePage
-
- :param Version version: Version that contains the resource
- :param Response response: Response from the API
-
- :returns: twilio.rest.messaging.v1.use_case.UseCasePage
- :rtype: twilio.rest.messaging.v1.use_case.UseCasePage
- """
- super(UseCasePage,self).__init__(version,response)
-
- # Path Solution
- self._solution=solution
-
-
[docs]defget_instance(self,payload):
- """
- Build an instance of UseCaseInstance
-
- :param dict payload: Payload response from the API
-
- :returns: twilio.rest.messaging.v1.use_case.UseCaseInstance
- :rtype: twilio.rest.messaging.v1.use_case.UseCaseInstance
- """
- returnUseCaseInstance(self._version,payload,)
[docs]classCustomerProfilesList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the CustomerProfilesList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesList
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesList
+ """
+ super(CustomerProfilesList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/CustomerProfiles'.format(**self._solution)
+
+
[docs]defcreate(self,friendly_name,email,policy_sid,
+ status_callback=values.unset):
+ """
+ Create the CustomerProfilesInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+ :param unicode policy_sid: The unique string of a policy.
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+
+ :returns: The created CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ data=values.of({
+ 'FriendlyName':friendly_name,
+ 'Email':email,
+ 'PolicySid':policy_sid,
+ 'StatusCallback':status_callback,
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnCustomerProfilesInstance(self._version,payload,)
+
+
[docs]defstream(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,limit=None,page_size=None):
+ """
+ Streams CustomerProfilesInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param CustomerProfilesInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(
+ status=status,
+ friendly_name=friendly_name,
+ policy_sid=policy_sid,
+ page_size=limits['page_size'],
+ )
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,limit=None,page_size=None):
+ """
+ Lists CustomerProfilesInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param CustomerProfilesInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance]
+ """
+ returnlist(self.stream(
+ status=status,
+ friendly_name=friendly_name,
+ policy_sid=policy_sid,
+ limit=limit,
+ page_size=page_size,
+ ))
+
+
[docs]defpage(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,page_token=values.unset,
+ page_number=values.unset,page_size=values.unset):
+ """
+ Retrieve a single page of CustomerProfilesInstance records from the API.
+ Request is executed immediately
+
+ :param CustomerProfilesInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesPage
+ """
+ data=values.of({
+ 'Status':status,
+ 'FriendlyName':friendly_name,
+ 'PolicySid':policy_sid,
+ 'PageToken':page_token,
+ 'Page':page_number,
+ 'PageSize':page_size,
+ })
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnCustomerProfilesPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of CustomerProfilesInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnCustomerProfilesPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a CustomerProfilesContext
+
+ :param sid: The unique string that identifies the resource.
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesContext
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesContext
+ """
+ returnCustomerProfilesContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a CustomerProfilesContext
+
+ :param sid: The unique string that identifies the resource.
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesContext
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesContext
+ """
+ returnCustomerProfilesContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.CustomerProfilesList>'
+
+
+
[docs]classCustomerProfilesPage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the CustomerProfilesPage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesPage
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesPage
+ """
+ super(CustomerProfilesPage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of CustomerProfilesInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ returnCustomerProfilesInstance(self._version,payload,)
[docs]defupdate(self,status=values.unset,status_callback=values.unset,
+ friendly_name=values.unset,email=values.unset):
+ """
+ Update the CustomerProfilesInstance
+
+ :param CustomerProfilesInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+
+ :returns: The updated CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ data=values.of({
+ 'Status':status,
+ 'StatusCallback':status_callback,
+ 'FriendlyName':friendly_name,
+ 'Email':email,
+ })
+
+ payload=self._version.update(method='POST',uri=self._uri,data=data,)
+
+ returnCustomerProfilesInstance(self._version,payload,sid=self._solution['sid'],)
+
+ def__init__(self,version,payload,sid=None):
+ """
+ Initialize the CustomerProfilesInstance
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ super(CustomerProfilesInstance,self).__init__(version)
+
+ # Marshaled Properties
+ self._properties={
+ 'sid':payload.get('sid'),
+ 'account_sid':payload.get('account_sid'),
+ 'policy_sid':payload.get('policy_sid'),
+ 'friendly_name':payload.get('friendly_name'),
+ 'status':payload.get('status'),
+ 'valid_until':deserialize.iso8601_datetime(payload.get('valid_until')),
+ 'email':payload.get('email'),
+ 'status_callback':payload.get('status_callback'),
+ 'date_created':deserialize.iso8601_datetime(payload.get('date_created')),
+ 'date_updated':deserialize.iso8601_datetime(payload.get('date_updated')),
+ 'url':payload.get('url'),
+ 'links':payload.get('links'),
+ }
+
+ # Context
+ self._context=None
+ self._solution={'sid':sidorself._properties['sid'],}
+
+ @property
+ def_proxy(self):
+ """
+ Generate an instance context for the instance, the context is capable of
+ performing various actions. All instance actions are proxied to the context
+
+ :returns: CustomerProfilesContext for this CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesContext
+ """
+ ifself._contextisNone:
+ self._context=CustomerProfilesContext(self._version,sid=self._solution['sid'],)
+ returnself._context
+
+ @property
+ defsid(self):
+ """
+ :returns: The unique string that identifies the resource.
+ :rtype: unicode
+ """
+ returnself._properties['sid']
+
+ @property
+ defaccount_sid(self):
+ """
+ :returns: The SID of the Account that created the resource
+ :rtype: unicode
+ """
+ returnself._properties['account_sid']
+
+ @property
+ defpolicy_sid(self):
+ """
+ :returns: The unique string of a policy.
+ :rtype: unicode
+ """
+ returnself._properties['policy_sid']
+
+ @property
+ deffriendly_name(self):
+ """
+ :returns: The string that you assigned to describe the resource
+ :rtype: unicode
+ """
+ returnself._properties['friendly_name']
+
+ @property
+ defstatus(self):
+ """
+ :returns: The verification status of the Customer-Profile resource
+ :rtype: CustomerProfilesInstance.Status
+ """
+ returnself._properties['status']
+
+ @property
+ defvalid_until(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource will be valid until.
+ :rtype: datetime
+ """
+ returnself._properties['valid_until']
+
+ @property
+ defemail(self):
+ """
+ :returns: The email address
+ :rtype: unicode
+ """
+ returnself._properties['email']
+
+ @property
+ defstatus_callback(self):
+ """
+ :returns: The URL we call to inform your application of status changes.
+ :rtype: unicode
+ """
+ returnself._properties['status_callback']
+
+ @property
+ defdate_created(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was created
+ :rtype: datetime
+ """
+ returnself._properties['date_created']
+
+ @property
+ defdate_updated(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was last updated
+ :rtype: datetime
+ """
+ returnself._properties['date_updated']
+
+ @property
+ defurl(self):
+ """
+ :returns: The absolute URL of the Customer-Profile resource
+ :rtype: unicode
+ """
+ returnself._properties['url']
+
+ @property
+ deflinks(self):
+ """
+ :returns: The URLs of the Assigned Items of the Customer-Profile resource
+ :rtype: unicode
+ """
+ returnself._properties['links']
+
+
[docs]deffetch(self):
+ """
+ Fetch the CustomerProfilesInstance
+
+ :returns: The fetched CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ returnself._proxy.fetch()
+
+
[docs]defupdate(self,status=values.unset,status_callback=values.unset,
+ friendly_name=values.unset,email=values.unset):
+ """
+ Update the CustomerProfilesInstance
+
+ :param CustomerProfilesInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+
+ :returns: The updated CustomerProfilesInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.CustomerProfilesInstance
+ """
+ returnself._proxy.update(
+ status=status,
+ status_callback=status_callback,
+ friendly_name=friendly_name,
+ email=email,
+ )
[docs]classCustomerProfilesChannelEndpointAssignmentList(ListResource):
+
+ def__init__(self,version,customer_profile_sid):
+ """
+ Initialize the CustomerProfilesChannelEndpointAssignmentList
+
+ :param Version version: Version that contains the resource
+ :param customer_profile_sid: The unique string that identifies the CustomerProfile resource.
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentList
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentList
+ """
+ super(CustomerProfilesChannelEndpointAssignmentList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'customer_profile_sid':customer_profile_sid,}
+ self._uri='/CustomerProfiles/{customer_profile_sid}/ChannelEndpointAssignments'.format(**self._solution)
+
+
[docs]defcreate(self,channel_endpoint_type,channel_endpoint_sid):
+ """
+ Create the CustomerProfilesChannelEndpointAssignmentInstance
+
+ :param unicode channel_endpoint_type: The type of channel endpoint
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+
+ :returns: The created CustomerProfilesChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentInstance
+ """
+ data=values.of({
+ 'ChannelEndpointType':channel_endpoint_type,
+ 'ChannelEndpointSid':channel_endpoint_sid,
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnCustomerProfilesChannelEndpointAssignmentInstance(
+ self._version,
+ payload,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ )
+
+
[docs]defstream(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,limit=None,page_size=None):
+ """
+ Streams CustomerProfilesChannelEndpointAssignmentInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(
+ channel_endpoint_sid=channel_endpoint_sid,
+ channel_endpoint_sids=channel_endpoint_sids,
+ page_size=limits['page_size'],
+ )
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,limit=None,page_size=None):
+ """
+ Lists CustomerProfilesChannelEndpointAssignmentInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentInstance]
+ """
+ returnlist(self.stream(
+ channel_endpoint_sid=channel_endpoint_sid,
+ channel_endpoint_sids=channel_endpoint_sids,
+ limit=limit,
+ page_size=page_size,
+ ))
+
+
[docs]defpage(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,page_token=values.unset,
+ page_number=values.unset,page_size=values.unset):
+ """
+ Retrieve a single page of CustomerProfilesChannelEndpointAssignmentInstance records from the API.
+ Request is executed immediately
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of CustomerProfilesChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentPage
+ """
+ data=values.of({
+ 'ChannelEndpointSid':channel_endpoint_sid,
+ 'ChannelEndpointSids':channel_endpoint_sids,
+ 'PageToken':page_token,
+ 'Page':page_number,
+ 'PageSize':page_size,
+ })
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnCustomerProfilesChannelEndpointAssignmentPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of CustomerProfilesChannelEndpointAssignmentInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of CustomerProfilesChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnCustomerProfilesChannelEndpointAssignmentPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a CustomerProfilesChannelEndpointAssignmentContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentContext
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_channel_endpoint_assignment.CustomerProfilesChannelEndpointAssignmentContext
+ """
+ returnCustomerProfilesChannelEndpointAssignmentContext(
+ self._version,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ sid=sid,
+ )
[docs]classCustomerProfilesEntityAssignmentsList(ListResource):
+
+ def__init__(self,version,customer_profile_sid):
+ """
+ Initialize the CustomerProfilesEntityAssignmentsList
+
+ :param Version version: Version that contains the resource
+ :param customer_profile_sid: The unique string that identifies the CustomerProfile resource.
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsList
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsList
+ """
+ super(CustomerProfilesEntityAssignmentsList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'customer_profile_sid':customer_profile_sid,}
+ self._uri='/CustomerProfiles/{customer_profile_sid}/EntityAssignments'.format(**self._solution)
+
+
[docs]defcreate(self,object_sid):
+ """
+ Create the CustomerProfilesEntityAssignmentsInstance
+
+ :param unicode object_sid: The sid of an object bag
+
+ :returns: The created CustomerProfilesEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsInstance
+ """
+ data=values.of({'ObjectSid':object_sid,})
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnCustomerProfilesEntityAssignmentsInstance(
+ self._version,
+ payload,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ )
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams CustomerProfilesEntityAssignmentsInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists CustomerProfilesEntityAssignmentsInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of CustomerProfilesEntityAssignmentsInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of CustomerProfilesEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnCustomerProfilesEntityAssignmentsPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of CustomerProfilesEntityAssignmentsInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of CustomerProfilesEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnCustomerProfilesEntityAssignmentsPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a CustomerProfilesEntityAssignmentsContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsContext
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_entity_assignments.CustomerProfilesEntityAssignmentsContext
+ """
+ returnCustomerProfilesEntityAssignmentsContext(
+ self._version,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ sid=sid,
+ )
[docs]classCustomerProfilesEvaluationsList(ListResource):
+
+ def__init__(self,version,customer_profile_sid):
+ """
+ Initialize the CustomerProfilesEvaluationsList
+
+ :param Version version: Version that contains the resource
+ :param customer_profile_sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsList
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsList
+ """
+ super(CustomerProfilesEvaluationsList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'customer_profile_sid':customer_profile_sid,}
+ self._uri='/CustomerProfiles/{customer_profile_sid}/Evaluations'.format(**self._solution)
+
+
[docs]defcreate(self,policy_sid):
+ """
+ Create the CustomerProfilesEvaluationsInstance
+
+ :param unicode policy_sid: The unique string of a policy
+
+ :returns: The created CustomerProfilesEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsInstance
+ """
+ data=values.of({'PolicySid':policy_sid,})
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnCustomerProfilesEvaluationsInstance(
+ self._version,
+ payload,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ )
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams CustomerProfilesEvaluationsInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists CustomerProfilesEvaluationsInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of CustomerProfilesEvaluationsInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of CustomerProfilesEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnCustomerProfilesEvaluationsPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of CustomerProfilesEvaluationsInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of CustomerProfilesEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnCustomerProfilesEvaluationsPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a CustomerProfilesEvaluationsContext
+
+ :param sid: The unique string that identifies the Evaluation resource
+
+ :returns: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsContext
+ :rtype: twilio.rest.trusthub.v1.customer_profiles.customer_profiles_evaluations.CustomerProfilesEvaluationsContext
+ """
+ returnCustomerProfilesEvaluationsContext(
+ self._version,
+ customer_profile_sid=self._solution['customer_profile_sid'],
+ sid=sid,
+ )
[docs]classEndUserList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the EndUserList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserList
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserList
+ """
+ super(EndUserList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/EndUsers'.format(**self._solution)
+
+
[docs]defcreate(self,friendly_name,type,attributes=values.unset):
+ """
+ Create the EndUserInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode type: The type of end user of the Bundle resource
+ :param dict attributes: The set of parameters that compose the End User resource
+
+ :returns: The created EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ data=values.of({
+ 'FriendlyName':friendly_name,
+ 'Type':type,
+ 'Attributes':serialize.object(attributes),
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnEndUserInstance(self._version,payload,)
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams EndUserInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.end_user.EndUserInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists EndUserInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.end_user.EndUserInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of EndUserInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnEndUserPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of EndUserInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnEndUserPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a EndUserContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserContext
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserContext
+ """
+ returnEndUserContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a EndUserContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserContext
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserContext
+ """
+ returnEndUserContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.EndUserList>'
+
+
+
[docs]classEndUserPage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the EndUserPage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserPage
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserPage
+ """
+ super(EndUserPage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of EndUserInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ returnEndUserInstance(self._version,payload,)
[docs]defupdate(self,friendly_name=values.unset,attributes=values.unset):
+ """
+ Update the EndUserInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param dict attributes: The set of parameters that compose the End User resource
+
+ :returns: The updated EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ data=values.of({'FriendlyName':friendly_name,'Attributes':serialize.object(attributes),})
+
+ payload=self._version.update(method='POST',uri=self._uri,data=data,)
+
+ returnEndUserInstance(self._version,payload,sid=self._solution['sid'],)
[docs]classEndUserInstance(InstanceResource):
+
+ def__init__(self,version,payload,sid=None):
+ """
+ Initialize the EndUserInstance
+
+ :returns: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ super(EndUserInstance,self).__init__(version)
+
+ # Marshaled Properties
+ self._properties={
+ 'sid':payload.get('sid'),
+ 'account_sid':payload.get('account_sid'),
+ 'friendly_name':payload.get('friendly_name'),
+ 'type':payload.get('type'),
+ 'attributes':payload.get('attributes'),
+ 'date_created':deserialize.iso8601_datetime(payload.get('date_created')),
+ 'date_updated':deserialize.iso8601_datetime(payload.get('date_updated')),
+ 'url':payload.get('url'),
+ }
+
+ # Context
+ self._context=None
+ self._solution={'sid':sidorself._properties['sid'],}
+
+ @property
+ def_proxy(self):
+ """
+ Generate an instance context for the instance, the context is capable of
+ performing various actions. All instance actions are proxied to the context
+
+ :returns: EndUserContext for this EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserContext
+ """
+ ifself._contextisNone:
+ self._context=EndUserContext(self._version,sid=self._solution['sid'],)
+ returnself._context
+
+ @property
+ defsid(self):
+ """
+ :returns: The unique string that identifies the resource
+ :rtype: unicode
+ """
+ returnself._properties['sid']
+
+ @property
+ defaccount_sid(self):
+ """
+ :returns: The SID of the Account that created the resource
+ :rtype: unicode
+ """
+ returnself._properties['account_sid']
+
+ @property
+ deffriendly_name(self):
+ """
+ :returns: The string that you assigned to describe the resource
+ :rtype: unicode
+ """
+ returnself._properties['friendly_name']
+
+ @property
+ deftype(self):
+ """
+ :returns: The type of end user of the Bundle resource
+ :rtype: unicode
+ """
+ returnself._properties['type']
+
+ @property
+ defattributes(self):
+ """
+ :returns: The set of parameters that compose the End Users resource
+ :rtype: dict
+ """
+ returnself._properties['attributes']
+
+ @property
+ defdate_created(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was created
+ :rtype: datetime
+ """
+ returnself._properties['date_created']
+
+ @property
+ defdate_updated(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was last updated
+ :rtype: datetime
+ """
+ returnself._properties['date_updated']
+
+ @property
+ defurl(self):
+ """
+ :returns: The absolute URL of the End User resource
+ :rtype: unicode
+ """
+ returnself._properties['url']
+
+
[docs]deffetch(self):
+ """
+ Fetch the EndUserInstance
+
+ :returns: The fetched EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ returnself._proxy.fetch()
+
+
[docs]defupdate(self,friendly_name=values.unset,attributes=values.unset):
+ """
+ Update the EndUserInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param dict attributes: The set of parameters that compose the End User resource
+
+ :returns: The updated EndUserInstance
+ :rtype: twilio.rest.trusthub.v1.end_user.EndUserInstance
+ """
+ returnself._proxy.update(friendly_name=friendly_name,attributes=attributes,)
[docs]classEndUserTypeList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the EndUserTypeList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.end_user_type.EndUserTypeList
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypeList
+ """
+ super(EndUserTypeList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/EndUserTypes'.format(**self._solution)
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams EndUserTypeInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.end_user_type.EndUserTypeInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists EndUserTypeInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.end_user_type.EndUserTypeInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of EndUserTypeInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of EndUserTypeInstance
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypePage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnEndUserTypePage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of EndUserTypeInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of EndUserTypeInstance
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypePage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnEndUserTypePage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a EndUserTypeContext
+
+ :param sid: The unique string that identifies the End-User Type resource
+
+ :returns: twilio.rest.trusthub.v1.end_user_type.EndUserTypeContext
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypeContext
+ """
+ returnEndUserTypeContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a EndUserTypeContext
+
+ :param sid: The unique string that identifies the End-User Type resource
+
+ :returns: twilio.rest.trusthub.v1.end_user_type.EndUserTypeContext
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypeContext
+ """
+ returnEndUserTypeContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.EndUserTypeList>'
+
+
+
[docs]classEndUserTypePage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the EndUserTypePage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.end_user_type.EndUserTypePage
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypePage
+ """
+ super(EndUserTypePage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of EndUserTypeInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.end_user_type.EndUserTypeInstance
+ :rtype: twilio.rest.trusthub.v1.end_user_type.EndUserTypeInstance
+ """
+ returnEndUserTypeInstance(self._version,payload,)
[docs]classPoliciesList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the PoliciesList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.policies.PoliciesList
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesList
+ """
+ super(PoliciesList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/Policies'.format(**self._solution)
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams PoliciesInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.policies.PoliciesInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists PoliciesInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.policies.PoliciesInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of PoliciesInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of PoliciesInstance
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnPoliciesPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of PoliciesInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of PoliciesInstance
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnPoliciesPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a PoliciesContext
+
+ :param sid: The unique string that identifies the Policy resource
+
+ :returns: twilio.rest.trusthub.v1.policies.PoliciesContext
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesContext
+ """
+ returnPoliciesContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a PoliciesContext
+
+ :param sid: The unique string that identifies the Policy resource
+
+ :returns: twilio.rest.trusthub.v1.policies.PoliciesContext
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesContext
+ """
+ returnPoliciesContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.PoliciesList>'
+
+
+
[docs]classPoliciesPage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the PoliciesPage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.policies.PoliciesPage
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesPage
+ """
+ super(PoliciesPage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of PoliciesInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.policies.PoliciesInstance
+ :rtype: twilio.rest.trusthub.v1.policies.PoliciesInstance
+ """
+ returnPoliciesInstance(self._version,payload,)
+
+
+
\ No newline at end of file
diff --git a/docs/build/html/_modules/twilio/rest/messaging/v1/campaign.html b/docs/build/html/_modules/twilio/rest/trusthub/v1/supporting_document.html
similarity index 53%
rename from docs/build/html/_modules/twilio/rest/messaging/v1/campaign.html
rename to docs/build/html/_modules/twilio/rest/trusthub/v1/supporting_document.html
index 540d55bdd8..9f74c50e09 100644
--- a/docs/build/html/_modules/twilio/rest/messaging/v1/campaign.html
+++ b/docs/build/html/_modules/twilio/rest/trusthub/v1/supporting_document.html
@@ -10,7 +10,7 @@
})(window,document,'script','dataLayer','GTM-MWRD6S');
-twilio.rest.messaging.v1.campaign — twilio-python 6.52.0 documentation
+twilio.rest.trusthub.v1.supporting_document — twilio-python 6.53.0 documentation
@@ -27,7 +27,7 @@
-
Source code for twilio.rest.messaging.v1.campaign
+
Source code for twilio.rest.trusthub.v1.supporting_document
# coding=utf-8r"""This code was generated by
@@ -45,28 +45,47 @@
Source code for twilio.rest.messaging.v1.campaign
from twilio.base.pageimportPage
-
[docs]classCampaignList(ListResource):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
+
[docs]classSupportingDocumentList(ListResource):def__init__(self,version):"""
- Initialize the CampaignList
+ Initialize the SupportingDocumentList :param Version version: Version that contains the resource
- :returns: twilio.rest.messaging.v1.campaign.CampaignList
- :rtype: twilio.rest.messaging.v1.campaign.CampaignList
+ :returns: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentList
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentList """
- super(CampaignList,self).__init__(version)
+ super(SupportingDocumentList,self).__init__(version)# Path Solutionself._solution={}
- self._uri='/a2p/Campaigns'.format(**self._solution)
+ self._uri='/SupportingDocuments'.format(**self._solution)
-
[docs]defcreate(self,friendly_name,type,attributes=values.unset):"""
- Streams CampaignInstance records from the API as a generator stream.
+ Create the SupportingDocumentInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode type: The type of the Supporting Document
+ :param dict attributes: The set of parameters that compose the Supporting Documents resource
+
+ :returns: The created SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentInstance
+ """
+ data=values.of({
+ 'FriendlyName':friendly_name,
+ 'Type':type,
+ 'Attributes':serialize.object(attributes),
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnSupportingDocumentInstance(self._version,payload,)
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams SupportingDocumentInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.
@@ -79,7 +98,7 @@
Source code for twilio.rest.messaging.v1.campaign
limit with the most efficient page size, i.e. min(limit, 1000)
:returns: Generator that will yield up to limit results
- :rtype: list[twilio.rest.messaging.v1.campaign.CampaignInstance]
+ :rtype: list[twilio.rest.trusthub.v1.supporting_document.SupportingDocumentInstance] """limits=self._version.read_limits(limit,page_size)
@@ -87,9 +106,9 @@
[docs]deflist(self,limit=None,page_size=None):"""
- Lists CampaignInstance records from the API as a list.
+ Lists SupportingDocumentInstance records from the API as a list. Unlike stream(), this operation is eager and will load `limit` records into memory before returning.
@@ -101,97 +120,67 @@
Source code for twilio.rest.messaging.v1.campaign
with the most efficient page size, i.e. min(limit, 1000)
:returns: Generator that will yield up to limit results
- :rtype: list[twilio.rest.messaging.v1.campaign.CampaignInstance]
+ :rtype: list[twilio.rest.trusthub.v1.supporting_document.SupportingDocumentInstance] """returnlist(self.stream(limit=limit,page_size=page_size,))
[docs]defpage(self,page_token=values.unset,page_number=values.unset,page_size=values.unset):"""
- Retrieve a single page of CampaignInstance records from the API.
+ Retrieve a single page of SupportingDocumentInstance records from the API. Request is executed immediately :param str page_token: PageToken provided by the API :param int page_number: Page Number, this value is simply for client state :param int page_size: Number of records to return, defaults to 50
- :returns: Page of CampaignInstance
- :rtype: twilio.rest.messaging.v1.campaign.CampaignPage
+ :returns: Page of SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentPage """data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})response=self._version.page(method='GET',uri=self._uri,params=data,)
- returnCampaignPage(self._version,response,self._solution)
[docs]defget_page(self,target_url):"""
- Retrieve a specific page of CampaignInstance records from the API.
+ Retrieve a specific page of SupportingDocumentInstance records from the API. Request is executed immediately :param str target_url: API-generated URL for the requested results page
- :returns: Page of CampaignInstance
- :rtype: twilio.rest.messaging.v1.campaign.CampaignPage
+ :returns: Page of SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentPage """response=self._version.domain.twilio.request('GET',target_url,)
- returnCampaignPage(self._version,response,self._solution)
[docs]classCampaignPage(Page):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
+
[docs]classSupportingDocumentPage(Page):def__init__(self,version,response,solution):"""
- Initialize the CampaignPage
+ Initialize the SupportingDocumentPage :param Version version: Version that contains the resource :param Response response: Response from the API
- :returns: twilio.rest.messaging.v1.campaign.CampaignPage
- :rtype: twilio.rest.messaging.v1.campaign.CampaignPage
+ :returns: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentPage
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentPage """
- super(CampaignPage,self).__init__(version,response)
+ super(SupportingDocumentPage,self).__init__(version,response)# Path Solutionself._solution=solution
-
[docs]classCampaignContext(InstanceContext):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
+
[docs]classSupportingDocumentContext(InstanceContext):def__init__(self,version,sid):"""
- Initialize the CampaignContext
+ Initialize the SupportingDocumentContext :param Version version: Version that contains the resource
- :param sid: The SID that identifies the resource to fetch
+ :param sid: The unique string that identifies the resource
- :returns: twilio.rest.messaging.v1.campaign.CampaignContext
- :rtype: twilio.rest.messaging.v1.campaign.CampaignContext
+ :returns: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentContext
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentContext """
- super(CampaignContext,self).__init__(version)
+ super(SupportingDocumentContext,self).__init__(version)# Path Solutionself._solution={'sid':sid,}
- self._uri='/a2p/Campaigns/{sid}'.format(**self._solution)
+ self._uri='/SupportingDocuments/{sid}'.format(**self._solution)
-
[docs]defupdate(self,friendly_name=values.unset,attributes=values.unset):"""
- Deletes the CampaignInstance
+ Update the SupportingDocumentInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param dict attributes: The set of parameters that compose the Supporting Document resource
+
+ :returns: The updated SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentInstance
+ """
+ data=values.of({'FriendlyName':friendly_name,'Attributes':serialize.object(attributes),})
+
+ payload=self._version.update(method='POST',uri=self._uri,data=data,)
+
+ returnSupportingDocumentInstance(self._version,payload,sid=self._solution['sid'],)
+
+
[docs]defdelete(self):
+ """
+ Deletes the SupportingDocumentInstance :returns: True if delete succeeds, False otherwise :rtype: bool
@@ -291,42 +292,39 @@
[docs]classCampaignInstance(InstanceResource):
- """ PLEASE NOTE that this class contains beta products that are subject to
- change. Use them with caution. """
+
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
- :returns: CampaignContext for this CampaignInstance
- :rtype: twilio.rest.messaging.v1.campaign.CampaignContext
+ :returns: SupportingDocumentContext for this SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentContext """ifself._contextisNone:
- self._context=CampaignContext(self._version,sid=self._solution['sid'],)
+ self._context=SupportingDocumentContext(self._version,sid=self._solution['sid'],)returnself._context
- @property
- defaccount_sid(self):
- """
- :returns: The SID of the Account that created the resource
- :rtype: unicode
- """
- returnself._properties['account_sid']
-
- @property
- defmessaging_service_sid(self):
- """
- :returns: MessagingService SID
- :rtype: unicode
- """
- returnself._properties['messaging_service_sid']
-
- @property
- defbrand_registration_sid(self):
- """
- :returns: A2P BrandRegistration Sid
- :rtype: unicode
- """
- returnself._properties['brand_registration_sid']
-
@propertydefsid(self):"""
- :returns: Campaign sid
+ :returns: The unique string that identifies the resource :rtype: unicode """returnself._properties['sid']@property
- defdate_created(self):
- """
- :returns: The ISO 8601 date and time in GMT when the resource was created
- :rtype: datetime
- """
- returnself._properties['date_created']
-
- @property
- defdate_updated(self):
+ defaccount_sid(self):"""
- :returns: The ISO 8601 date and time in GMT when the resource was last updated
- :rtype: datetime
+ :returns: The SID of the Account that created the resource
+ :rtype: unicode """
- returnself._properties['date_updated']
+ returnself._properties['account_sid']@property
- defdescription(self):
+ deffriendly_name(self):"""
- :returns: A short description of what this SMS campaign does
+ :returns: The string that you assigned to describe the resource :rtype: unicode """
- returnself._properties['description']
+ returnself._properties['friendly_name']@property
- defmessage_samples(self):
+ defmime_type(self):"""
- :returns: Message samples
- :rtype: list[unicode]
+ :returns: The image type of the file
+ :rtype: unicode """
- returnself._properties['message_samples']
+ returnself._properties['mime_type']@propertydefstatus(self):"""
- :returns: Campaign status
- :rtype: CampaignInstance.Status
+ :returns: The verification status of the Supporting Document resource
+ :rtype: SupportingDocumentInstance.Status """returnself._properties['status']@property
- deffailure_reason(self):
+ deftype(self):"""
- :returns: A reason why campaign registration has failed
+ :returns: The type of the Supporting Document :rtype: unicode """
- returnself._properties['failure_reason']
+ returnself._properties['type']@property
- defuse_case(self):
+ defattributes(self):"""
- :returns: A2P Campaign UseCase.
- :rtype: unicode
+ :returns: The set of parameters that compose the Supporting Documents resource
+ :rtype: dict """
- returnself._properties['use_case']
+ returnself._properties['attributes']@property
- defhas_embedded_links(self):
+ defdate_created(self):"""
- :returns: Indicate that this SMS campaign will send messages that contain links
- :rtype: bool
+ :returns: The ISO 8601 date and time in GMT when the resource was created
+ :rtype: datetime """
- returnself._properties['has_embedded_links']
+ returnself._properties['date_created']@property
- defhas_embedded_phone(self):
+ defdate_updated(self):"""
- :returns: Indicates that this SMS campaign will send messages that contain phone numbers
- :rtype: bool
+ :returns: The ISO 8601 date and time in GMT when the resource was last updated
+ :rtype: datetime """
- returnself._properties['has_embedded_phone']
+ returnself._properties['date_updated']@propertydefurl(self):"""
- :returns: The absolute URL of the Campaign resource
+ :returns: The absolute URL of the Supporting Document resource :rtype: unicode """returnself._properties['url']
-
[docs]defupdate(self,friendly_name=values.unset,attributes=values.unset):
+ """
+ Update the SupportingDocumentInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param dict attributes: The set of parameters that compose the Supporting Document resource
+
+ :returns: The updated SupportingDocumentInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document.SupportingDocumentInstance
+ """
+ returnself._proxy.update(friendly_name=friendly_name,attributes=attributes,)
+
+
[docs]defdelete(self):"""
- Deletes the CampaignInstance
+ Deletes the SupportingDocumentInstance :returns: True if delete succeeds, False otherwise :rtype: bool
@@ -485,7 +463,7 @@
[docs]classSupportingDocumentTypeList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the SupportingDocumentTypeList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeList
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeList
+ """
+ super(SupportingDocumentTypeList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/SupportingDocumentTypes'.format(**self._solution)
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams SupportingDocumentTypeInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists SupportingDocumentTypeInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of SupportingDocumentTypeInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of SupportingDocumentTypeInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypePage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnSupportingDocumentTypePage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of SupportingDocumentTypeInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of SupportingDocumentTypeInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypePage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnSupportingDocumentTypePage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a SupportingDocumentTypeContext
+
+ :param sid: The unique string that identifies the Supporting Document Type resource
+
+ :returns: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeContext
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeContext
+ """
+ returnSupportingDocumentTypeContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a SupportingDocumentTypeContext
+
+ :param sid: The unique string that identifies the Supporting Document Type resource
+
+ :returns: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeContext
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeContext
+ """
+ returnSupportingDocumentTypeContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.SupportingDocumentTypeList>'
+
+
+
[docs]classSupportingDocumentTypePage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the SupportingDocumentTypePage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypePage
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypePage
+ """
+ super(SupportingDocumentTypePage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of SupportingDocumentTypeInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeInstance
+ :rtype: twilio.rest.trusthub.v1.supporting_document_type.SupportingDocumentTypeInstance
+ """
+ returnSupportingDocumentTypeInstance(self._version,payload,)
[docs]classTrustProductsList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the TrustProductsList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsList
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsList
+ """
+ super(TrustProductsList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/TrustProducts'.format(**self._solution)
+
+
[docs]defcreate(self,friendly_name,email,policy_sid,
+ status_callback=values.unset):
+ """
+ Create the TrustProductsInstance
+
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+ :param unicode policy_sid: The unique string of a policy.
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+
+ :returns: The created TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ data=values.of({
+ 'FriendlyName':friendly_name,
+ 'Email':email,
+ 'PolicySid':policy_sid,
+ 'StatusCallback':status_callback,
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnTrustProductsInstance(self._version,payload,)
+
+
[docs]defstream(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,limit=None,page_size=None):
+ """
+ Streams TrustProductsInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param TrustProductsInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.TrustProductsInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(
+ status=status,
+ friendly_name=friendly_name,
+ policy_sid=policy_sid,
+ page_size=limits['page_size'],
+ )
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,limit=None,page_size=None):
+ """
+ Lists TrustProductsInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param TrustProductsInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.TrustProductsInstance]
+ """
+ returnlist(self.stream(
+ status=status,
+ friendly_name=friendly_name,
+ policy_sid=policy_sid,
+ limit=limit,
+ page_size=page_size,
+ ))
+
+
[docs]defpage(self,status=values.unset,friendly_name=values.unset,
+ policy_sid=values.unset,page_token=values.unset,
+ page_number=values.unset,page_size=values.unset):
+ """
+ Retrieve a single page of TrustProductsInstance records from the API.
+ Request is executed immediately
+
+ :param TrustProductsInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode policy_sid: The unique string of a policy.
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsPage
+ """
+ data=values.of({
+ 'Status':status,
+ 'FriendlyName':friendly_name,
+ 'PolicySid':policy_sid,
+ 'PageToken':page_token,
+ 'Page':page_number,
+ 'PageSize':page_size,
+ })
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnTrustProductsPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of TrustProductsInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnTrustProductsPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a TrustProductsContext
+
+ :param sid: The unique string that identifies the resource.
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
+ """
+ returnTrustProductsContext(self._version,sid=sid,)
+
+ def__call__(self,sid):
+ """
+ Constructs a TrustProductsContext
+
+ :param sid: The unique string that identifies the resource.
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
+ """
+ returnTrustProductsContext(self._version,sid=sid,)
+
+ def__repr__(self):
+ """
+ Provide a friendly representation
+
+ :returns: Machine friendly representation
+ :rtype: str
+ """
+ return'<Twilio.Trusthub.V1.TrustProductsList>'
+
+
+
[docs]classTrustProductsPage(Page):
+
+ def__init__(self,version,response,solution):
+ """
+ Initialize the TrustProductsPage
+
+ :param Version version: Version that contains the resource
+ :param Response response: Response from the API
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsPage
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsPage
+ """
+ super(TrustProductsPage,self).__init__(version,response)
+
+ # Path Solution
+ self._solution=solution
+
+
[docs]defget_instance(self,payload):
+ """
+ Build an instance of TrustProductsInstance
+
+ :param dict payload: Payload response from the API
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ returnTrustProductsInstance(self._version,payload,)
[docs]defupdate(self,status=values.unset,status_callback=values.unset,
+ friendly_name=values.unset,email=values.unset):
+ """
+ Update the TrustProductsInstance
+
+ :param TrustProductsInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+
+ :returns: The updated TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ data=values.of({
+ 'Status':status,
+ 'StatusCallback':status_callback,
+ 'FriendlyName':friendly_name,
+ 'Email':email,
+ })
+
+ payload=self._version.update(method='POST',uri=self._uri,data=data,)
+
+ returnTrustProductsInstance(self._version,payload,sid=self._solution['sid'],)
+
+ def__init__(self,version,payload,sid=None):
+ """
+ Initialize the TrustProductsInstance
+
+ :returns: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ super(TrustProductsInstance,self).__init__(version)
+
+ # Marshaled Properties
+ self._properties={
+ 'sid':payload.get('sid'),
+ 'account_sid':payload.get('account_sid'),
+ 'policy_sid':payload.get('policy_sid'),
+ 'friendly_name':payload.get('friendly_name'),
+ 'status':payload.get('status'),
+ 'valid_until':deserialize.iso8601_datetime(payload.get('valid_until')),
+ 'email':payload.get('email'),
+ 'status_callback':payload.get('status_callback'),
+ 'date_created':deserialize.iso8601_datetime(payload.get('date_created')),
+ 'date_updated':deserialize.iso8601_datetime(payload.get('date_updated')),
+ 'url':payload.get('url'),
+ 'links':payload.get('links'),
+ }
+
+ # Context
+ self._context=None
+ self._solution={'sid':sidorself._properties['sid'],}
+
+ @property
+ def_proxy(self):
+ """
+ Generate an instance context for the instance, the context is capable of
+ performing various actions. All instance actions are proxied to the context
+
+ :returns: TrustProductsContext for this TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
+ """
+ ifself._contextisNone:
+ self._context=TrustProductsContext(self._version,sid=self._solution['sid'],)
+ returnself._context
+
+ @property
+ defsid(self):
+ """
+ :returns: The unique string that identifies the resource.
+ :rtype: unicode
+ """
+ returnself._properties['sid']
+
+ @property
+ defaccount_sid(self):
+ """
+ :returns: The SID of the Account that created the resource
+ :rtype: unicode
+ """
+ returnself._properties['account_sid']
+
+ @property
+ defpolicy_sid(self):
+ """
+ :returns: The unique string of a policy.
+ :rtype: unicode
+ """
+ returnself._properties['policy_sid']
+
+ @property
+ deffriendly_name(self):
+ """
+ :returns: The string that you assigned to describe the resource
+ :rtype: unicode
+ """
+ returnself._properties['friendly_name']
+
+ @property
+ defstatus(self):
+ """
+ :returns: The verification status of the Customer-Profile resource
+ :rtype: TrustProductsInstance.Status
+ """
+ returnself._properties['status']
+
+ @property
+ defvalid_until(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource will be valid until.
+ :rtype: datetime
+ """
+ returnself._properties['valid_until']
+
+ @property
+ defemail(self):
+ """
+ :returns: The email address
+ :rtype: unicode
+ """
+ returnself._properties['email']
+
+ @property
+ defstatus_callback(self):
+ """
+ :returns: The URL we call to inform your application of status changes.
+ :rtype: unicode
+ """
+ returnself._properties['status_callback']
+
+ @property
+ defdate_created(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was created
+ :rtype: datetime
+ """
+ returnself._properties['date_created']
+
+ @property
+ defdate_updated(self):
+ """
+ :returns: The ISO 8601 date and time in GMT when the resource was last updated
+ :rtype: datetime
+ """
+ returnself._properties['date_updated']
+
+ @property
+ defurl(self):
+ """
+ :returns: The absolute URL of the Customer-Profile resource
+ :rtype: unicode
+ """
+ returnself._properties['url']
+
+ @property
+ deflinks(self):
+ """
+ :returns: The URLs of the Assigned Items of the Customer-Profile resource
+ :rtype: unicode
+ """
+ returnself._properties['links']
+
+
[docs]deffetch(self):
+ """
+ Fetch the TrustProductsInstance
+
+ :returns: The fetched TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ returnself._proxy.fetch()
+
+
[docs]defupdate(self,status=values.unset,status_callback=values.unset,
+ friendly_name=values.unset,email=values.unset):
+ """
+ Update the TrustProductsInstance
+
+ :param TrustProductsInstance.Status status: The verification status of the Customer-Profile resource
+ :param unicode status_callback: The URL we call to inform your application of status changes.
+ :param unicode friendly_name: The string that you assigned to describe the resource
+ :param unicode email: The email address
+
+ :returns: The updated TrustProductsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
+ """
+ returnself._proxy.update(
+ status=status,
+ status_callback=status_callback,
+ friendly_name=friendly_name,
+ email=email,
+ )
[docs]classTrustProductsChannelEndpointAssignmentList(ListResource):
+
+ def__init__(self,version,trust_product_sid):
+ """
+ Initialize the TrustProductsChannelEndpointAssignmentList
+
+ :param Version version: Version that contains the resource
+ :param trust_product_sid: The unique string that identifies the CustomerProfile resource.
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList
+ """
+ super(TrustProductsChannelEndpointAssignmentList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'trust_product_sid':trust_product_sid,}
+ self._uri='/TrustProducts/{trust_product_sid}/ChannelEndpointAssignments'.format(**self._solution)
+
+
[docs]defcreate(self,channel_endpoint_type,channel_endpoint_sid):
+ """
+ Create the TrustProductsChannelEndpointAssignmentInstance
+
+ :param unicode channel_endpoint_type: The type of channel endpoint
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+
+ :returns: The created TrustProductsChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance
+ """
+ data=values.of({
+ 'ChannelEndpointType':channel_endpoint_type,
+ 'ChannelEndpointSid':channel_endpoint_sid,
+ })
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnTrustProductsChannelEndpointAssignmentInstance(
+ self._version,
+ payload,
+ trust_product_sid=self._solution['trust_product_sid'],
+ )
+
+
[docs]defstream(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,limit=None,page_size=None):
+ """
+ Streams TrustProductsChannelEndpointAssignmentInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(
+ channel_endpoint_sid=channel_endpoint_sid,
+ channel_endpoint_sids=channel_endpoint_sids,
+ page_size=limits['page_size'],
+ )
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,limit=None,page_size=None):
+ """
+ Lists TrustProductsChannelEndpointAssignmentInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance]
+ """
+ returnlist(self.stream(
+ channel_endpoint_sid=channel_endpoint_sid,
+ channel_endpoint_sids=channel_endpoint_sids,
+ limit=limit,
+ page_size=page_size,
+ ))
+
+
[docs]defpage(self,channel_endpoint_sid=values.unset,
+ channel_endpoint_sids=values.unset,page_token=values.unset,
+ page_number=values.unset,page_size=values.unset):
+ """
+ Retrieve a single page of TrustProductsChannelEndpointAssignmentInstance records from the API.
+ Request is executed immediately
+
+ :param unicode channel_endpoint_sid: The sid of an channel endpoint
+ :param unicode channel_endpoint_sids: comma separated list of channel endpoint sids
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of TrustProductsChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentPage
+ """
+ data=values.of({
+ 'ChannelEndpointSid':channel_endpoint_sid,
+ 'ChannelEndpointSids':channel_endpoint_sids,
+ 'PageToken':page_token,
+ 'Page':page_number,
+ 'PageSize':page_size,
+ })
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnTrustProductsChannelEndpointAssignmentPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of TrustProductsChannelEndpointAssignmentInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of TrustProductsChannelEndpointAssignmentInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnTrustProductsChannelEndpointAssignmentPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a TrustProductsChannelEndpointAssignmentContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentContext
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentContext
+ """
+ returnTrustProductsChannelEndpointAssignmentContext(
+ self._version,
+ trust_product_sid=self._solution['trust_product_sid'],
+ sid=sid,
+ )
[docs]classTrustProductsEntityAssignmentsList(ListResource):
+
+ def__init__(self,version,trust_product_sid):
+ """
+ Initialize the TrustProductsEntityAssignmentsList
+
+ :param Version version: Version that contains the resource
+ :param trust_product_sid: The unique string that identifies the TrustProduct resource.
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList
+ """
+ super(TrustProductsEntityAssignmentsList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'trust_product_sid':trust_product_sid,}
+ self._uri='/TrustProducts/{trust_product_sid}/EntityAssignments'.format(**self._solution)
+
+
[docs]defcreate(self,object_sid):
+ """
+ Create the TrustProductsEntityAssignmentsInstance
+
+ :param unicode object_sid: The sid of an object bag
+
+ :returns: The created TrustProductsEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance
+ """
+ data=values.of({'ObjectSid':object_sid,})
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnTrustProductsEntityAssignmentsInstance(
+ self._version,
+ payload,
+ trust_product_sid=self._solution['trust_product_sid'],
+ )
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams TrustProductsEntityAssignmentsInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists TrustProductsEntityAssignmentsInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of TrustProductsEntityAssignmentsInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of TrustProductsEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnTrustProductsEntityAssignmentsPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of TrustProductsEntityAssignmentsInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of TrustProductsEntityAssignmentsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnTrustProductsEntityAssignmentsPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a TrustProductsEntityAssignmentsContext
+
+ :param sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsContext
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsContext
+ """
+ returnTrustProductsEntityAssignmentsContext(
+ self._version,
+ trust_product_sid=self._solution['trust_product_sid'],
+ sid=sid,
+ )
[docs]classTrustProductsEvaluationsList(ListResource):
+
+ def__init__(self,version,trust_product_sid):
+ """
+ Initialize the TrustProductsEvaluationsList
+
+ :param Version version: Version that contains the resource
+ :param trust_product_sid: The unique string that identifies the resource
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList
+ """
+ super(TrustProductsEvaluationsList,self).__init__(version)
+
+ # Path Solution
+ self._solution={'trust_product_sid':trust_product_sid,}
+ self._uri='/TrustProducts/{trust_product_sid}/Evaluations'.format(**self._solution)
+
+
[docs]defcreate(self,policy_sid):
+ """
+ Create the TrustProductsEvaluationsInstance
+
+ :param unicode policy_sid: The unique string of a policy
+
+ :returns: The created TrustProductsEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance
+ """
+ data=values.of({'PolicySid':policy_sid,})
+
+ payload=self._version.create(method='POST',uri=self._uri,data=data,)
+
+ returnTrustProductsEvaluationsInstance(
+ self._version,
+ payload,
+ trust_product_sid=self._solution['trust_product_sid'],
+ )
+
+
[docs]defstream(self,limit=None,page_size=None):
+ """
+ Streams TrustProductsEvaluationsInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(page_size=limits['page_size'],)
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,limit=None,page_size=None):
+ """
+ Lists TrustProductsEvaluationsInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance]
+ """
+ returnlist(self.stream(limit=limit,page_size=page_size,))
+
+
[docs]defpage(self,page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of TrustProductsEvaluationsInstance records from the API.
+ Request is executed immediately
+
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of TrustProductsEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsPage
+ """
+ data=values.of({'PageToken':page_token,'Page':page_number,'PageSize':page_size,})
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnTrustProductsEvaluationsPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of TrustProductsEvaluationsInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of TrustProductsEvaluationsInstance
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnTrustProductsEvaluationsPage(self._version,response,self._solution)
+
+
[docs]defget(self,sid):
+ """
+ Constructs a TrustProductsEvaluationsContext
+
+ :param sid: The unique string that identifies the Evaluation resource
+
+ :returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsContext
+ :rtype: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsContext
+ """
+ returnTrustProductsEvaluationsContext(
+ self._version,
+ trust_product_sid=self._solution['trust_product_sid'],
+ sid=sid,
+ )
[docs]classVerificationAttemptList(ListResource):
+
+ def__init__(self,version):
+ """
+ Initialize the VerificationAttemptList
+
+ :param Version version: Version that contains the resource
+
+ :returns: twilio.rest.verify.v2.verification_attempt.VerificationAttemptList
+ :rtype: twilio.rest.verify.v2.verification_attempt.VerificationAttemptList
+ """
+ super(VerificationAttemptList,self).__init__(version)
+
+ # Path Solution
+ self._solution={}
+ self._uri='/Attempts'.format(**self._solution)
+
+
[docs]defstream(self,date_created_after=values.unset,
+ date_created_before=values.unset,channel_data_to=values.unset,
+ limit=None,page_size=None):
+ """
+ Streams VerificationAttemptInstance records from the API as a generator stream.
+ This operation lazily loads records as efficiently as possible until the limit
+ is reached.
+ The results are returned as a generator, so this operation is memory efficient.
+
+ :param datetime date_created_after: Filter verification attempts after this date
+ :param datetime date_created_before: Filter verification attempts befor this date
+ :param unicode channel_data_to: Destination of a verification
+ :param int limit: Upper limit for the number of records to return. stream()
+ guarantees to never return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, stream() will attempt to read the
+ limit with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.verify.v2.verification_attempt.VerificationAttemptInstance]
+ """
+ limits=self._version.read_limits(limit,page_size)
+
+ page=self.page(
+ date_created_after=date_created_after,
+ date_created_before=date_created_before,
+ channel_data_to=channel_data_to,
+ page_size=limits['page_size'],
+ )
+
+ returnself._version.stream(page,limits['limit'])
+
+
[docs]deflist(self,date_created_after=values.unset,
+ date_created_before=values.unset,channel_data_to=values.unset,
+ limit=None,page_size=None):
+ """
+ Lists VerificationAttemptInstance records from the API as a list.
+ Unlike stream(), this operation is eager and will load `limit` records into
+ memory before returning.
+
+ :param datetime date_created_after: Filter verification attempts after this date
+ :param datetime date_created_before: Filter verification attempts befor this date
+ :param unicode channel_data_to: Destination of a verification
+ :param int limit: Upper limit for the number of records to return. list() guarantees
+ never to return more than limit. Default is no limit
+ :param int page_size: Number of records to fetch per request, when not set will use
+ the default value of 50 records. If no page_size is defined
+ but a limit is defined, list() will attempt to read the limit
+ with the most efficient page size, i.e. min(limit, 1000)
+
+ :returns: Generator that will yield up to limit results
+ :rtype: list[twilio.rest.verify.v2.verification_attempt.VerificationAttemptInstance]
+ """
+ returnlist(self.stream(
+ date_created_after=date_created_after,
+ date_created_before=date_created_before,
+ channel_data_to=channel_data_to,
+ limit=limit,
+ page_size=page_size,
+ ))
+
+
[docs]defpage(self,date_created_after=values.unset,
+ date_created_before=values.unset,channel_data_to=values.unset,
+ page_token=values.unset,page_number=values.unset,
+ page_size=values.unset):
+ """
+ Retrieve a single page of VerificationAttemptInstance records from the API.
+ Request is executed immediately
+
+ :param datetime date_created_after: Filter verification attempts after this date
+ :param datetime date_created_before: Filter verification attempts befor this date
+ :param unicode channel_data_to: Destination of a verification
+ :param str page_token: PageToken provided by the API
+ :param int page_number: Page Number, this value is simply for client state
+ :param int page_size: Number of records to return, defaults to 50
+
+ :returns: Page of VerificationAttemptInstance
+ :rtype: twilio.rest.verify.v2.verification_attempt.VerificationAttemptPage
+ """
+ data=values.of({
+ 'DateCreatedAfter':serialize.iso8601_datetime(date_created_after),
+ 'DateCreatedBefore':serialize.iso8601_datetime(date_created_before),
+ 'ChannelData.To':channel_data_to,
+ 'PageToken':page_token,
+ 'Page':page_number,
+ 'PageSize':page_size,
+ })
+
+ response=self._version.page(method='GET',uri=self._uri,params=data,)
+
+ returnVerificationAttemptPage(self._version,response,self._solution)
+
+
[docs]defget_page(self,target_url):
+ """
+ Retrieve a specific page of VerificationAttemptInstance records from the API.
+ Request is executed immediately
+
+ :param str target_url: API-generated URL for the requested results page
+
+ :returns: Page of VerificationAttemptInstance
+ :rtype: twilio.rest.verify.v2.verification_attempt.VerificationAttemptPage
+ """
+ response=self._version.domain.twilio.request(
+ 'GET',
+ target_url,
+ )
+
+ returnVerificationAttemptPage(self._version,response,self._solution)
Lists CampaignInstance records from the API as a list.
-Unlike stream(), this operation is eager and will load limit records into
-memory before returning.
-
-
-
-
-
Parameters:
-
limit (int) – Upper limit for the number of records to return. list() guarantees
-never to return more than limit. Default is no limit
-
page_size (int) – Number of records to fetch per request, when not set will use
-the default value of 50 records. If no page_size is defined
-but a limit is defined, list() will attempt to read the limit
-with the most efficient page size, i.e. min(limit, 1000)
Streams CampaignInstance records from the API as a generator stream.
-This operation lazily loads records as efficiently as possible until the limit
-is reached.
-The results are returned as a generator, so this operation is memory efficient.
-
-
-
-
-
Parameters:
-
limit (int) – Upper limit for the number of records to return. stream()
-guarantees to never return more than limit. Default is no limit
-
page_size (int) – Number of records to fetch per request, when not set will use
-the default value of 50 records. If no page_size is defined
-but a limit is defined, stream() will attempt to read the
-limit with the most efficient page size, i.e. min(limit, 1000)
Lists UseCaseInstance records from the API as a list.
-Unlike stream(), this operation is eager and will load limit records into
-memory before returning.
-
-
-
-
-
Parameters:
-
limit (int) – Upper limit for the number of records to return. list() guarantees
-never to return more than limit. Default is no limit
-
page_size (int) – Number of records to fetch per request, when not set will use
-the default value of 50 records. If no page_size is defined
-but a limit is defined, list() will attempt to read the limit
-with the most efficient page size, i.e. min(limit, 1000)
Streams UseCaseInstance records from the API as a generator stream.
-This operation lazily loads records as efficiently as possible until the limit
-is reached.
-The results are returned as a generator, so this operation is memory efficient.
-
-
-
-
-
Parameters:
-
limit (int) – Upper limit for the number of records to return. stream()
-guarantees to never return more than limit. Default is no limit
-
page_size (int) – Number of records to fetch per request, when not set will use
-the default value of 50 records. If no page_size is defined
-but a limit is defined, stream() will attempt to read the
-limit with the most efficient page size, i.e. min(limit, 1000)
Lists CustomerProfilesChannelEndpointAssignmentInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
channel_endpoint_sid (unicode) – The sid of an channel endpoint
+
channel_endpoint_sids (unicode) – comma separated list of channel endpoint sids
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams CustomerProfilesChannelEndpointAssignmentInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
channel_endpoint_sid (unicode) – The sid of an channel endpoint
+
channel_endpoint_sids (unicode) – comma separated list of channel endpoint sids
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists CustomerProfilesEntityAssignmentsInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams CustomerProfilesEntityAssignmentsInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists CustomerProfilesEvaluationsInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams CustomerProfilesEvaluationsInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists CustomerProfilesInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
friendly_name (unicode) – The string that you assigned to describe the resource
+
policy_sid (unicode) – The unique string of a policy.
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams CustomerProfilesInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
friendly_name (unicode) – The string that you assigned to describe the resource
+
policy_sid (unicode) – The unique string of a policy.
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists EndUserInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams EndUserInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists EndUserTypeInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams EndUserTypeInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists PoliciesInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams PoliciesInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists SupportingDocumentInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams SupportingDocumentInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists SupportingDocumentTypeInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams SupportingDocumentTypeInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists TrustProductsChannelEndpointAssignmentInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
channel_endpoint_sid (unicode) – The sid of an channel endpoint
+
channel_endpoint_sids (unicode) – comma separated list of channel endpoint sids
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams TrustProductsChannelEndpointAssignmentInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
channel_endpoint_sid (unicode) – The sid of an channel endpoint
+
channel_endpoint_sids (unicode) – comma separated list of channel endpoint sids
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists TrustProductsEntityAssignmentsInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams TrustProductsEntityAssignmentsInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists TrustProductsEvaluationsInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams TrustProductsEvaluationsInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists TrustProductsInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
friendly_name (unicode) – The string that you assigned to describe the resource
+
policy_sid (unicode) – The unique string of a policy.
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams TrustProductsInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
friendly_name (unicode) – The string that you assigned to describe the resource
+
policy_sid (unicode) – The unique string of a policy.
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)
Lists VerificationAttemptInstance records from the API as a list.
+Unlike stream(), this operation is eager and will load limit records into
+memory before returning.
+
+
+
+
+
Parameters:
+
date_created_after (datetime) – Filter verification attempts after this date
+
date_created_before (datetime) – Filter verification attempts befor this date
+
channel_data_to (unicode) – Destination of a verification
+
limit (int) – Upper limit for the number of records to return. list() guarantees
+never to return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, list() will attempt to read the limit
+with the most efficient page size, i.e. min(limit, 1000)
Streams VerificationAttemptInstance records from the API as a generator stream.
+This operation lazily loads records as efficiently as possible until the limit
+is reached.
+The results are returned as a generator, so this operation is memory efficient.
+
+
+
+
+
Parameters:
+
date_created_after (datetime) – Filter verification attempts after this date
+
date_created_before (datetime) – Filter verification attempts befor this date
+
channel_data_to (unicode) – Destination of a verification
+
limit (int) – Upper limit for the number of records to return. stream()
+guarantees to never return more than limit. Default is no limit
+
page_size (int) – Number of records to fetch per request, when not set will use
+the default value of 50 records. If no page_size is defined
+but a limit is defined, stream() will attempt to read the
+limit with the most efficient page size, i.e. min(limit, 1000)