Class: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/assistants/canary_deploy_response.rb

Defined Under Namespace

Modules: Operator

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(attribute:, operator:, values:) ⇒ Object

A single attribute/operator/values check.

A clause matches when the routing context’s value for ‘attribute` satisfies `operator` against any of `values`.

Parameters:



# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 133

Instance Attribute Details

#attributeString

Attribute name from the routing context

Returns:

  • (String)


120
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 120

required :attribute, String

#operatorSymbol, Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::Operator

Match operator



126
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 126

required :operator, enum: -> { Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match::Operator }

#valuesArray<String>

Returns:

  • (Array<String>)


131
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 131

required :values, Telnyx::Internal::Type::ArrayOf[String]