Share via


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