Share via


ResourceRequirements Class

Definition

The resource requirements.

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

Constructors

ResourceRequirements()

Creates an new ResourceRequirements instance.

Properties

LimitCpu

The CPU limit of this container instance.

LimitMemoryInGb

The memory limit in GB of this container instance.

LimitsGpuCount

The count of the GPU resource.

LimitsGpuSku

The SKU of the GPU resource.

RequestCpu

The CPU request of this container instance.

RequestMemoryInGb

The memory request in GB of this container instance.

RequestsGpuCount

The count of the GPU resource.

RequestsGpuSku

The SKU of the GPU resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ResourceRequirements.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ResourceRequirements.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ResourceRequirements into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to