你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WorkloadProtectableItem Class

Definition

Base class for backup item. Workload-specific backup items are derived from this class. Please note WorkloadProtectableItem is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FileShareProtectableItem, VmWorkloadProtectableItem, VmWorkloadSapHanaHsrProtectableItem, IaasVmProtectableItem, IaasClassicComputeVmProtectableItem, IaasComputeVmProtectableItem, VmWorkloadSapAseDatabaseProtectableItem, VmWorkloadSapAseSystemProtectableItem, VmWorkloadSapHanaDatabaseProtectableItem, VmWorkloadSapHanaDBInstance, VmWorkloadSapHanaSystemProtectableItem, VmWorkloadSqlAvailabilityGroupProtectableItem, VmWorkloadSqlDatabaseProtectableItem and VmWorkloadSqlInstanceProtectableItem.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.RecoveryServicesBackup.Models.UnknownWorkloadProtectableItem))]
public abstract class WorkloadProtectableItem : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.RecoveryServicesBackup.Models.UnknownWorkloadProtectableItem))>]
type WorkloadProtectableItem = class
    interface IJsonModel<WorkloadProtectableItem>
    interface IPersistableModel<WorkloadProtectableItem>
Public MustInherit Class WorkloadProtectableItem
Implements IJsonModel(Of WorkloadProtectableItem), IPersistableModel(Of WorkloadProtectableItem)
Inheritance
WorkloadProtectableItem
Derived
Attributes
Implements

Constructors

WorkloadProtectableItem()

Initializes a new instance of WorkloadProtectableItem.

Properties

BackupManagementType

Type of backup management to backup an item.

FriendlyName

Friendly name of the backup item.

ProtectionState

State of the back up item.

WorkloadType

Type of workload for the backup management.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<WorkloadProtectableItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<WorkloadProtectableItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WorkloadProtectableItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WorkloadProtectableItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<WorkloadProtectableItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to