Class: Telnyx::Resources::IPConnections
- Inherits:
-
Object
- Object
- Telnyx::Resources::IPConnections
- Defined in:
- lib/telnyx/resources/ip_connections.rb
Overview
IP connection operations
Instance Method Summary collapse
-
#create(active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: nil, connection_name: nil, default_on_hold_comfort_noise_enabled: nil, dtmf_type: nil, encode_contact_header_enabled: nil, encrypted_media: nil, inbound: nil, ios_push_credential_id: nil, jitter_buffer: nil, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, tags: nil, transport_protocol: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::IPConnectionCreateResponse
Some parameter documentations has been truncated, see Models::IPConnectionCreateParams for more details.
-
#delete(id, request_options: {}) ⇒ Telnyx::Models::IPConnectionDeleteResponse
Deletes an existing IP connection.
-
#initialize(client:) ⇒ IPConnections
constructor
private
A new instance of IPConnections.
-
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::IPConnection>
Some parameter documentations has been truncated, see Models::IPConnectionListParams for more details.
-
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::IPConnectionRetrieveResponse
Retrieves the details of an existing ip connection.
-
#update(id, active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: nil, connection_name: nil, default_on_hold_comfort_noise_enabled: nil, dtmf_type: nil, encode_contact_header_enabled: nil, encrypted_media: nil, inbound: nil, ios_push_credential_id: nil, jitter_buffer: nil, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, tags: nil, transport_protocol: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::IPConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::IPConnectionUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ IPConnections
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of IPConnections.
224 225 226 |
# File 'lib/telnyx/resources/ip_connections.rb', line 224 def initialize(client:) @client = client end |
Instance Method Details
#create(active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: nil, connection_name: nil, default_on_hold_comfort_noise_enabled: nil, dtmf_type: nil, encode_contact_header_enabled: nil, encrypted_media: nil, inbound: nil, ios_push_credential_id: nil, jitter_buffer: nil, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, tags: nil, transport_protocol: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::IPConnectionCreateResponse
Some parameter documentations has been truncated, see Models::IPConnectionCreateParams for more details.
Creates an IP connection.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/telnyx/resources/ip_connections.rb', line 65 def create(params = {}) parsed, = Telnyx::IPConnectionCreateParams.dump_request(params) @client.request( method: :post, path: "ip_connections", body: parsed, model: Telnyx::Models::IPConnectionCreateResponse, options: ) end |
#delete(id, request_options: {}) ⇒ Telnyx::Models::IPConnectionDeleteResponse
Deletes an existing IP connection.
212 213 214 215 216 217 218 219 |
# File 'lib/telnyx/resources/ip_connections.rb', line 212 def delete(id, params = {}) @client.request( method: :delete, path: ["ip_connections/%1$s", id], model: Telnyx::Models::IPConnectionDeleteResponse, options: params[:request_options] ) end |
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::IPConnection>
Some parameter documentations has been truncated, see Models::IPConnectionListParams for more details.
Returns a list of your IP connections.
filter[connection_
188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/telnyx/resources/ip_connections.rb', line 188 def list(params = {}) parsed, = Telnyx::IPConnectionListParams.dump_request(params) query = Telnyx::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "ip_connections", query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"), page: Telnyx::Internal::DefaultFlatPagination, model: Telnyx::IPConnection, options: ) end |
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::IPConnectionRetrieveResponse
Retrieves the details of an existing ip connection.
87 88 89 90 91 92 93 94 |
# File 'lib/telnyx/resources/ip_connections.rb', line 87 def retrieve(id, params = {}) @client.request( method: :get, path: ["ip_connections/%1$s", id], model: Telnyx::Models::IPConnectionRetrieveResponse, options: params[:request_options] ) end |
#update(id, active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: nil, connection_name: nil, default_on_hold_comfort_noise_enabled: nil, dtmf_type: nil, encode_contact_header_enabled: nil, encrypted_media: nil, inbound: nil, ios_push_credential_id: nil, jitter_buffer: nil, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, tags: nil, transport_protocol: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::IPConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::IPConnectionUpdateParams for more details.
Updates settings of an existing IP connection.
156 157 158 159 160 161 162 163 164 165 |
# File 'lib/telnyx/resources/ip_connections.rb', line 156 def update(id, params = {}) parsed, = Telnyx::IPConnectionUpdateParams.dump_request(params) @client.request( method: :patch, path: ["ip_connections/%1$s", id], body: parsed, model: Telnyx::Models::IPConnectionUpdateResponse, options: ) end |