generated/api/Models/AppValidationSourceCopy.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary>Application validation source copy details</summary> public partial class AppValidationSourceCopy : Commvault.Powershell.Models.IAppValidationSourceCopy, Commvault.Powershell.Models.IAppValidationSourceCopyInternal { /// <summary>Backing field for <see cref="BackupDestination" /> property.</summary> private Commvault.Powershell.Models.IIdName _backupDestination; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName BackupDestination { get => (this._backupDestination = this._backupDestination ?? new Commvault.Powershell.Models.IdName()); set => this._backupDestination = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? BackupDestinationId { get => ((Commvault.Powershell.Models.IIdNameInternal)BackupDestination).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)BackupDestination).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupDestinationName { get => ((Commvault.Powershell.Models.IIdNameInternal)BackupDestination).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)BackupDestination).Name = value ?? null; } /// <summary>Internal Acessors for BackupDestination</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IAppValidationSourceCopyInternal.BackupDestination { get => (this._backupDestination = this._backupDestination ?? new Commvault.Powershell.Models.IdName()); set { {_backupDestination = value;} } } /// <summary>Backing field for <see cref="CopyPrecedence" /> property.</summary> private long? _copyPrecedence; /// <summary> /// Order of backup destination copy created in storage policy. Primary copy will be used as default copy. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CopyPrecedence { get => this._copyPrecedence; set => this._copyPrecedence = value; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; /// <summary>Id of the source copy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="IsActive" /> property.</summary> private bool? _isActive; /// <summary>Is this an active backup destination?</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsActive { get => this._isActive; set => this._isActive = value; } /// <summary>Backing field for <see cref="IsSnapCopy" /> property.</summary> private bool? _isSnapCopy; /// <summary>Is this a snap copy?</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsSnapCopy { get => this._isSnapCopy; set => this._isSnapCopy = value; } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary>Name of the source copy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Creates an new <see cref="AppValidationSourceCopy" /> instance.</summary> public AppValidationSourceCopy() { } } /// Application validation source copy details public partial interface IAppValidationSourceCopy : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? BackupDestinationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string BackupDestinationName { get; set; } /// <summary> /// Order of backup destination copy created in storage policy. Primary copy will be used as default copy. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Order of backup destination copy created in storage policy. Primary copy will be used as default copy.", SerializedName = @"copyPrecedence", PossibleTypes = new [] { typeof(long) })] long? CopyPrecedence { get; set; } /// <summary>Id of the source copy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Id of the source copy", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>Is this an active backup destination?</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Is this an active backup destination?", SerializedName = @"isActive", PossibleTypes = new [] { typeof(bool) })] bool? IsActive { get; set; } /// <summary>Is this a snap copy?</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Is this a snap copy?", SerializedName = @"isSnapCopy", PossibleTypes = new [] { typeof(bool) })] bool? IsSnapCopy { get; set; } /// <summary>Name of the source copy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Name of the source copy", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } } /// Application validation source copy details internal partial interface IAppValidationSourceCopyInternal { Commvault.Powershell.Models.IIdName BackupDestination { get; set; } long? BackupDestinationId { get; set; } string BackupDestinationName { get; set; } /// <summary> /// Order of backup destination copy created in storage policy. Primary copy will be used as default copy. /// </summary> long? CopyPrecedence { get; set; } /// <summary>Id of the source copy</summary> long? Id { get; set; } /// <summary>Is this an active backup destination?</summary> bool? IsActive { get; set; } /// <summary>Is this a snap copy?</summary> bool? IsSnapCopy { get; set; } /// <summary>Name of the source copy</summary> string Name { get; set; } } } |