Class: Telnyx::Resources::FqdnConnections
- Inherits:
-
Object
- Object
- Telnyx::Resources::FqdnConnections
- Defined in:
- lib/telnyx/resources/fqdn_connections.rb,
lib/telnyx/resources/fqdn_connections/fqdn_authentication.rb,
sig/telnyx/resources/fqdn_connections.rbs,
sig/telnyx/resources/fqdn_connections/fqdn_authentication.rbs
Overview
FQDN connection operations
Defined Under Namespace
Classes: FqdnAuthentication
Instance Attribute Summary collapse
-
#fqdn_authentication ⇒ Telnyx::Resources::FqdnConnections::FqdnAuthentication
readonly
FQDN connection operations.
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, conversation_persistence: 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.
232 233 234 235 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 232 def initialize(client:) @client = client @fqdn_authentication = Telnyx::Resources::FqdnConnections::FqdnAuthentication.new(client: client) end |
Instance Attribute Details
#fqdn_authentication ⇒ Telnyx::Resources::FqdnConnections::FqdnAuthentication (readonly)
FQDN connection operations
9 10 11 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 9 def fqdn_authentication @fqdn_authentication 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.
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 71 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.
220 221 222 223 224 225 226 227 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 220 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_
196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 196 def list(params = {}) parsed, = Telnyx::FqdnConnectionListParams.dump_request(params) query = Telnyx::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "fqdn_connections", query: query.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.
93 94 95 96 97 98 99 100 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 93 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, conversation_persistence: 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.
164 165 166 167 168 169 170 171 172 173 |
# File 'lib/telnyx/resources/fqdn_connections.rb', line 164 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 |