Share via


DiskImagePatch Class

Definition

The source user image virtual hard disk. Only tags may be updated.

public class DiskImagePatch : Azure.ResourceManager.Compute.Models.ComputeResourcePatch, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.DiskImagePatch>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.DiskImagePatch>
type DiskImagePatch = class
    inherit ComputeResourcePatch
    interface IJsonModel<DiskImagePatch>
    interface IPersistableModel<DiskImagePatch>
Public Class DiskImagePatch
Inherits ComputeResourcePatch
Implements IJsonModel(Of DiskImagePatch), IPersistableModel(Of DiskImagePatch)
Inheritance
DiskImagePatch
Implements

Constructors

DiskImagePatch()

Initializes a new instance of DiskImagePatch.

Properties

HyperVGeneration

Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.

ProvisioningState

The provisioning state.

SourceVirtualMachineId

Gets or sets Id.

StorageProfile

Specifies the storage settings for the virtual machine disks.

Tags

Resource tags.

(Inherited from ComputeResourcePatch)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ComputeResourcePatch)

Explicit Interface Implementations

IJsonModel<ComputeResourcePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ComputeResourcePatch)
IJsonModel<ComputeResourcePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ComputeResourcePatch)
IJsonModel<DiskImagePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DiskImagePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputeResourcePatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ComputeResourcePatch)
IPersistableModel<ComputeResourcePatch>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ComputeResourcePatch)
IPersistableModel<ComputeResourcePatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ComputeResourcePatch)
IPersistableModel<DiskImagePatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DiskImagePatch>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DiskImagePatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to