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

ResourceLimits Class

Definition

The resource limits.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter))]
public class ResourceLimits : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter))>]
type ResourceLimits = class
    interface IResourceLimits
    interface IJsonSerializable
Public Class ResourceLimits
Implements IResourceLimits
Inheritance
ResourceLimits
Attributes
Implements

Constructors

ResourceLimits()

Creates an new ResourceLimits instance.

Properties

Cpu

The CPU limit of this container instance.

GpuCount

The count of the GPU resource.

GpuSku

The SKU of the GPU resource.

MemoryInGb

The memory limit in GB of this container instance.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ResourceLimits.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ResourceLimits.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits.

FromJsonString(String)

Creates a new instance of ResourceLimits, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ResourceLimits into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to