Share via


DiskCustomerManagedKey Class

Definition

The Customer Managed Key reference to encrypt the Disk.

public class DiskCustomerManagedKey : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.DiskCustomerManagedKey>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.DiskCustomerManagedKey>
type DiskCustomerManagedKey = class
    interface IJsonModel<DiskCustomerManagedKey>
    interface IPersistableModel<DiskCustomerManagedKey>
Public Class DiskCustomerManagedKey
Implements IJsonModel(Of DiskCustomerManagedKey), IPersistableModel(Of DiskCustomerManagedKey)
Inheritance
DiskCustomerManagedKey
Implements

Constructors

Name Description
DiskCustomerManagedKey()

Initializes a new instance of DiskCustomerManagedKey.

Properties

Name Description
IdentityReference

The reference of one of the pool identities to encrypt Disk. This identity will be used to access the KeyVault.

KeyUrl

Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.

RotationToLatestKeyVersionEnabled

Set this flag to true to enable auto-updating of the Disk Encryption to the latest key version. Default is false.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<DiskCustomerManagedKey>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DiskCustomerManagedKey>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DiskCustomerManagedKey>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DiskCustomerManagedKey>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DiskCustomerManagedKey>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to