Class: Telnyx::Models::AccessIPRangeListParams::Filter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AccessIPRangeListParams::Filter
- Defined in:
- lib/telnyx/models/access_ip_range_list_params.rb,
sig/telnyx/models/access_ip_range_list_params.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#cidr_block ⇒ String, ...
Filter by exact CIDR block match.
-
#created_at ⇒ Time, ...
Filter by exact creation date-time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(contains: nil, endswith: nil, startswith: nil) ⇒ Object
constructor
CIDR block pattern matching operations.
- #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(contains: nil, endswith: nil, startswith: nil) ⇒ Object
CIDR block pattern matching operations
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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/telnyx/models/access_ip_range_list_params.rb', line 41 class Filter < Telnyx::Internal::Type::BaseModel # @!attribute cidr_block # Filter by exact CIDR block match # # @return [String, Telnyx::Models::AccessIPRangeListParams::Filter::CidrBlock::CidrBlockPatternFilter, nil] optional :cidr_block, union: -> { Telnyx::AccessIPRangeListParams::Filter::CidrBlock } # @!attribute created_at # Filter by exact creation date-time # # @return [Time, Telnyx::Models::AccessIPRangeListParams::Filter::CreatedAt::DateRangeFilter, nil] optional :created_at, union: -> { Telnyx::AccessIPRangeListParams::Filter::CreatedAt } # @!method initialize(cidr_block: nil, created_at: nil) # Consolidated filter parameter (deepObject style). Originally: # filter[cidr_block], filter[cidr_block][startswith], # filter[cidr_block][endswith], filter[cidr_block][contains], filter[created_at]. # Supports complex bracket operations for dynamic filtering. # # @param cidr_block [String, Telnyx::Models::AccessIPRangeListParams::Filter::CidrBlock::CidrBlockPatternFilter] Filter by exact CIDR block match # # @param created_at [Time, Telnyx::Models::AccessIPRangeListParams::Filter::CreatedAt::DateRangeFilter] Filter by exact creation date-time # Filter by exact CIDR block match # # @see Telnyx::Models::AccessIPRangeListParams::Filter#cidr_block module CidrBlock extend Telnyx::Internal::Type::Union # Filter by exact CIDR block match variant String # CIDR block pattern matching operations variant -> { Telnyx::AccessIPRangeListParams::Filter::CidrBlock::CidrBlockPatternFilter } class CidrBlockPatternFilter < Telnyx::Internal::Type::BaseModel # @!attribute contains # Filter CIDR blocks containing the specified string # # @return [String, nil] optional :contains, String # @!attribute endswith # Filter CIDR blocks ending with the specified string # # @return [String, nil] optional :endswith, String # @!attribute startswith # Filter CIDR blocks starting with the specified string # # @return [String, nil] optional :startswith, String # @!method initialize(contains: nil, endswith: nil, startswith: nil) # CIDR block pattern matching operations # # @param contains [String] Filter CIDR blocks containing the specified string # # @param endswith [String] Filter CIDR blocks ending with the specified string # # @param startswith [String] Filter CIDR blocks starting with the specified string end # @!method self.variants # @return [Array(String, Telnyx::Models::AccessIPRangeListParams::Filter::CidrBlock::CidrBlockPatternFilter)] end # Filter by exact creation date-time # # @see Telnyx::Models::AccessIPRangeListParams::Filter#created_at module CreatedAt extend Telnyx::Internal::Type::Union # Filter by exact creation date-time variant Time # Date range filtering operations variant -> { Telnyx::AccessIPRangeListParams::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::AccessIPRangeListParams::Filter::CreatedAt::DateRangeFilter)] end end |
Instance Attribute Details
#cidr_block ⇒ String, ...
Filter by exact CIDR block match
46 |
# File 'lib/telnyx/models/access_ip_range_list_params.rb', line 46 optional :cidr_block, union: -> { Telnyx::AccessIPRangeListParams::Filter::CidrBlock } |
#created_at ⇒ Time, ...
Filter by exact creation date-time
52 |
# File 'lib/telnyx/models/access_ip_range_list_params.rb', line 52 optional :created_at, union: -> { Telnyx::AccessIPRangeListParams::Filter::CreatedAt } |
Class Method Details
.variants ⇒ Array(String, Telnyx::Models::AccessIPRangeListParams::Filter::CidrBlock::CidrBlockPatternFilter)
|
|
# File 'lib/telnyx/models/access_ip_range_list_params.rb', line 105
|
Instance Method Details
#to_hash ⇒ {
67 |
# File 'sig/telnyx/models/access_ip_range_list_params.rbs', line 67
def to_hash: -> {
|