InfrastructureOverrides Class

Definition

Explicitly set tool run requirements - overrides the tool definition.

public class InfrastructureOverrides : System.ClientModel.Primitives.IJsonModel<Azure.AI.Discovery.InfrastructureOverrides>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Discovery.InfrastructureOverrides>
type InfrastructureOverrides = class
    interface IJsonModel<InfrastructureOverrides>
    interface IPersistableModel<InfrastructureOverrides>
Public Class InfrastructureOverrides
Implements IJsonModel(Of InfrastructureOverrides), IPersistableModel(Of InfrastructureOverrides)
Inheritance
InfrastructureOverrides
Implements

Constructors

Name Description
InfrastructureOverrides()

Initializes a new instance of InfrastructureOverrides.

Properties

Name Description
Cpu

Override CPU requirements (e.g. 1, or 500m for 500 milli-CPUs).

Gpu

Override GPU count requirements.

ImageUri

Override the image to use for this tool run.

MaxCpu

Override the maximum CPU allowed for the tool run (e.g. 1, or 500m for 500 milli-CPUs).

MaxGpu

Override the maximum GPU count allowed for the tool run.

MaxRam

Override the maximum RAM allowed for the tool run (e.g. 500Mi or 1Gi).

Ram

Override RAM requirements (e.g. 500Mi or 1Gi).

ReplicaCount

Override the number of replicas of the tool image to run.

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<InfrastructureOverrides>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<InfrastructureOverrides>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<InfrastructureOverrides>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<InfrastructureOverrides>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<InfrastructureOverrides>.Write(ModelReaderWriterOptions)

Applies to