twilio.rest.api.v2010.account.sip.ip_access_control_list package¶
Submodules¶
twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.
IpAddressContext
(version, account_sid, ip_access_control_list_sid, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the IpAddressInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the IpAddressInstance
Returns: The fetched IpAddressInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
update
(ip_address=<object object>, friendly_name=<object object>, cidr_prefix_length=<object object>)[source]¶ Update the IpAddressInstance
Parameters: - ip_address (unicode) – An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
- friendly_name (unicode) – A human readable descriptive text for this resource, up to 64 characters long.
- cidr_prefix_length (unicode) – An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
Returns: The updated IpAddressInstance
Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.
IpAddressInstance
(version, payload, account_sid, ip_access_control_list_sid, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The unique id of the Account that is responsible for this resource. Return type: unicode
-
cidr_prefix_length
¶ Returns: An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. Return type: unicode
-
date_created
¶ Returns: The date that this resource was created, given as GMT in RFC 2822 format. Return type: datetime
-
date_updated
¶ Returns: The date that this resource was last updated, given as GMT in RFC 2822 format. Return type: datetime
-
delete
()[source]¶ Deletes the IpAddressInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the IpAddressInstance
Returns: The fetched IpAddressInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
friendly_name
¶ Returns: A human readable descriptive text for this resource, up to 64 characters long. Return type: unicode
-
ip_access_control_list_sid
¶ Returns: The unique id of the IpAccessControlList resource that includes this resource. Return type: unicode
-
ip_address
¶ Returns: An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. Return type: unicode
-
sid
¶ Returns: A 34 character string that uniquely identifies this resource. Return type: unicode
-
update
(ip_address=<object object>, friendly_name=<object object>, cidr_prefix_length=<object object>)[source]¶ Update the IpAddressInstance
Parameters: - ip_address (unicode) – An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
- friendly_name (unicode) – A human readable descriptive text for this resource, up to 64 characters long.
- cidr_prefix_length (unicode) – An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
Returns: The updated IpAddressInstance
Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
uri
¶ Returns: The URI for this resource, relative to https://api.twilio.com Return type: unicode
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.
IpAddressList
(version, account_sid, ip_access_control_list_sid)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(friendly_name, ip_address, cidr_prefix_length=<object object>)[source]¶ Create the IpAddressInstance
Parameters: - friendly_name (unicode) – A human readable descriptive text for this resource, up to 64 characters long.
- ip_address (unicode) – An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
- cidr_prefix_length (unicode) – An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
Returns: The created IpAddressInstance
Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
get
(sid)[source]¶ Constructs a IpAddressContext
Parameters: sid – A string that identifies the IpAddress resource to fetch Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressContext Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of IpAddressInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of IpAddressInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressPage
-
list
(limit=None, page_size=None)[source]¶ Lists IpAddressInstance 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.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of IpAddressInstance records from the API. Request is executed immediately
Parameters: Returns: Page of IpAddressInstance
Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressPage
-
stream
(limit=None, page_size=None)[source]¶ Streams IpAddressInstance 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.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance]
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.
IpAddressPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of IpAddressInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressInstance
-
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.
IpAccessControlListContext
(version, account_sid, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the IpAccessControlListInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the IpAccessControlListInstance
Returns: The fetched IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-
ip_addresses
¶ Access the ip_addresses
Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressList Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressList
-
update
(friendly_name)[source]¶ Update the IpAccessControlListInstance
Parameters: friendly_name (unicode) – A human readable description of this resource Returns: The updated IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.
IpAccessControlListInstance
(version, payload, account_sid, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The unique sid that identifies this account Return type: unicode
-
date_created
¶ Returns: The date this resource was created Return type: datetime
-
date_updated
¶ Returns: The date this resource was last updated Return type: datetime
-
delete
()[source]¶ Deletes the IpAccessControlListInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the IpAccessControlListInstance
Returns: The fetched IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-
friendly_name
¶ Returns: A human readable description of this resource Return type: unicode
-
ip_addresses
¶ Access the ip_addresses
Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressList Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.ip_address.IpAddressList
-
sid
¶ Returns: A string that uniquely identifies this resource Return type: unicode
-
subresource_uris
¶ Returns: The IP addresses associated with this resource. Return type: unicode
-
update
(friendly_name)[source]¶ Update the IpAccessControlListInstance
Parameters: friendly_name (unicode) – A human readable description of this resource Returns: The updated IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-
uri
¶ Returns: The URI for this resource Return type: unicode
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.
IpAccessControlListList
(version, account_sid)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(friendly_name)[source]¶ Create the IpAccessControlListInstance
Parameters: friendly_name (unicode) – A human readable description of this resource Returns: The created IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-
get
(sid)[source]¶ Constructs a IpAccessControlListContext
Parameters: sid – A string that identifies the resource to fetch Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListContext Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of IpAccessControlListInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListPage
-
list
(limit=None, page_size=None)[source]¶ Lists IpAccessControlListInstance 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.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of IpAccessControlListInstance records from the API. Request is executed immediately
Parameters: Returns: Page of IpAccessControlListInstance
Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListPage
-
stream
(limit=None, page_size=None)[source]¶ Streams IpAccessControlListInstance 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.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance]
-
-
class
twilio.rest.api.v2010.account.sip.ip_access_control_list.
IpAccessControlListPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of IpAccessControlListInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance Return type: twilio.rest.api.v2010.account.sip.ip_access_control_list.IpAccessControlListInstance
-