CosmosDBAccountBackupPolicy Class

Definition

The object representing the policy for taking backups on an account. Please note CosmosDBAccountBackupPolicy 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 ContinuousModeBackupPolicy and PeriodicModeBackupPolicy.

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

Constructors

CosmosDBAccountBackupPolicy()

Initializes a new instance of CosmosDBAccountBackupPolicy.

Properties

MigrationState

The object representing the state of the migration between the backup policies.

Explicit Interface Implementations

IJsonModel<CosmosDBAccountBackupPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CosmosDBAccountBackupPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CosmosDBAccountBackupPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CosmosDBAccountBackupPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CosmosDBAccountBackupPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to