Class: Telnyx::Resources::GlobalIPAllowedPorts
- Inherits:
-
Object
- Object
- Telnyx::Resources::GlobalIPAllowedPorts
- Defined in:
- lib/telnyx/resources/global_ip_allowed_ports.rb
Overview
Global IPs
Instance Method Summary collapse
-
#initialize(client:) ⇒ GlobalIPAllowedPorts
constructor
private
A new instance of GlobalIPAllowedPorts.
-
#list(request_options: {}) ⇒ Telnyx::Models::GlobalIPAllowedPortListResponse
List all Global IP Allowed Ports.
Constructor Details
#initialize(client:) ⇒ GlobalIPAllowedPorts
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 GlobalIPAllowedPorts.
28 29 30 |
# File 'lib/telnyx/resources/global_ip_allowed_ports.rb', line 28 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ Telnyx::Models::GlobalIPAllowedPortListResponse
List all Global IP Allowed Ports
16 17 18 19 20 21 22 23 |
# File 'lib/telnyx/resources/global_ip_allowed_ports.rb', line 16 def list(params = {}) @client.request( method: :get, path: "global_ip_allowed_ports", model: Telnyx::Models::GlobalIPAllowedPortListResponse, options: params[:request_options] ) end |