Compartilhar via


ContainerResources Class

Definition

Container App container resource requirements.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerResourcesTypeConverter))]
public class ContainerResources : Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerResources
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerResourcesTypeConverter))>]
type ContainerResources = class
    interface IContainerResources
    interface IJsonSerializable
Public Class ContainerResources
Implements IContainerResources
Inheritance
ContainerResources
Attributes
Implements

Constructors

ContainerResources()

Creates an new ContainerResources instance.

Properties

Cpu

Required CPU in cores, e.g. 0.5

EphemeralStorage

Ephemeral Storage, e.g. "1Gi"

Memory

Required memory, e.g. "250Mb"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ContainerResources.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ContainerResources.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerResources.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ContainerResources into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to