twilio.rest.voice.v1.dialing_permissions.country package

Submodules

twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.py:docstring of twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixInstance(version, payload, iso_code)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

prefix
Returns:A prefix that includes the E.164 assigned country code
Return type:unicode
class twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixList(version, iso_code)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of HighriskSpecialPrefixInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixPage
list(limit=None, page_size=None)[source]

Lists HighriskSpecialPrefixInstance 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.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixInstance]

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

Retrieve a single page of HighriskSpecialPrefixInstance 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 HighriskSpecialPrefixInstance

Return type:

twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixPage

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

Streams HighriskSpecialPrefixInstance 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.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixInstance]

class twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of HighriskSpecialPrefixInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixInstance

Module contents

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/voice/v1/dialing_permissions/country/__init__.py:docstring of twilio.rest.voice.v1.dialing_permissions.country, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.voice.v1.dialing_permissions.country.CountryContext(version, iso_code)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

fetch()[source]

Fetch the CountryInstance

Returns:The fetched CountryInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.CountryInstance
highrisk_special_prefixes

Access the highrisk_special_prefixes

Returns:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixList
Return type:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixList
class twilio.rest.voice.v1.dialing_permissions.country.CountryInstance(version, payload, iso_code=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

continent
Returns:The name of the continent in which the country is located
Return type:unicode
country_codes
Returns:The E.164 assigned country codes(s)
Return type:list[unicode]
fetch()[source]

Fetch the CountryInstance

Returns:The fetched CountryInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.CountryInstance
high_risk_special_numbers_enabled
Returns:Whether dialing to high-risk special services numbers is enabled
Return type:bool
high_risk_tollfraud_numbers_enabled
Returns:Whether dialing to high-risk toll fraud numbers is enabled, else false
Return type:bool
highrisk_special_prefixes

Access the highrisk_special_prefixes

Returns:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixList
Return type:twilio.rest.voice.v1.dialing_permissions.country.highrisk_special_prefix.HighriskSpecialPrefixList
iso_code
Returns:The ISO country code
Return type:unicode
Returns:A list of URLs related to this resource
Return type:unicode
low_risk_numbers_enabled
Returns:Whether dialing to low-risk numbers is enabled
Return type:bool
name
Returns:The name of the country
Return type:unicode
url
Returns:The absolute URL of this resource
Return type:unicode
class twilio.rest.voice.v1.dialing_permissions.country.CountryList(version)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get(iso_code)[source]

Constructs a CountryContext

Parameters:iso_code – The ISO country code
Returns:twilio.rest.voice.v1.dialing_permissions.country.CountryContext
Return type:twilio.rest.voice.v1.dialing_permissions.country.CountryContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of CountryInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.CountryPage
list(iso_code=<object object>, continent=<object object>, country_code=<object object>, low_risk_numbers_enabled=<object object>, high_risk_special_numbers_enabled=<object object>, high_risk_tollfraud_numbers_enabled=<object object>, limit=None, page_size=None)[source]

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

Parameters:
  • iso_code (unicode) – Filter to retrieve the country permissions by specifying the ISO country code
  • continent (unicode) – Filter to retrieve the country permissions by specifying the continent
  • country_code (unicode) – Country code filter
  • low_risk_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to low-risk numbers enabled
  • high_risk_special_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled
  • high_risk_tollfraud_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk toll fraud numbers enabled
  • 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.voice.v1.dialing_permissions.country.CountryInstance]

page(iso_code=<object object>, continent=<object object>, country_code=<object object>, low_risk_numbers_enabled=<object object>, high_risk_special_numbers_enabled=<object object>, high_risk_tollfraud_numbers_enabled=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

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

Parameters:
  • iso_code (unicode) – Filter to retrieve the country permissions by specifying the ISO country code
  • continent (unicode) – Filter to retrieve the country permissions by specifying the continent
  • country_code (unicode) – Country code filter
  • low_risk_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to low-risk numbers enabled
  • high_risk_special_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled
  • high_risk_tollfraud_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk toll fraud numbers enabled
  • 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 CountryInstance

Return type:

twilio.rest.voice.v1.dialing_permissions.country.CountryPage

stream(iso_code=<object object>, continent=<object object>, country_code=<object object>, low_risk_numbers_enabled=<object object>, high_risk_special_numbers_enabled=<object object>, high_risk_tollfraud_numbers_enabled=<object object>, limit=None, page_size=None)[source]

Streams CountryInstance 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:
  • iso_code (unicode) – Filter to retrieve the country permissions by specifying the ISO country code
  • continent (unicode) – Filter to retrieve the country permissions by specifying the continent
  • country_code (unicode) – Country code filter
  • low_risk_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to low-risk numbers enabled
  • high_risk_special_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled
  • high_risk_tollfraud_numbers_enabled (bool) – Filter to retrieve the country permissions with dialing to high-risk toll fraud numbers enabled
  • 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.voice.v1.dialing_permissions.country.CountryInstance]

class twilio.rest.voice.v1.dialing_permissions.country.CountryPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of CountryInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.voice.v1.dialing_permissions.country.CountryInstance
Return type:twilio.rest.voice.v1.dialing_permissions.country.CountryInstance