你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BaseContainer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Container App base container definition.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.BaseContainerTypeConverter))]
public class BaseContainer : Microsoft.Azure.PowerShell.Cmdlets.App.Models.IBaseContainer
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.BaseContainerTypeConverter))>]
type BaseContainer = class
interface IBaseContainer
interface IJsonSerializable
Public Class BaseContainer
Implements IBaseContainer
- Inheritance
-
BaseContainer
- Attributes
- Implements
Constructors
BaseContainer() |
Creates an new BaseContainer instance. |
Properties
Arg |
Container start command arguments. |
Command |
Container start command. |
Env |
Container environment variables. |
Image |
Container image tag. |
Name |
Custom container name. |
ResourceCpu |
Required CPU in cores, e.g. 0.5 |
ResourceEphemeralStorage |
Ephemeral Storage, e.g. "1Gi" |
ResourceMemory |
Required memory, e.g. "250Mb" |
VolumeMount |
Container volume mounts. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of BaseContainer. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of BaseContainer. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.App.Models.IBaseContainer. |
FromJsonString(String) |
Creates a new instance of BaseContainer, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of BaseContainer into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |