Class: Telnyx::Resources::CredentialConnections
- Inherits:
-
Object
- Object
- Telnyx::Resources::CredentialConnections
- Defined in:
- lib/telnyx/resources/credential_connections.rb,
lib/telnyx/resources/credential_connections/actions.rb
Overview
Credential connection operations
Defined Under Namespace
Classes: Actions
Instance Attribute Summary collapse
-
#actions ⇒ Telnyx::Resources::CredentialConnections::Actions
readonly
Credential connection operations.
Instance Method Summary collapse
-
#create(connection_name:, password:, user_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, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, sip_uri_calling_preference: nil, tags: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionCreateResponse
Some parameter documentations has been truncated, see Models::CredentialConnectionCreateParams for more details.
-
#delete(id, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionDeleteResponse
Deletes an existing credential connection.
-
#initialize(client:) ⇒ CredentialConnections
constructor
private
A new instance of CredentialConnections.
-
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::CredentialConnection>
Some parameter documentations has been truncated, see Models::CredentialConnectionListParams for more details.
-
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionRetrieveResponse
Retrieves the details of an existing credential 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, password: nil, rtcp_settings: nil, sip_uri_calling_preference: nil, tags: nil, user_name: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::CredentialConnectionUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ CredentialConnections
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 CredentialConnections.
236 237 238 239 |
# File 'lib/telnyx/resources/credential_connections.rb', line 236 def initialize(client:) @client = client @actions = Telnyx::Resources::CredentialConnections::Actions.new(client: client) end |
Instance Attribute Details
#actions ⇒ Telnyx::Resources::CredentialConnections::Actions (readonly)
Credential connection operations
9 10 11 |
# File 'lib/telnyx/resources/credential_connections.rb', line 9 def actions @actions end |
Instance Method Details
#create(connection_name:, password:, user_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, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, rtcp_settings: nil, sip_uri_calling_preference: nil, tags: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionCreateResponse
Some parameter documentations has been truncated, see Models::CredentialConnectionCreateParams for more details.
Creates a credential connection.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/telnyx/resources/credential_connections.rb', line 73 def create(params) parsed, = Telnyx::CredentialConnectionCreateParams.dump_request(params) @client.request( method: :post, path: "credential_connections", body: parsed, model: Telnyx::Models::CredentialConnectionCreateResponse, options: ) end |
#delete(id, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionDeleteResponse
Deletes an existing credential connection.
224 225 226 227 228 229 230 231 |
# File 'lib/telnyx/resources/credential_connections.rb', line 224 def delete(id, params = {}) @client.request( method: :delete, path: ["credential_connections/%1$s", id], model: Telnyx::Models::CredentialConnectionDeleteResponse, options: params[:request_options] ) end |
#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::CredentialConnection>
Some parameter documentations has been truncated, see Models::CredentialConnectionListParams for more details.
Returns a list of your credential connections.
filter[connection_
200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/telnyx/resources/credential_connections.rb', line 200 def list(params = {}) parsed, = Telnyx::CredentialConnectionListParams.dump_request(params) query = Telnyx::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "credential_connections", query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"), page: Telnyx::Internal::DefaultFlatPagination, model: Telnyx::CredentialConnection, options: ) end |
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionRetrieveResponse
Retrieves the details of an existing credential connection.
95 96 97 98 99 100 101 102 |
# File 'lib/telnyx/resources/credential_connections.rb', line 95 def retrieve(id, params = {}) @client.request( method: :get, path: ["credential_connections/%1$s", id], model: Telnyx::Models::CredentialConnectionRetrieveResponse, 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, password: nil, rtcp_settings: nil, sip_uri_calling_preference: nil, tags: nil, user_name: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil, request_options: {}) ⇒ Telnyx::Models::CredentialConnectionUpdateResponse
Some parameter documentations has been truncated, see Models::CredentialConnectionUpdateParams for more details.
Updates settings of an existing credential connection.
168 169 170 171 172 173 174 175 176 177 |
# File 'lib/telnyx/resources/credential_connections.rb', line 168 def update(id, params = {}) parsed, = Telnyx::CredentialConnectionUpdateParams.dump_request(params) @client.request( method: :patch, path: ["credential_connections/%1$s", id], body: parsed, model: Telnyx::Models::CredentialConnectionUpdateResponse, options: ) end |