共用方式為


RuleBasedBackupPolicy Class

Definition

Rule based backup policy.

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

Constructors

RuleBasedBackupPolicy(IEnumerable<String>, IEnumerable<DataProtectionBasePolicyRule>)

Initializes a new instance of RuleBasedBackupPolicy.

Properties

DataSourceTypes

Type of datasource for the backup management.

(Inherited from DataProtectionBackupPolicyPropertiesBase)
PolicyRules

Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc Please note DataProtectionBasePolicyRule 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 DataProtectionBackupRule and DataProtectionRetentionRule.

Explicit Interface Implementations

IJsonModel<DataProtectionBackupPolicyPropertiesBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from DataProtectionBackupPolicyPropertiesBase)
IJsonModel<RuleBasedBackupPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RuleBasedBackupPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataProtectionBackupPolicyPropertiesBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from DataProtectionBackupPolicyPropertiesBase)
IPersistableModel<RuleBasedBackupPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RuleBasedBackupPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RuleBasedBackupPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to