Class: Telnyx::Models::GlobalIPUsageRetrieveParams::Filter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/global_ip_usage_retrieve_params.rb

Defined Under Namespace

Modules: GlobalIPID

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(global_ip_id: nil) ⇒ Object

Consolidated filter parameter (deepObject style). Originally: filter[in]

Parameters:



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
# File 'lib/telnyx/models/global_ip_usage_retrieve_params.rb', line 25

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute global_ip_id
  #   Filter by exact Global IP ID
  #
  #   @return [String, Telnyx::Models::GlobalIPUsageRetrieveParams::Filter::GlobalIPID::In, nil]
  optional :global_ip_id, union: -> { Telnyx::GlobalIPUsageRetrieveParams::Filter::GlobalIPID }

  # @!method initialize(global_ip_id: nil)
  #   Consolidated filter parameter (deepObject style). Originally:
  #   filter[global_ip_id][in]
  #
  #   @param global_ip_id [String, Telnyx::Models::GlobalIPUsageRetrieveParams::Filter::GlobalIPID::In] Filter by exact Global IP ID

  # Filter by exact Global IP ID
  #
  # @see Telnyx::Models::GlobalIPUsageRetrieveParams::Filter#global_ip_id
  module GlobalIPID
    extend Telnyx::Internal::Type::Union

    # Filter by exact Global IP ID
    variant String

    # Filtering operations
    variant -> { Telnyx::GlobalIPUsageRetrieveParams::Filter::GlobalIPID::In }

    class In < Telnyx::Internal::Type::BaseModel
      # @!attribute in_
      #   Filter by Global IP ID(s) separated by commas
      #
      #   @return [String, nil]
      optional :in_, String, api_name: :in

      # @!method initialize(in_: nil)
      #   Filtering operations
      #
      #   @param in_ [String] Filter by Global IP ID(s) separated by commas
    end

    # @!method self.variants
    #   @return [Array(String, Telnyx::Models::GlobalIPUsageRetrieveParams::Filter::GlobalIPID::In)]
  end
end

Instance Attribute Details

#global_ip_idString, ...

Filter by exact Global IP ID



30
# File 'lib/telnyx/models/global_ip_usage_retrieve_params.rb', line 30

optional :global_ip_id, union: -> { Telnyx::GlobalIPUsageRetrieveParams::Filter::GlobalIPID }