Class: Telnyx::Resources::SiprecConnectors
- Inherits:
-
Object
- Object
- Telnyx::Resources::SiprecConnectors
- Defined in:
- lib/telnyx/resources/siprec_connectors.rb
Instance Method Summary collapse
-
#create(host:, name:, port:, app_subdomain: nil, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorCreateResponse
Some parameter documentations has been truncated, see Models::SiprecConnectorCreateParams for more details.
-
#delete(connector_name, request_options: {}) ⇒ nil
Deletes a stored SIPREC connector.
-
#initialize(client:) ⇒ SiprecConnectors
constructor
private
A new instance of SiprecConnectors.
-
#retrieve(connector_name, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorRetrieveResponse
Returns details of a stored SIPREC connector.
-
#update(connector_name, host:, name:, port:, app_subdomain: nil, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorUpdateResponse
Some parameter documentations has been truncated, see Models::SiprecConnectorUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ SiprecConnectors
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 SiprecConnectors.
113 114 115 |
# File 'lib/telnyx/resources/siprec_connectors.rb', line 113 def initialize(client:) @client = client end |
Instance Method Details
#create(host:, name:, port:, app_subdomain: nil, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorCreateResponse
Some parameter documentations has been truncated, see Models::SiprecConnectorCreateParams for more details.
Creates a new SIPREC connector configuration.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/telnyx/resources/siprec_connectors.rb', line 26 def create(params) parsed, = Telnyx::SiprecConnectorCreateParams.dump_request(params) @client.request( method: :post, path: "siprec_connectors", body: parsed, model: Telnyx::Models::SiprecConnectorCreateResponse, options: ) end |
#delete(connector_name, request_options: {}) ⇒ nil
Deletes a stored SIPREC connector.
101 102 103 104 105 106 107 108 |
# File 'lib/telnyx/resources/siprec_connectors.rb', line 101 def delete(connector_name, params = {}) @client.request( method: :delete, path: ["siprec_connectors/%1$s", connector_name], model: NilClass, options: params[:request_options] ) end |
#retrieve(connector_name, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorRetrieveResponse
Returns details of a stored SIPREC connector.
48 49 50 51 52 53 54 55 |
# File 'lib/telnyx/resources/siprec_connectors.rb', line 48 def retrieve(connector_name, params = {}) @client.request( method: :get, path: ["siprec_connectors/%1$s", connector_name], model: Telnyx::Models::SiprecConnectorRetrieveResponse, options: params[:request_options] ) end |
#update(connector_name, host:, name:, port:, app_subdomain: nil, request_options: {}) ⇒ Telnyx::Models::SiprecConnectorUpdateResponse
Some parameter documentations has been truncated, see Models::SiprecConnectorUpdateParams for more details.
Updates a stored SIPREC connector configuration.
79 80 81 82 83 84 85 86 87 88 |
# File 'lib/telnyx/resources/siprec_connectors.rb', line 79 def update(connector_name, params) parsed, = Telnyx::SiprecConnectorUpdateParams.dump_request(params) @client.request( method: :put, path: ["siprec_connectors/%1$s", connector_name], body: parsed, model: Telnyx::Models::SiprecConnectorUpdateResponse, options: ) end |