Freigeben über


OSDisk Class

Definition

OsDisk represents configuration of the boot disk.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.OSDiskTypeConverter))]
public class OSDisk : Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IOSDisk
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.OSDiskTypeConverter))>]
type OSDisk = class
    interface IOSDisk
    interface IJsonSerializable
Public Class OSDisk
Implements IOSDisk
Inheritance
OSDisk
Attributes
Implements

Constructors

OSDisk()

Creates an new OSDisk instance.

Properties

CreateOption

The strategy for creating the OS disk.

DeleteOption

The strategy for deleting the OS disk.

DiskSizeGb

The size of the disk in gigabytes. Required if the createOption is Ephemeral.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of OSDisk.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of OSDisk.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IOSDisk.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of OSDisk into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to