Share via


ResourceLimits Class

Definition

The resource limits.

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

Constructors

Name Description
ResourceLimits()

Creates an new ResourceLimits instance.

Properties

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

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