你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

Name Description
ContainerResourceLimits()

Initializes a new instance of ContainerResourceLimits.

Properties

Name Description
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

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
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