generated/api/Models/UpdateArchivePlanBackupDestination.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; public partial class UpdateArchivePlanBackupDestination : Commvault.Powershell.Models.IUpdateArchivePlanBackupDestination, Commvault.Powershell.Models.IUpdateArchivePlanBackupDestinationInternal { /// <summary>Internal Acessors for SourceCopy</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IUpdateArchivePlanBackupDestinationInternal.SourceCopy { get => (this._sourceCopy = this._sourceCopy ?? new Commvault.Powershell.Models.IdName()); set { {_sourceCopy = value;} } } /// <summary>Backing field for <see cref="EnableDataAging" /> property.</summary> private bool? _enableDataAging; /// <summary>Tells if this copy has data aging enabled</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? EnableDataAging { get => this._enableDataAging; set => this._enableDataAging = value; } /// <summary>Backing field for <see cref="NewName" /> property.</summary> private string _newName; /// <summary>New name for backup destination</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NewName { get => this._newName; set => this._newName = value; } /// <summary>Backing field for <see cref="OverrideRetentionSettings" /> property.</summary> private bool? _overrideRetentionSettings; /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? OverrideRetentionSettings { get => this._overrideRetentionSettings; set => this._overrideRetentionSettings = value; } /// <summary>Backing field for <see cref="RetentionPeriodDays" /> property.</summary> private long? _retentionPeriodDays; /// <summary>Retention period in days. -1 can be specified for infinite retention.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? RetentionPeriodDays { get => this._retentionPeriodDays; set => this._retentionPeriodDays = value; } /// <summary>Backing field for <see cref="SourceCopy" /> property.</summary> private Commvault.Powershell.Models.IIdName _sourceCopy; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SourceCopy { get => (this._sourceCopy = this._sourceCopy ?? new Commvault.Powershell.Models.IdName()); set => this._sourceCopy = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SourceCopyId { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceCopyName { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Name = value ?? null; } /// <summary>Creates an new <see cref="UpdateArchivePlanBackupDestination" /> instance.</summary> public UpdateArchivePlanBackupDestination() { } } public partial interface IUpdateArchivePlanBackupDestination : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Tells if this copy has data aging enabled</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Tells if this copy has data aging enabled", SerializedName = @"enableDataAging", PossibleTypes = new [] { typeof(bool) })] bool? EnableDataAging { get; set; } /// <summary>New name for backup destination</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"New name for backup destination", SerializedName = @"newName", PossibleTypes = new [] { typeof(string) })] string NewName { get; set; } /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to use retention defined on this copy.", SerializedName = @"overrideRetentionSettings", PossibleTypes = new [] { typeof(bool) })] bool? OverrideRetentionSettings { get; set; } /// <summary>Retention period in days. -1 can be specified for infinite retention.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Retention period in days. -1 can be specified for infinite retention.", SerializedName = @"retentionPeriodDays", PossibleTypes = new [] { typeof(long) })] long? RetentionPeriodDays { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SourceCopyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceCopyName { get; set; } } internal partial interface IUpdateArchivePlanBackupDestinationInternal { /// <summary>Tells if this copy has data aging enabled</summary> bool? EnableDataAging { get; set; } /// <summary>New name for backup destination</summary> string NewName { get; set; } /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> bool? OverrideRetentionSettings { get; set; } /// <summary>Retention period in days. -1 can be specified for infinite retention.</summary> long? RetentionPeriodDays { get; set; } Commvault.Powershell.Models.IIdName SourceCopy { get; set; } long? SourceCopyId { get; set; } string SourceCopyName { get; set; } } } |