Share via


Disk Class

Definition

Describes a disk on the machine

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.DiskTypeConverter))]
public class Disk : Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IDisk
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.DiskTypeConverter))>]
type Disk = class
    interface IDisk
    interface IJsonSerializable
Public Class Disk
Implements IDisk
Inheritance
Disk
Attributes
Implements

Constructors

Disk()

Creates an new Disk instance.

Properties

GeneratedId

The generated ID of the disk.

Id

The ID of the disk.

MaxSizeInByte

The size of the disk, in bytes

Name

The name of the disk.

Path

The path of the disk.

Type

The type of the disk.

UsedSpaceInByte

The amount of space used on the disk, in bytes

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Disk.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Disk.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IDisk.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Disk into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to