twilio.rest.numbers.v2.regulatory_compliance package

Submodules

twilio.rest.numbers.v2.regulatory_compliance.end_user module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the EndUserInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the EndUserInstance

Returns:The fetched EndUserInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance
update(friendly_name=<object object>, attributes=<object object>)[source]

Update the EndUserInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • attributes (dict) – The set of parameters that compose the End User resource
Returns:

The updated EndUserInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance

class twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

class Type[source]

Bases: object

BUSINESS = 'business'
INDIVIDUAL = 'individual'
account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
attributes
Returns:The set of parameters that compose the End Users resource
Return type:dict
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 EndUserInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the EndUserInstance

Returns:The fetched EndUserInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance
friendly_name
Returns:The string that you assigned to describe the resource
Return type:unicode
sid
Returns:The unique string that identifies the resource
Return type:unicode
type
Returns:The type of end user of the Bundle resource
Return type:EndUserInstance.Type
update(friendly_name=<object object>, attributes=<object object>)[source]

Update the EndUserInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • attributes (dict) – The set of parameters that compose the End User resource
Returns:

The updated EndUserInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance

url
Returns:The absolute URL of the End User resource
Return type:unicode
class twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserList(version)[source]

Bases: twilio.base.list_resource.ListResource

create(friendly_name, type, attributes=<object object>)[source]

Create the EndUserInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • type (EndUserInstance.Type) – The type of end user of the Bundle resource
  • attributes (dict) – The set of parameters that compose the End User resource
Returns:

The created EndUserInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance

get(sid)[source]

Constructs a EndUserContext

Parameters:sid – The unique string that identifies the resource
Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserContext
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserContext
get_page(target_url)[source]

Retrieve a specific page of EndUserInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of EndUserInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserPage
list(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of EndUserInstance records from the API. Request is executed immediately

Parameters:
  • 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 EndUserInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserPage

stream(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance]

class twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of EndUserInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserInstance

twilio.rest.numbers.v2.regulatory_compliance.end_user_type module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

fetch()[source]

Fetch the EndUserTypeInstance

Returns:The fetched EndUserTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance
class twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

fetch()[source]

Fetch the EndUserTypeInstance

Returns:The fetched EndUserTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance
fields
Returns:The required information for creating an End-User.
Return type:list[dict]
friendly_name
Returns:A human-readable description of the End-User Type resource
Return type:unicode
machine_name
Returns:A machine-readable description of the End-User Type resource
Return type:unicode
sid
Returns:The unique string that identifies the End-User Type resource
Return type:unicode
url
Returns:The absolute URL of the End-User Type resource
Return type:unicode
class twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeList(version)[source]

Bases: twilio.base.list_resource.ListResource

get(sid)[source]

Constructs a EndUserTypeContext

Parameters:sid – The unique string that identifies the End-User Type resource
Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeContext
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeContext
get_page(target_url)[source]

Retrieve a specific page of EndUserTypeInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of EndUserTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypePage
list(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of EndUserTypeInstance records from the API. Request is executed immediately

Parameters:
  • 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 EndUserTypeInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypePage

stream(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance]

class twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypePage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of EndUserTypeInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeInstance

twilio.rest.numbers.v2.regulatory_compliance.regulation module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

fetch()[source]

Fetch the RegulationInstance

Returns:The fetched RegulationInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationInstance
class twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

class EndUserType[source]

Bases: object

BUSINESS = 'business'
INDIVIDUAL = 'individual'
end_user_type
Returns:The type of End User of the Regulation resource
Return type:RegulationInstance.EndUserType
fetch()[source]

Fetch the RegulationInstance

Returns:The fetched RegulationInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationInstance
friendly_name
Returns:A human-readable description of the Regulation resource
Return type:unicode
iso_country
Returns:The ISO country code of the phone number’s country
Return type:unicode
number_type
Returns:The type of phone number restricted by the regulatory requirement
Return type:unicode
requirements
Returns:The sid of a regulation object that dictates requirements
Return type:dict
sid
Returns:The unique string that identifies the Regulation resource
Return type:unicode
url
Returns:The absolute URL of the Regulation resource
Return type:unicode
class twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationList(version)[source]

Bases: twilio.base.list_resource.ListResource

get(sid)[source]

Constructs a RegulationContext

Parameters:sid – The unique string that identifies the Regulation resource
Returns:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationContext
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationContext
get_page(target_url)[source]

Retrieve a specific page of RegulationInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of RegulationInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationPage
list(end_user_type=<object object>, iso_country=<object object>, number_type=<object object>, limit=None, page_size=None)[source]

Lists RegulationInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • end_user_type (RegulationInstance.EndUserType) – The type of End User of the Regulation resource
  • iso_country (unicode) – The ISO country code of the phone number’s country
  • number_type (unicode) – The type of phone number being regulated
  • 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.numbers.v2.regulatory_compliance.regulation.RegulationInstance]

page(end_user_type=<object object>, iso_country=<object object>, number_type=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of RegulationInstance records from the API. Request is executed immediately

Parameters:
  • end_user_type (RegulationInstance.EndUserType) – The type of End User of the Regulation resource
  • iso_country (unicode) – The ISO country code of the phone number’s country
  • number_type (unicode) – The type of phone number being regulated
  • 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 RegulationInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationPage

stream(end_user_type=<object object>, iso_country=<object object>, number_type=<object object>, limit=None, page_size=None)[source]

Streams RegulationInstance 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:
  • end_user_type (RegulationInstance.EndUserType) – The type of End User of the Regulation resource
  • iso_country (unicode) – The ISO country code of the phone number’s country
  • number_type (unicode) – The type of phone number being regulated
  • 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.numbers.v2.regulatory_compliance.regulation.RegulationInstance]

class twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of RegulationInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationInstance

twilio.rest.numbers.v2.regulatory_compliance.supporting_document module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the SupportingDocumentInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the SupportingDocumentInstance

Returns:The fetched SupportingDocumentInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance
update(friendly_name=<object object>, attributes=<object object>)[source]

Update the SupportingDocumentInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • attributes (dict) – The set of parameters that compose the Supporting Document resource
Returns:

The updated SupportingDocumentInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance

class twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

class Status[source]

Bases: object

APPROVED = 'approved'
DRAFT = 'draft'
EXPIRED = 'expired'
PENDING_REVIEW = 'pending-review'
PROVISIONALLY_APPROVED = 'provisionally-approved'
REJECTED = 'rejected'
account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
attributes
Returns:The set of parameters that compose the Supporting Documents resource
Return type:dict
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 SupportingDocumentInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the SupportingDocumentInstance

Returns:The fetched SupportingDocumentInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance
friendly_name
Returns:The string that you assigned to describe the resource
Return type:unicode
mime_type
Returns:The image type of the file
Return type:unicode
sid
Returns:The unique string that identifies the resource
Return type:unicode
status
Returns:The verification status of the Supporting Document resource
Return type:SupportingDocumentInstance.Status
type
Returns:The type of the Supporting Document
Return type:unicode
update(friendly_name=<object object>, attributes=<object object>)[source]

Update the SupportingDocumentInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • attributes (dict) – The set of parameters that compose the Supporting Document resource
Returns:

The updated SupportingDocumentInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance

url
Returns:The absolute URL of the Supporting Document resource
Return type:unicode
class twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentList(version)[source]

Bases: twilio.base.list_resource.ListResource

create(friendly_name, type, attributes=<object object>)[source]

Create the SupportingDocumentInstance

Parameters:
  • friendly_name (unicode) – The string that you assigned to describe the resource
  • type (unicode) – The type of the Supporting Document
  • attributes (dict) – The set of parameters that compose the Supporting Documents resource
Returns:

The created SupportingDocumentInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance

get(sid)[source]

Constructs a SupportingDocumentContext

Parameters:sid – The unique string that identifies the resource
Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentContext
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentContext
get_page(target_url)[source]

Retrieve a specific page of SupportingDocumentInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of SupportingDocumentInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentPage
list(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of SupportingDocumentInstance records from the API. Request is executed immediately

Parameters:
  • 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 SupportingDocumentInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentPage

stream(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance]

class twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of SupportingDocumentInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentInstance

twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

fetch()[source]

Fetch the SupportingDocumentTypeInstance

Returns:The fetched SupportingDocumentTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance
class twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

fetch()[source]

Fetch the SupportingDocumentTypeInstance

Returns:The fetched SupportingDocumentTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance
fields
Returns:The required information for creating a Supporting Document
Return type:list[dict]
friendly_name
Returns:A human-readable description of the Supporting Document Type resource
Return type:unicode
machine_name
Returns:The machine-readable description of the Supporting Document Type resource
Return type:unicode
sid
Returns:The unique string that identifies the Supporting Document Type resource
Return type:unicode
url
Returns:The absolute URL of the Supporting Document Type resource
Return type:unicode
class twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeList(version)[source]

Bases: twilio.base.list_resource.ListResource

get(sid)[source]

Constructs a SupportingDocumentTypeContext

Parameters:sid – The unique string that identifies the Supporting Document Type resource
Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeContext
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeContext
get_page(target_url)[source]

Retrieve a specific page of SupportingDocumentTypeInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of SupportingDocumentTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypePage
list(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of SupportingDocumentTypeInstance records from the API. Request is executed immediately

Parameters:
  • 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 SupportingDocumentTypeInstance

Return type:

twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypePage

stream(limit=None, page_size=None)[source]

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)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance]

class twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypePage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of SupportingDocumentTypeInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeInstance

Module contents

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.numbers.v2.regulatory_compliance.RegulatoryComplianceInstance(version, payload)[source]

Bases: twilio.base.instance_resource.InstanceResource

class twilio.rest.numbers.v2.regulatory_compliance.RegulatoryComplianceList(version)[source]

Bases: twilio.base.list_resource.ListResource

bundles

Access the bundles

Returns:twilio.rest.numbers.v2.regulatory_compliance.bundle.BundleList
Return type:twilio.rest.numbers.v2.regulatory_compliance.bundle.BundleList
end_user_types

Access the end_user_types

Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeList
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user_type.EndUserTypeList
end_users

Access the end_users

Returns:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserList
Return type:twilio.rest.numbers.v2.regulatory_compliance.end_user.EndUserList
regulations

Access the regulations

Returns:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationList
Return type:twilio.rest.numbers.v2.regulatory_compliance.regulation.RegulationList
supporting_document_types

Access the supporting_document_types

Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeList
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document_type.SupportingDocumentTypeList
supporting_documents

Access the supporting_documents

Returns:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentList
Return type:twilio.rest.numbers.v2.regulatory_compliance.supporting_document.SupportingDocumentList
class twilio.rest.numbers.v2.regulatory_compliance.RegulatoryCompliancePage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of RegulatoryComplianceInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.numbers.v2.regulatory_compliance.RegulatoryComplianceInstance
Return type:twilio.rest.numbers.v2.regulatory_compliance.RegulatoryComplianceInstance