Class: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout
- Defined in:
- lib/telnyx/models/ai/assistants/canary_deploy_response.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
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 96 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
100 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 100 required :version_id, String |
#weight ⇒ Float
105 |
# File 'lib/telnyx/models/ai/assistants/canary_deploy_response.rb', line 105 required :weight, Float |