Class: Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout
- Defined in:
- lib/telnyx/models/ai/assistants/canary_deploy.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(rollout: nil, version_id: nil) ⇒ Object
constructor
What a rule serves when matched.
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(rollout: nil, version_id: nil) ⇒ Object
What a rule serves when matched.
Exactly one of:
-
‘version_id` — serve a specific version
-
‘rollout` — weighted random across versions; weights must sum to less than 100, with the leftover routing to the main version
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy.rb', line 75 class Rollout < Telnyx::Internal::Type::BaseModel # @!attribute version_id # # @return [String] required :version_id, String # @!attribute weight # # @return [Float] required :weight, Float # @!method initialize(version_id:, weight:) # One slot in a percentage rollout. # # @param version_id [String] # @param weight [Float] end |
Instance Attribute Details
#version_id ⇒ String
79 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy.rb', line 79 required :version_id, String |
#weight ⇒ Float
84 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy.rb', line 84 required :weight, Float |