Dela via


BackupGenericProtectionPolicy Class

Definition

Base class for backup policy. Workload-specific backup policies are derived from this class. Please note BackupGenericProtectionPolicy 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 IaasVmProtectionPolicy, SqlProtectionPolicy, FileShareProtectionPolicy, VmWorkloadProtectionPolicy, GenericProtectionPolicy and MabProtectionPolicy.

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

Constructors

BackupGenericProtectionPolicy()

Initializes a new instance of BackupGenericProtectionPolicy.

Properties

ProtectedItemsCount

Number of items associated with this policy.

ResourceGuardOperationRequests

ResourceGuard Operation Requests.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BackupGenericProtectionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BackupGenericProtectionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BackupGenericProtectionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BackupGenericProtectionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BackupGenericProtectionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to