Delen via


DataProtectionBasePolicyRule Class

Definition

BasePolicy Rule 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.

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

Constructors

DataProtectionBasePolicyRule(String)

Initializes a new instance of DataProtectionBasePolicyRule.

Properties

Name

Gets or sets the name.

Explicit Interface Implementations

IJsonModel<DataProtectionBasePolicyRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DataProtectionBasePolicyRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataProtectionBasePolicyRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataProtectionBasePolicyRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DataProtectionBasePolicyRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to