Class: Telnyx::Resources::AI::Integrations::Connections
- Inherits:
-
Object
- Object
- Telnyx::Resources::AI::Integrations::Connections
- Defined in:
- lib/telnyx/resources/ai/integrations/connections.rb
Instance Method Summary collapse
-
#delete(user_connection_id, request_options: {}) ⇒ nil
Delete a specific integration connection.
-
#initialize(client:) ⇒ Connections
constructor
private
A new instance of Connections.
-
#list(request_options: {}) ⇒ Telnyx::Models::AI::Integrations::ConnectionListResponse
List user setup integrations.
-
#retrieve(user_connection_id, request_options: {}) ⇒ Telnyx::Models::AI::Integrations::ConnectionRetrieveResponse
Get user setup integrations.
Constructor Details
#initialize(client:) ⇒ Connections
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 Connections.
69 70 71 |
# File 'lib/telnyx/resources/ai/integrations/connections.rb', line 69 def initialize(client:) @client = client end |
Instance Method Details
#delete(user_connection_id, request_options: {}) ⇒ nil
Delete a specific integration connection.
57 58 59 60 61 62 63 64 |
# File 'lib/telnyx/resources/ai/integrations/connections.rb', line 57 def delete(user_connection_id, params = {}) @client.request( method: :delete, path: ["ai/integrations/connections/%1$s", user_connection_id], model: NilClass, options: params[:request_options] ) end |
#list(request_options: {}) ⇒ Telnyx::Models::AI::Integrations::ConnectionListResponse
List user setup integrations
37 38 39 40 41 42 43 44 |
# File 'lib/telnyx/resources/ai/integrations/connections.rb', line 37 def list(params = {}) @client.request( method: :get, path: "ai/integrations/connections", model: Telnyx::Models::AI::Integrations::ConnectionListResponse, options: params[:request_options] ) end |
#retrieve(user_connection_id, request_options: {}) ⇒ Telnyx::Models::AI::Integrations::ConnectionRetrieveResponse
Get user setup integrations
19 20 21 22 23 24 25 26 |
# File 'lib/telnyx/resources/ai/integrations/connections.rb', line 19 def retrieve(user_connection_id, params = {}) @client.request( method: :get, path: ["ai/integrations/connections/%1$s", user_connection_id], model: Telnyx::Models::AI::Integrations::ConnectionRetrieveResponse, options: params[:request_options] ) end |