Class: Telnyx::Models::IPListParams::Filter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ip_list_params.rb,
sig/telnyx/models/ip_list_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(connection_id: nil, ip_address: nil, port: nil) ⇒ Object

Consolidated filter parameter (deepObject style). Originally: filter, filter, filter

Parameters:

  • connection_id (String) (defaults to: nil)

    ID of the IP Connection to which this IP should be attached.

  • ip_address (String) (defaults to: nil)

    IP adddress represented by this resource.

  • port (Integer) (defaults to: nil)

    Port to use when connecting to this IP.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/telnyx/models/ip_list_params.rb', line 40

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute connection_id
  #   ID of the IP Connection to which this IP should be attached.
  #
  #   @return [String, nil]
  optional :connection_id, String

  # @!attribute ip_address
  #   IP adddress represented by this resource.
  #
  #   @return [String, nil]
  optional :ip_address, String

  # @!attribute port
  #   Port to use when connecting to this IP.
  #
  #   @return [Integer, nil]
  optional :port, Integer

  # @!method initialize(connection_id: nil, ip_address: nil, port: nil)
  #   Consolidated filter parameter (deepObject style). Originally:
  #   filter[connection_id], filter[ip_address], filter[port]
  #
  #   @param connection_id [String] ID of the IP Connection to which this IP should be attached.
  #
  #   @param ip_address [String] IP adddress represented by this resource.
  #
  #   @param port [Integer] Port to use when connecting to this IP.
end

Instance Attribute Details

#connection_idString?

ID of the IP Connection to which this IP should be attached.

Parameters:

  • (String)

Returns:

  • (String, nil)


45
# File 'lib/telnyx/models/ip_list_params.rb', line 45

optional :connection_id, String

#ip_addressString?

IP adddress represented by this resource.

Parameters:

  • (String)

Returns:

  • (String, nil)


51
# File 'lib/telnyx/models/ip_list_params.rb', line 51

optional :ip_address, String

#portInteger?

Port to use when connecting to this IP.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


57
# File 'lib/telnyx/models/ip_list_params.rb', line 57

optional :port, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


64
# File 'sig/telnyx/models/ip_list_params.rbs', line 64

def to_hash: -> {