FixedRatioVersionSelectionRule Class

Definition

The FixedRatioVersionSelectionRule.

public class FixedRatioVersionSelectionRule : Azure.AI.Projects.Agents.VersionSelectionRule, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.FixedRatioVersionSelectionRule>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.FixedRatioVersionSelectionRule>
type FixedRatioVersionSelectionRule = class
    inherit VersionSelectionRule
    interface IJsonModel<FixedRatioVersionSelectionRule>
    interface IPersistableModel<FixedRatioVersionSelectionRule>
Public Class FixedRatioVersionSelectionRule
Inherits VersionSelectionRule
Implements IJsonModel(Of FixedRatioVersionSelectionRule), IPersistableModel(Of FixedRatioVersionSelectionRule)
Inheritance
FixedRatioVersionSelectionRule
Implements

Constructors

Name Description
FixedRatioVersionSelectionRule(String, Int32)

Initializes a new instance of FixedRatioVersionSelectionRule.

Properties

Name Description
AgentVersion

The agent version to route traffic to.

(Inherited from VersionSelectionRule)
TrafficPercentage

The percentage of traffic to route to the version. Must be between 0 and 100.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<FixedRatioVersionSelectionRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<FixedRatioVersionSelectionRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<VersionSelectionRule>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from VersionSelectionRule)
IJsonModel<VersionSelectionRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from VersionSelectionRule)
IPersistableModel<FixedRatioVersionSelectionRule>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<FixedRatioVersionSelectionRule>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<FixedRatioVersionSelectionRule>.Write(ModelReaderWriterOptions)
IPersistableModel<VersionSelectionRule>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from VersionSelectionRule)
IPersistableModel<VersionSelectionRule>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from VersionSelectionRule)
IPersistableModel<VersionSelectionRule>.Write(ModelReaderWriterOptions) (Inherited from VersionSelectionRule)

Applies to