Share via


ContainerResourceLimits Class

Definition

The resource limits.

public class ContainerResourceLimits : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerInstance.Models.ContainerResourceLimits>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerInstance.Models.ContainerResourceLimits>
type ContainerResourceLimits = class
    interface IJsonModel<ContainerResourceLimits>
    interface IPersistableModel<ContainerResourceLimits>
Public Class ContainerResourceLimits
Implements IJsonModel(Of ContainerResourceLimits), IPersistableModel(Of ContainerResourceLimits)
Inheritance
ContainerResourceLimits
Implements

Constructors

ContainerResourceLimits()

Initializes a new instance of ContainerResourceLimits.

Properties

Cpu

The CPU limit of this container instance.

Gpu

The GPU limit of this container instance.

MemoryInGB

The memory limit in GB of this container instance.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ContainerResourceLimits>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContainerResourceLimits>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerResourceLimits>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerResourceLimits>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContainerResourceLimits>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to