Sdílet prostřednictvím


MabProtectionPolicy Class

Definition

Mab container-specific backup policy.

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

Constructors

MabProtectionPolicy()

Initializes a new instance of MabProtectionPolicy.

Properties

ProtectedItemsCount

Number of items associated with this policy.

(Inherited from BackupGenericProtectionPolicy)
ResourceGuardOperationRequests

ResourceGuard Operation Requests.

(Inherited from BackupGenericProtectionPolicy)
RetentionPolicy

Retention policy details. Please note BackupRetentionPolicy 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 LongTermRetentionPolicy and SimpleRetentionPolicy.

SchedulePolicy

Backup schedule of backup policy. Please note BackupSchedulePolicy 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 LogSchedulePolicy, LongTermSchedulePolicy, SimpleSchedulePolicy and SimpleSchedulePolicyV2.

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.

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from BackupGenericProtectionPolicy)
IJsonModel<MabProtectionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MabProtectionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BackupGenericProtectionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from BackupGenericProtectionPolicy)
IPersistableModel<MabProtectionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MabProtectionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MabProtectionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to