twilio.rest.trusthub.v1.trust_products package¶
Submodules¶
twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.
TrustProductsChannelEndpointAssignmentContext
(version, trust_product_sid, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the TrustProductsChannelEndpointAssignmentInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the TrustProductsChannelEndpointAssignmentInstance
Returns: The fetched TrustProductsChannelEndpointAssignmentInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.
TrustProductsChannelEndpointAssignmentInstance
(version, payload, trust_product_sid, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
channel_endpoint_sid
¶ Returns: The sid of an channel endpoint Return type: unicode
-
channel_endpoint_type
¶ Returns: The type of channel endpoint Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the resource was created Return type: datetime
-
delete
()[source]¶ Deletes the TrustProductsChannelEndpointAssignmentInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the TrustProductsChannelEndpointAssignmentInstance
Returns: The fetched TrustProductsChannelEndpointAssignmentInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance
-
sid
¶ Returns: The unique string that identifies the resource Return type: unicode
-
trust_product_sid
¶ Returns: The unique string that identifies the CustomerProfile resource. Return type: unicode
-
url
¶ Returns: The absolute URL of the Identity resource Return type: unicode
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.
TrustProductsChannelEndpointAssignmentList
(version, trust_product_sid)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(channel_endpoint_type, channel_endpoint_sid)[source]¶ Create the TrustProductsChannelEndpointAssignmentInstance
Parameters: - channel_endpoint_type (unicode) – The type of channel endpoint
- channel_endpoint_sid (unicode) – The sid of an channel endpoint
Returns: The created TrustProductsChannelEndpointAssignmentInstance
Return type:
-
get
(sid)[source]¶ Constructs a TrustProductsChannelEndpointAssignmentContext
Parameters: sid – The unique string that identifies the resource Returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentContext Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of TrustProductsChannelEndpointAssignmentInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of TrustProductsChannelEndpointAssignmentInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentPage
-
list
(channel_endpoint_sid=<object object>, channel_endpoint_sids=<object object>, limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance]
-
page
(channel_endpoint_sid=<object object>, channel_endpoint_sids=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of TrustProductsChannelEndpointAssignmentInstance records from the API. Request is executed immediately
Parameters: - channel_endpoint_sid (unicode) – The sid of an channel endpoint
- channel_endpoint_sids (unicode) – comma separated list of channel endpoint sids
- page_token (str) – PageToken provided by the API
- page_number (int) – Page Number, this value is simply for client state
- page_size (int) – Number of records to return, defaults to 50
Returns: Page of TrustProductsChannelEndpointAssignmentInstance
Return type:
-
stream
(channel_endpoint_sid=<object object>, channel_endpoint_sids=<object object>, limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance]
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.
TrustProductsChannelEndpointAssignmentPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of TrustProductsChannelEndpointAssignmentInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentInstance
-
twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.
TrustProductsEntityAssignmentsContext
(version, trust_product_sid, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the TrustProductsEntityAssignmentsInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the TrustProductsEntityAssignmentsInstance
Returns: The fetched TrustProductsEntityAssignmentsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.
TrustProductsEntityAssignmentsInstance
(version, payload, trust_product_sid, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the resource was created Return type: datetime
-
delete
()[source]¶ Deletes the TrustProductsEntityAssignmentsInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the TrustProductsEntityAssignmentsInstance
Returns: The fetched TrustProductsEntityAssignmentsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance
-
object_sid
¶ Returns: The sid of an object bag Return type: unicode
-
sid
¶ Returns: The unique string that identifies the resource Return type: unicode
-
trust_product_sid
¶ Returns: The unique string that identifies the TrustProduct resource. Return type: unicode
-
url
¶ Returns: The absolute URL of the Identity resource Return type: unicode
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.
TrustProductsEntityAssignmentsList
(version, trust_product_sid)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(object_sid)[source]¶ Create the TrustProductsEntityAssignmentsInstance
Parameters: object_sid (unicode) – The sid of an object bag Returns: The created TrustProductsEntityAssignmentsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance
-
get
(sid)[source]¶ Constructs a TrustProductsEntityAssignmentsContext
Parameters: sid – The unique string that identifies the resource Returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsContext Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of TrustProductsEntityAssignmentsInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of TrustProductsEntityAssignmentsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsPage
-
list
(limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of TrustProductsEntityAssignmentsInstance records from the API. Request is executed immediately
Parameters: Returns: Page of TrustProductsEntityAssignmentsInstance
Return type:
-
stream
(limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance]
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.
TrustProductsEntityAssignmentsPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of TrustProductsEntityAssignmentsInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsInstance
-
twilio.rest.trusthub.v1.trust_products.trust_products_evaluations module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.
TrustProductsEvaluationsContext
(version, trust_product_sid, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
fetch
()[source]¶ Fetch the TrustProductsEvaluationsInstance
Returns: The fetched TrustProductsEvaluationsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.
TrustProductsEvaluationsInstance
(version, payload, trust_product_sid, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
date_created
¶ Returns: The date_created Return type: datetime
-
fetch
()[source]¶ Fetch the TrustProductsEvaluationsInstance
Returns: The fetched TrustProductsEvaluationsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance
-
policy_sid
¶ Returns: The unique string of a policy Return type: unicode
-
sid
¶ Returns: The unique string that identifies the Evaluation resource Return type: unicode
-
status
¶ Returns: The compliance status of the Evaluation resource Return type: TrustProductsEvaluationsInstance.Status
-
trust_product_sid
¶ Returns: The unique string that identifies the resource Return type: unicode
-
url
¶ Returns: The url Return type: unicode
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.
TrustProductsEvaluationsList
(version, trust_product_sid)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(policy_sid)[source]¶ Create the TrustProductsEvaluationsInstance
Parameters: policy_sid (unicode) – The unique string of a policy Returns: The created TrustProductsEvaluationsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance
-
get
(sid)[source]¶ Constructs a TrustProductsEvaluationsContext
Parameters: sid – The unique string that identifies the Evaluation resource Returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsContext Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of TrustProductsEvaluationsInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of TrustProductsEvaluationsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsPage
-
list
(limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of TrustProductsEvaluationsInstance records from the API. Request is executed immediately
Parameters: Returns: Page of TrustProductsEvaluationsInstance
Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsPage
-
stream
(limit=None, page_size=None)[source]¶ 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance]
-
-
class
twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.
TrustProductsEvaluationsPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of TrustProductsEvaluationsInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsInstance
-
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.trusthub.v1.trust_products.
TrustProductsContext
(version, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the TrustProductsInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the TrustProductsInstance
Returns: The fetched TrustProductsInstance Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-
trust_products_channel_endpoint_assignment
¶ Access the trust_products_channel_endpoint_assignment
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList
-
trust_products_entity_assignments
¶ Access the trust_products_entity_assignments
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList
-
trust_products_evaluations
¶ Access the trust_products_evaluations
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList
-
update
(status=<object object>, status_callback=<object object>, friendly_name=<object object>, email=<object object>)[source]¶ Update the TrustProductsInstance
Parameters: - status (TrustProductsInstance.Status) – The verification status of the Customer-Profile resource
- status_callback (unicode) – The URL we call to inform your application of status changes.
- friendly_name (unicode) – The string that you assigned to describe the resource
- email (unicode) – The email address
Returns: The updated TrustProductsInstance
Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-
-
class
twilio.rest.trusthub.v1.trust_products.
TrustProductsInstance
(version, payload, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
class
Status
[source]¶ Bases:
object
-
DRAFT
= 'draft'¶
-
IN_REVIEW
= 'in-review'¶
-
PENDING_REVIEW
= 'pending-review'¶
-
TWILIO_APPROVED
= 'twilio-approved'¶
-
TWILIO_REJECTED
= 'twilio-rejected'¶
-
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the resource was created Return type: datetime
-
date_updated
¶ Returns: The ISO 8601 date and time in GMT when the resource was last updated Return type: datetime
-
delete
()[source]¶ Deletes the TrustProductsInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
email
¶ Returns: The email address Return type: unicode
-
fetch
()[source]¶ Fetch the TrustProductsInstance
Returns: The fetched TrustProductsInstance Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-
friendly_name
¶ Returns: The string that you assigned to describe the resource Return type: unicode
-
links
¶ Returns: The URLs of the Assigned Items of the Customer-Profile resource Return type: unicode
-
policy_sid
¶ Returns: The unique string of a policy. Return type: unicode
-
sid
¶ Returns: The unique string that identifies the resource. Return type: unicode
-
status
¶ Returns: The verification status of the Customer-Profile resource Return type: TrustProductsInstance.Status
-
status_callback
¶ Returns: The URL we call to inform your application of status changes. Return type: unicode
-
trust_products_channel_endpoint_assignment
¶ Access the trust_products_channel_endpoint_assignment
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_channel_endpoint_assignment.TrustProductsChannelEndpointAssignmentList
-
trust_products_entity_assignments
¶ Access the trust_products_entity_assignments
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_entity_assignments.TrustProductsEntityAssignmentsList
-
trust_products_evaluations
¶ Access the trust_products_evaluations
Returns: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList Return type: twilio.rest.trusthub.v1.trust_products.trust_products_evaluations.TrustProductsEvaluationsList
-
update
(status=<object object>, status_callback=<object object>, friendly_name=<object object>, email=<object object>)[source]¶ Update the TrustProductsInstance
Parameters: - status (TrustProductsInstance.Status) – The verification status of the Customer-Profile resource
- status_callback (unicode) – The URL we call to inform your application of status changes.
- friendly_name (unicode) – The string that you assigned to describe the resource
- email (unicode) – The email address
Returns: The updated TrustProductsInstance
Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-
url
¶ Returns: The absolute URL of the Customer-Profile resource Return type: unicode
-
valid_until
¶ Returns: The ISO 8601 date and time in GMT when the resource will be valid until. Return type: datetime
-
class
-
class
twilio.rest.trusthub.v1.trust_products.
TrustProductsList
(version)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(friendly_name, email, policy_sid, status_callback=<object object>)[source]¶ Create the TrustProductsInstance
Parameters: - friendly_name (unicode) – The string that you assigned to describe the resource
- email (unicode) – The email address
- policy_sid (unicode) – The unique string of a policy.
- status_callback (unicode) – The URL we call to inform your application of status changes.
Returns: The created TrustProductsInstance
Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-
get
(sid)[source]¶ Constructs a TrustProductsContext
Parameters: sid – The unique string that identifies the resource. Returns: twilio.rest.trusthub.v1.trust_products.TrustProductsContext Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of TrustProductsInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of TrustProductsInstance Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsPage
-
list
(status=<object object>, friendly_name=<object object>, policy_sid=<object object>, limit=None, page_size=None)[source]¶ Lists TrustProductsInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.
Parameters: - status (TrustProductsInstance.Status) – The verification status of the Customer-Profile resource
- 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.TrustProductsInstance]
-
page
(status=<object object>, friendly_name=<object object>, policy_sid=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of TrustProductsInstance records from the API. Request is executed immediately
Parameters: - status (TrustProductsInstance.Status) – The verification status of the Customer-Profile resource
- friendly_name (unicode) – The string that you assigned to describe the resource
- policy_sid (unicode) – The unique string of a policy.
- page_token (str) – PageToken provided by the API
- page_number (int) – Page Number, this value is simply for client state
- page_size (int) – Number of records to return, defaults to 50
Returns: Page of TrustProductsInstance
Return type:
-
stream
(status=<object object>, friendly_name=<object object>, policy_sid=<object object>, limit=None, page_size=None)[source]¶ 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.
Parameters: - status (TrustProductsInstance.Status) – The verification status of the Customer-Profile resource
- 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)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.trusthub.v1.trust_products.TrustProductsInstance]
-
-
class
twilio.rest.trusthub.v1.trust_products.
TrustProductsPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of TrustProductsInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance Return type: twilio.rest.trusthub.v1.trust_products.TrustProductsInstance
-