Delen via


BackupTieringPolicy Class

Definition

Tiering Policy for a target tier. If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier

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

Constructors

BackupTieringPolicy()

Initializes a new instance of BackupTieringPolicy.

Properties

DurationType

Retention duration type: days/weeks/months/years Used only if TieringMode is set to TierAfter

DurationValue

Number of days/weeks/months/years to retain backups in current tier before tiering. Used only if TieringMode is set to TierAfter

TieringMode

Tiering Mode to control automatic tiering of recovery points. Supported values are:

  1. TierRecommended: Tier all recovery points recommended to be tiered
  2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
  3. DoNotTier: Do not tier any recovery points

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BackupTieringPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BackupTieringPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BackupTieringPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BackupTieringPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BackupTieringPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to