Class: Telnyx::Resources::FqdnConnections
- Inherits:
-
Object
- Object
- Telnyx::Resources::FqdnConnections
- Defined in:
- lib/telnyx/resources/fqdn_connections.rb
Instance Method Summary collapse
-
#create(connection_name:, active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: 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, microsoft_teams_sbc: 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::FqdnConnectionCreateResponse
Some parameter documentations has been truncated, see Models::FqdnConnectionCreateParams for more details.
-
#delete(id, request_options: {}) ⇒ Telnyx::Models::FqdnConnectionDeleteResponse
Deletes an FQDN connection.
-
#initialize(client:) ⇒ FqdnConnections
constructor
private
A new instance of FqdnConnections.
-
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::FqdnConnection>
Some parameter documentations has been truncated, see Models::FqdnConnectionListParams for more details.
-
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::FqdnConnectionRetrieveResponse
Retrieves the details of an existing FQDN 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::FqdnConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::FqdnConnectionUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ FqdnConnections
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 FqdnConnections.
224 225 226 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 224 def initialize(client:) @client = client end |
Instance Method Details
#create(connection_name:, active: nil, anchorsite_override: nil, android_push_credential_id: nil, call_cost_in_webhooks: 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, microsoft_teams_sbc: 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::FqdnConnectionCreateResponse
Some parameter documentations has been truncated, see Models::FqdnConnectionCreateParams for more details.
Creates a FQDN connection.
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 66 def create(params) parsed, = Telnyx::FqdnConnectionCreateParams.dump_request(params) @client.request( method: :post, path: "fqdn_connections", body: parsed, model: Telnyx::Models::FqdnConnectionCreateResponse, options: ) end |
#delete(id, request_options: {}) ⇒ Telnyx::Models::FqdnConnectionDeleteResponse
Deletes an FQDN connection.
212 213 214 215 216 217 218 219 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 212 def delete(id, params = {}) @client.request( method: :delete, path: ["fqdn_connections/%1$s", id], model: Telnyx::Models::FqdnConnectionDeleteResponse, options: params[:request_options] ) end |
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::FqdnConnection>
Some parameter documentations has been truncated, see Models::FqdnConnectionListParams for more details.
Returns a list of your FQDN connections.
filter[connection_
189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 189 def list(params = {}) parsed, = Telnyx::FqdnConnectionListParams.dump_request(params) @client.request( method: :get, path: "fqdn_connections", query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"), page: Telnyx::Internal::DefaultFlatPagination, model: Telnyx::FqdnConnection, options: ) end |
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::FqdnConnectionRetrieveResponse
Retrieves the details of an existing FQDN connection.
88 89 90 91 92 93 94 95 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 88 def retrieve(id, params = {}) @client.request( method: :get, path: ["fqdn_connections/%1$s", id], model: Telnyx::Models::FqdnConnectionRetrieveResponse, 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::FqdnConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::FqdnConnectionUpdateParams for more details.
Updates settings of an existing FQDN connection.
157 158 159 160 161 162 163 164 165 166 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 157 def update(id, params = {}) parsed, = Telnyx::FqdnConnectionUpdateParams.dump_request(params) @client.request( method: :patch, path: ["fqdn_connections/%1$s", id], body: parsed, model: Telnyx::Models::FqdnConnectionUpdateResponse, options: ) end |