BackupPolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rule based backup policy
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupPolicyTypeConverter))]
public class BackupPolicy : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupPolicyTypeConverter))>]
type BackupPolicy = class
interface IBackupPolicy
interface IJsonSerializable
interface IBaseBackupPolicy
interface IValidates
Public Class BackupPolicy
Implements IBackupPolicy, IValidates
- Inheritance
-
BackupPolicy
- Attributes
- Implements
Constructors
BackupPolicy() |
Creates an new BackupPolicy instance. |
Properties
DatasourceType |
Type of datasource for the backup management |
ObjectType | |
PolicyRule |
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of BackupPolicy. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of BackupPolicy. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy. |
FromJsonString(String) |
Creates a new instance of BackupPolicy, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of BackupPolicy into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
Validate(IEventListener) |
Validates that this object meets the validation criteria. |