Class: Telnyx::Models::AccessIPAddressListParams::Filter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AccessIPAddressListParams::Filter
- Defined in:
- lib/telnyx/models/access_ip_address_list_params.rb,
sig/telnyx/models/access_ip_address_list_params.rbs
Defined Under Namespace
Modules: CreatedAt
Instance Attribute Summary collapse
-
#created_at ⇒ Time, ...
Filter by exact creation date-time.
-
#ip_address ⇒ String?
Filter by IP address.
-
#ip_source ⇒ String?
Filter by IP source.
Instance Method Summary collapse
-
#initialize(created_at: nil, ip_address: nil, ip_source: nil) ⇒ Object
constructor
Consolidated filter parameter (deepObject style).
- #to_hash ⇒ {
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(created_at: nil, ip_address: nil, ip_source: nil) ⇒ Object
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/telnyx/models/access_ip_address_list_params.rb', line 40 class Filter < Telnyx::Internal::Type::BaseModel # @!attribute created_at # Filter by exact creation date-time # # @return [Time, Telnyx::Models::AccessIPAddressListParams::Filter::CreatedAt::DateRangeFilter, nil] optional :created_at, union: -> { Telnyx::AccessIPAddressListParams::Filter::CreatedAt } # @!attribute ip_address # Filter by IP address # # @return [String, nil] optional :ip_address, String # @!attribute ip_source # Filter by IP source # # @return [String, nil] optional :ip_source, String # @!method initialize(created_at: nil, ip_address: nil, ip_source: nil) # Consolidated filter parameter (deepObject style). Originally: filter[ip_source], # filter[ip_address], filter[created_at]. Supports complex bracket operations for # dynamic filtering. # # @param created_at [Time, Telnyx::Models::AccessIPAddressListParams::Filter::CreatedAt::DateRangeFilter] Filter by exact creation date-time # # @param ip_address [String] Filter by IP address # # @param ip_source [String] Filter by IP source # Filter by exact creation date-time # # @see Telnyx::Models::AccessIPAddressListParams::Filter#created_at module CreatedAt extend Telnyx::Internal::Type::Union # Filter by exact creation date-time variant Time # Date range filtering operations variant -> { Telnyx::AccessIPAddressListParams::Filter::CreatedAt::DateRangeFilter } class DateRangeFilter < Telnyx::Internal::Type::BaseModel # @!attribute gt # Filter for creation date-time greater than # # @return [Time, nil] optional :gt, Time # @!attribute gte # Filter for creation date-time greater than or equal to # # @return [Time, nil] optional :gte, Time # @!attribute lt # Filter for creation date-time less than # # @return [Time, nil] optional :lt, Time # @!attribute lte # Filter for creation date-time less than or equal to # # @return [Time, nil] optional :lte, Time # @!method initialize(gt: nil, gte: nil, lt: nil, lte: nil) # Date range filtering operations # # @param gt [Time] Filter for creation date-time greater than # # @param gte [Time] Filter for creation date-time greater than or equal to # # @param lt [Time] Filter for creation date-time less than # # @param lte [Time] Filter for creation date-time less than or equal to end # @!method self.variants # @return [Array(Time, Telnyx::Models::AccessIPAddressListParams::Filter::CreatedAt::DateRangeFilter)] end end |
Instance Attribute Details
#created_at ⇒ Time, ...
Filter by exact creation date-time
45 |
# File 'lib/telnyx/models/access_ip_address_list_params.rb', line 45 optional :created_at, union: -> { Telnyx::AccessIPAddressListParams::Filter::CreatedAt } |
#ip_address ⇒ String?
Filter by IP address
51 |
# File 'lib/telnyx/models/access_ip_address_list_params.rb', line 51 optional :ip_address, String |
#ip_source ⇒ String?
Filter by IP source
57 |
# File 'lib/telnyx/models/access_ip_address_list_params.rb', line 57 optional :ip_source, String |
Instance Method Details
#to_hash ⇒ {
71 |
# File 'sig/telnyx/models/access_ip_address_list_params.rbs', line 71 def to_hash: -> { |