ExTwilio.SipIpAddress
Represents an SIP IpAddress in the Twilio API.
Summary↑
all(options \\ []) | Retrieve all of the SipIpAddress records from the Twilio API, paging through all the API response pages |
children() | |
create(data, options \\ []) | Create a new SipIpAddress in the Twilio API. Any field supported by Twilio's SipIpAddress API can be passed in the 'data' keyword list |
destroy(sid, options \\ []) | Delete any SipIpAddress from your Twilio account, using its SID |
find(sid, options \\ []) | Find any SipIpAddress by its Twilio SID |
first_page(metadata) | Get the first page of sipipaddresses, using metadata from any page's response |
last_page(metadata) | Get the last page of sipipaddresses, using metadta from any page's response |
list(options \\ []) | Retrieve a list of SipIpAddresses from the API |
new() | Creates a new ExTwilio.SipIpAddress struct. Optionally, you can pass in attributes to set their initial value in the struct |
new(attrs) | |
next_page(metadata) | Get the next page of sipipaddresses, using the metadata from the previous response. See |
parents() | |
previous_page(metadata) | Get the previous page of sipipaddresses, using metadata from a previous response |
resource_collection_name() | Underscored and lowercased collection name for a given resource. Delegates the real work to |
resource_name() | CamelCase resource name as it would be used in Twilio's API. Delegates the real work to |
stream(options \\ []) | Create a stream of all SipIpAddress records from the Twilio API |
update(sid, data, options \\ []) | Update an SipIpAddress in the Twilio API. You can pass it a binary SID as the identifier, or a whole %ExTwilio.SipIpAddress{} struct |
Functions
Specs:
- all(list) :: [%{}]
Retrieve all of the SipIpAddress records from the Twilio API, paging through all the API response pages.
Delegates to ExTwilio.Api.all/2
.
Examples
sipipaddresses = ExTwilio.SipIpAddress.all
Specs:
- children :: list
Specs:
- create(list, list) :: ExTwilio.Parser.parsed_response
Create a new SipIpAddress in the Twilio API. Any field supported by Twilio's SipIpAddress API can be passed in the 'data' keyword list.
Delegates to ExTwilio.Api.create/3
.
Specs:
- destroy(String.t, list) :: ExTwilio.Parser.success_delete | ExTwilio.Parser.error
Delete any SipIpAddress from your Twilio account, using its SID.
Delegates to ExTwilio.Api.destroy/3
.
Specs:
- find(String.t | nil, list) :: ExTwilio.Parser.parsed_list_response
Find any SipIpAddress by its Twilio SID.
Delegates to ExTwilio.Api.find/3
.
Examples
{:ok, sipipaddress} = ExTwilio.SipIpAddress.find("...")
{:error, msg, http_status} = ExTwilio.SipIpAddress.find("...")
Specs:
- first_page(%{}) :: ExTwilio.Parser.parsed_list_response
Get the first page of sipipaddresses, using metadata from any page's response.
Delegates to ExTwilio.Api.fetch_page/2
.
Examples
{:ok, page10, meta} = ExTwilio.SipIpAddress.list(page: 10)
{:ok, page1, meta} = ExTwilio.SipIpAddress.first_page(meta)
Specs:
- last_page(%{}) :: ExTwilio.Parser.parsed_list_response
Get the last page of sipipaddresses, using metadta from any page's response.
Delegates to ExTwilio.Api.fetch_page/2
.
Examples
{:ok, page10, meta} = ExTwilio.SipIpAddress.list(page: 10)
{:ok, last_page, meta} = ExTwilio.SipIpAddress.last_page(meta)
Specs:
- list(list) :: ExTwilio.Parser.parsed_list_response
Retrieve a list of SipIpAddresses from the API.
Delegates to ExTwilio.Api.list/2
.
Examples
# Successful response
{:ok, sipipaddresses, metadata} = ExTwilio.SipIpAddress.list
# Error response
{:error, msg, http_code} = ExTwilio.SipIpAddress.list
Specs:
- new :: %ExTwilio.SipIpAddress{account_sid: term, date_created: term, date_updated: term, friendly_name: term, ip_address: term, sid: term, uri: term}
Creates a new ExTwilio.SipIpAddress struct. Optionally, you can pass in attributes to set their initial value in the struct.
Example
%ExTwilio.SipIpAddress{} = ExTwilio.SipIpAddress.new
%ExTwilio.SipIpAddress{sid: "sid"} = ExTwilio.SipIpAddress.new(sid: "sid")
Specs:
- new(list) :: %ExTwilio.SipIpAddress{account_sid: term, date_created: term, date_updated: term, friendly_name: term, ip_address: term, sid: term, uri: term}
Specs:
- next_page(%{}) :: ExTwilio.Parser.parsed_list_response
Get the next page of sipipaddresses, using the metadata from the previous response. See all/0
for an easy way to get all the records.
Delegates to ExTwilio.Api.fetch_page/2
.
Examples
{:ok, page1, meta} = ExTwilio.SipIpAddress.list
{:ok, page2, meta} = ExTwilio.SipIpAddress.next_page(meta)
Specs:
- parents :: list
Specs:
- previous_page(%{}) :: ExTwilio.Parser.parsed_list_response
Get the previous page of sipipaddresses, using metadata from a previous response.
Delegates to ExTwilio.Api.fetch_page/2
.
Examples
{:ok, page2, meta} = ExTwilio.SipIpAddress.list(page: 2)
{:ok, page1, meta} = ExTwilio.SipIpAddress.previous_page(meta)
Underscored and lowercased collection name for a given resource. Delegates the real work to ExTwilio.Api.resource_collection_name/1
by default.
Override in your module before use ExTwilio.Resource
if you need something different.
CamelCase resource name as it would be used in Twilio's API. Delegates the real work to ExTwilio.Api.resource_name/1
by default.
Override in your module before use ExTwilio.Resource
if you need something different.
Create a stream of all SipIpAddress records from the Twilio API.
Delegates to ExTwilio.Api.stream/2
.
Specs:
- update(String.t, list, list) :: ExTwilio.Parser.parsed_response
Update an SipIpAddress in the Twilio API. You can pass it a binary SID as the identifier, or a whole %ExTwilio.SipIpAddress{} struct.
Delegates to ExTwilio.Api.update/4
.
Examples
{:ok, sipipaddress} = ExTwilio.SipIpAddress.update(%ExTwilio.SipIpAddress{...}, field: "new_value")
{:ok, sipipaddress} = ExTwilio.SipIpAddress.update("<SID HERE>", field: "new_value")