Share via


ManagedInstanceLongTermRetentionPolicyData Class

Definition

A class representing the ManagedInstanceLongTermRetentionPolicy data model. A long term retention policy.

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

Constructors

ManagedInstanceLongTermRetentionPolicyData()

Initializes a new instance of ManagedInstanceLongTermRetentionPolicyData.

Properties

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
MonthlyRetention

The monthly retention policy for an LTR backup in an ISO 8601 format.

Name

The name of the resource.

(Inherited from ResourceData)
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
WeeklyRetention

The weekly retention policy for an LTR backup in an ISO 8601 format.

WeekOfYear

The week of year to take the yearly backup in an ISO 8601 format.

YearlyRetention

The yearly retention policy for an LTR backup in an ISO 8601 format.

Explicit Interface Implementations

IJsonModel<ManagedInstanceLongTermRetentionPolicyData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ManagedInstanceLongTermRetentionPolicyData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ManagedInstanceLongTermRetentionPolicyData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ManagedInstanceLongTermRetentionPolicyData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ManagedInstanceLongTermRetentionPolicyData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to