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
Defined Under Namespace
Classes: Actions
Instance Attribute Summary collapse
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.
233 234 235 236 |
# File 'lib/telnyx/resources/credential_connections.rb', line 233 def initialize(client:) @client = client @actions = Telnyx::Resources::CredentialConnections::Actions.new(client: client) end |
Instance Attribute Details
#actions ⇒ Telnyx::Resources::CredentialConnections::Actions (readonly)
7 8 9 |
# File 'lib/telnyx/resources/credential_connections.rb', line 7 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.
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/telnyx/resources/credential_connections.rb', line 71 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.
221 222 223 224 225 226 227 228 |
# File 'lib/telnyx/resources/credential_connections.rb', line 221 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_
198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/telnyx/resources/credential_connections.rb', line 198 def list(params = {}) parsed, = Telnyx::CredentialConnectionListParams.dump_request(params) @client.request( method: :get, path: "credential_connections", query: parsed.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.
93 94 95 96 97 98 99 100 |
# File 'lib/telnyx/resources/credential_connections.rb', line 93 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.
166 167 168 169 170 171 172 173 174 175 |
# File 'lib/telnyx/resources/credential_connections.rb', line 166 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 |