Show / Hide Table of Contents

    Class BackupLongTermRetentionPolicy

    A long term retention policy.

    Inheritance
    Object
    Resource
    ProxyResource
    BackupLongTermRetentionPolicy
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Sql.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class BackupLongTermRetentionPolicy : Microsoft.Azure.Management.Sql.Models.ProxyResource

    Constructors

    BackupLongTermRetentionPolicy()

    Initializes a new instance of the BackupLongTermRetentionPolicy class.

    Declaration
    public BackupLongTermRetentionPolicy ();

    BackupLongTermRetentionPolicy(String, String, String, String, String, String, Nullable<Int32>)

    Initializes a new instance of the BackupLongTermRetentionPolicy class.

    Declaration
    public BackupLongTermRetentionPolicy (string id = null, string name = null, string type = null, string weeklyRetention = null, string monthlyRetention = null, string yearlyRetention = null, Nullable<int> weekOfYear = null);
    Parameters
    String id

    Resource ID.

    String name

    Resource name.

    String type

    Resource type.

    String weeklyRetention

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

    String monthlyRetention

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

    String yearlyRetention

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

    Nullable<Int32> weekOfYear

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

    Properties

    MonthlyRetention

    Gets or sets the monthly retention policy for an LTR backup in an ISO 8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.monthlyRetention")]
    public string MonthlyRetention { get; set; }
    Property Value
    String

    WeeklyRetention

    Gets or sets the weekly retention policy for an LTR backup in an ISO 8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.weeklyRetention")]
    public string WeeklyRetention { get; set; }
    Property Value
    String

    WeekOfYear

    Gets or sets the week of year to take the yearly backup in an ISO 8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.weekOfYear")]
    public Nullable<int> WeekOfYear { get; set; }
    Property Value
    Nullable<Int32>

    YearlyRetention

    Gets or sets the yearly retention policy for an LTR backup in an ISO 8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.yearlyRetention")]
    public string YearlyRetention { get; set; }
    Property Value
    String

    Back to top Azure SDK for Net