BackupGenericProtectionPolicy Class

Definition

Base class for backup policy. Workload-specific backup policies are derived from this class. Please note this is the abstract base class. The derived classes available for instantiation are: VmWorkloadProtectionPolicy, FileShareProtectionPolicy, IaasVmProtectionPolicy, SqlProtectionPolicy, 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

Name Description
BackupGenericProtectionPolicy()

Initializes a new instance of BackupGenericProtectionPolicy for deserialization.

Properties

Name Description
ProtectedItemsCount

Number of items associated with this policy.

ResourceGuardOperationRequests

ResourceGuard Operation Requests.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
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